NewsAgent is an AI-driven pipeline for researching, writing, and proofreading technology trend reports and articles. It leverages CrewAI, LangChain, and Groq LLMs to automate the process of gathering insights, crafting compelling narratives, and ensuring high-quality, well-cited content.
- Automated Research: Tracks emerging breakthroughs, analyzes trends, and validates findings from multiple sources.
- AI Writing: Transforms complex technical topics into engaging, accessible articles.
- Proofreading & Sourcing: Ensures clarity, accuracy, and provides further reading sources.
- Internet Search Integration: Uses SerperDevTool for real-time web search.
agents.py # Defines AI agents (researcher, writer, proofreader)
crew.py # Orchestrates the workflow
tasks.py # Defines tasks for each agent
tools.py # Sets up internet search tool
requirements.txt # Python dependencies
git clone <your-repo-url>
cd NewsAgent/backendpython -m venv .venv
.venv\Scripts\activatepip install -r requirements.txtCreate a .env file in the backend directory with the following content:
GROQ_API_KEY=your-groq-api-key-here
SERPER_API_KEY=your-serper-api-key-here
- Get your Groq API key
- Get your Serper API key
python crew.py- Agents are defined in
agents.pyusing CrewAI and LangChain Groq models. - Tasks in
tasks.pyspecify what each agent does (research, write, proofread). - Crew in
crew.pyorchestrates the agents and tasks in sequence. - Tools in
tools.pyprovide internet search capabilities.
- The final, proofread article is saved as
newsletter.mdin the backend directory.
- Change the
topicvariable increw.pyto research and write about a different subject. - Modify agent goals, backstories, or tasks for different workflows.
- Python 3.9+
- API keys for Groq and Serper