This project automates the process of generating an AI news by leveraging a team of AI agents that fetch, analyze, and compile the latest news stories into a well-formatted markdown document.
This project uses the crewai framework to manage multiple AI agents that work together to produce a daily AI newsletter. The agents are powered by a large language model (LLM) (gemini-pro is used here) and are responsible for various tasks such as fetching news, analyzing articles, and compiling the final news.
- Automated News Fetching: The
NewsFetcheragent gathers the latest AI news stories. - Intelligent Analysis: The
NewsAnalyzeragent breaks down the news into digestible summaries with critical insights. - Newsletter Compilation: The
NewsletterCompileragent assembles the analyzed content into a well-formatted markdown news.
To set up this project, follow these steps:
- Clone the repository:
git clone https://github.com/Adityajeet/multi_agent.git cd multi_agent - Create a virtual environment and activate it:
python -m venv myenv # On Windows use `myenv\Scripts\activate` - Install the required packages:
pip install -r requirements.txt
- Set up environment variables:
- Create a
.envfile in the root directory. - Add your Google API key to the
.envfile:SERPER_API_KEY = your_serper_api_key GOOGLE_API_KEY=your_google_api_key
- Create a
To generate the AI news, run the following command:
python main.py