This is a fully autonomous AI system that acts as your personal news editor. It uses a team of AI agents to fetch the latest headlines, summarize them, identify key trends, and email you a curated daily digest.
It is built using Python, LangGraph for orchestration, and Llama-3 (via Groq) for intelligence.
- Crawler: Fetches real-time news using NewsAPI.
- Summarizer: Condenses articles into concise bullet points.
- Trend Analyzer: Groups news by topic and identifies patterns.
- Writer/Emailer: Compiles a final Markdown report and emails it to you.
-
Install Dependencies: pip install -r requirements.txt
-
Configure Environment Variables: Create a '.env' file in this folder with the following keys:
- GROQ_API_KEY=...
- NEWSAPI_API_KEY=...
- SENDER_EMAIL=...
- GMAIL_APP_PASSWORD=...
- RECIPIENT_EMAIL=...
-
Run the Agent: python main.py
- Python 3.10+
- A Groq API Key (Free tier available)
- A NewsAPI Key (Free tier available)
- A Gmail account with an App Password (for sending emails)