A multi-agent AI system that generates high-quality content through a collaborative workflow of specialized AI agents. This project demonstrates the power of agentic AI by coordinating multiple agents to work together on content creation tasks.
-
Multi-Agent Collaboration: 7 specialized AI agents working together:
- Research Specialist: Gathers and analyzes information
- Content Strategist: Develops content strategy
- Content Writer: Creates engaging content
- Content Editor: Polishes and refines content
- QA Specialist: Ensures quality and accuracy
- SEO Expert: Optimizes for search engines
- Executive Summarizer: Creates concise summaries
-
Modern Web Interface:
- Real-time progress tracking
- Interactive agent status updates
- Clean and responsive design
- Instant content generation
-
Powerful Tools:
- Serper Search integration for web research
- OpenAI GPT-3.5 Turbo for intelligent content generation
- Flask backend for reliable API handling
- Python 3.8+
- OpenAI API key
- Serper API key
- Clone the repository:
git clone <repository-url>
cd crewai-content-pipeline- Install dependencies:
pip install -r requirements.txt- Create a
.envfile in the project root:
OPENAI_API_KEY=your_openai_key
SERPER_API_KEY=your_serper_key
- Start the server:
python crew.py- Open your browser and navigate to:
http://localhost:5000
├── agent.py # Agent definitions and configurations
├── config.py # API keys and tool configurations
├── crew.py # Main application and web server
├── task.py # Task definitions for each agent
├── tools.py # Tool definitions and configurations
├── index.html # Web interface
├── style.css # Styling for web interface
└── requirements.txt # Project dependencies
The project uses a sophisticated agent system where each agent has specific roles and capabilities:
-
Research Specialist
- Uses search tools to gather information
- Analyzes and validates data
- Provides comprehensive research reports
-
Content Strategist
- Develops content strategy
- Defines target audience
- Creates content outlines
-
Content Writer
- Writes engaging content
- Follows strategy guidelines
- Maintains consistent tone
-
Content Editor
- Improves grammar and flow
- Ensures consistency
- Enhances readability
-
QA Specialist
- Verifies accuracy
- Checks compliance
- Ensures quality standards
-
SEO Expert
- Optimizes for search engines
- Implements keywords
- Improves visibility
-
Executive Summarizer
- Creates concise summaries
- Highlights key points
- Maintains clarity
The system uses the following key configurations:
-
LLM Configuration (in agent.py):
llm = ChatOpenAI( model="gpt-3.5-turbo", temperature=0.1, max_tokens=1000, streaming=True, verbose=True )
-
API Keys (in .env):
OPENAI_API_KEY=your_openai_key SERPER_API_KEY=your_serper_key
- Enter your topic in the web interface
- Click "Generate Content"
- Watch the agents work in real-time
- Receive the final generated content
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- CrewAI for the agent framework
- OpenAI for the language model
- Serper for search capabilities