Skip to content

nickhawn/news-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Agent

A simple AI-powered news aggregation agent built with LangGraph that crawls your preferred news sources and provides personalized news summaries based on your interests.

Overview

This news agent can:

  • Provide daily news debriefs from your preferred sources
  • Share interesting news facts
  • Summarize news from specific sources
  • Learn and adapt to your content preferences over time

The agent uses Tavily for web crawling and OpenAI GPT-4.1 for intelligent content curation.

Installation

  1. Clone this repository
  2. Create a virtual environment
  3. Install dependencies using uv:
    uv sync

Environment Setup

Copy the .env.example file and rename it to .env, then fill in the API keys for LangSmith, OpenAI, and Tavily.

Running

Start the LangGraph server:

langgraph dev

The dev command will launch the LangGraph Studio interface that you can interact with the graph through.

You can ask the agent things like:

  • "Give me today's daily digest"
  • "What's an interesting tech fact from today?"
  • "Summarize the latest from TechCrunch"

The agent should learn your preferences over time and you provide feedback and provide increasingly personalized results.

Demo

Agent Graph Structure

News Agent Graph

The news agent uses a LangGraph workflow that includes web crawling tools, content curation, and a feedback loop for learning user preferences.

Memory and Personalization

News Agent Memory

The agent maintains separate memory profiles for news source preferences and content preferences, allowing it to provide increasingly personalized results over time.

About

a news agent build using langgraph, interrupts, memory, and tavily

Resources

Stars

Watchers

Forks

Contributors

Languages