The Newsletter AI Agent uses a multi-agent architecture powered by CrewAI:
Researcher Agent: Gathers comprehensive information about the specified topic
Writer Agent: Transforms research data into engaging newsletter content
Editor Agent: Reviews and finalizes the newsletter
This agent-based approach allows each agent to specialize in a specific aspect of the newsletter creation process, resulting in better overall quality.
The Newsletter AI Agent generates newsletters in markdown format, which can be easily converted to HTML, PDF, or other formats. The markdown format includes:
Headers: For section titles and article titles
Links: For references to sources
Formatting: For emphasis, lists, and other styling
You can customize the language model used by the agents by modifying the LLM initialization in src/newsletter_crew.py:
Copy
self.llm = LLM( model="gemini/gemini-2.0-flash-lite", # Change to another supported model temperature=0.7, # Adjust for more or less creativity api_key=os.getenv("GOOGLE_API_KEY"), verbose=False # Set to True for more detailed output)