Beyond single agents — real-world automation with autonomous multi-agent teams.
A production-oriented collection of multi-agent systems covering sequential, parallel, and hierarchical orchestration patterns for business automation.
Single agents hit a ceiling. Complex real-world tasks require specialized agents working in parallel, supervised by a manager, passing results to one another — just like a human team.
This repository implements six autonomous multi-agent systems, each targeting a distinct business problem: from content pipelines and customer support to financial analysis and recruitment automation. Every system is built with CrewAI and demonstrates a different orchestration pattern that scales from prototype to production.
┌──────────────────────┐
│ Manager LLM │ ← Hierarchical Mode
└──────────┬───────────┘
│ coordinates
┌────────────────┼────────────────┐
▼ ▼ ▼
┌────────────┐ ┌────────────┐ ┌────────────┐
│ Agent A │ │ Agent B │ │ Agent C │
│ (Planner) │ │ (Analyst) │ │ (Writer) │
└─────┬──────┘ └─────┬──────┘ └─────┬──────┘
│ │ │
▼ ▼ ▼
Tools Tools Tools
(SerperDev) (Custom) (MDXSearch)
│ │ │
└───────────────┴───────────────┘
│
┌───────▼────────┐
│ Pydantic Output │ ← Validated JSON
└────────────────┘
multi-agent-systems-crewai/
│
├── 01_Research_and_Write_Article/ # Sequential: Planner → Writer → Editor
├── 02_Customer_Support_Automation/ # Role-playing agents with shared memory
├── 03_Customer_Outreach_Campaign/ # Custom tools + sentiment analysis
├── 04_Automated_Event_Planning/ # Async parallel tasks + human gates
├── 05_Financial_Analysis_System/ # Hierarchical: Manager LLM + specialists
├── 06_Tailor_Job_Applications/ # RAG pipeline + multi-tool research
│
├── .env.example
├── requirements.txt
└── README.md
Pattern: Sequential
A three-agent pipeline where a Planner researches the topic, a Writer drafts the article, and an Editor refines the final output. Clean separation of responsibilities with task handoff.
Pattern: Role-Playing + Memory
Agents that retain conversation context across interactions using built-in memory management. Demonstrates how multi-agent cooperation improves response quality in support scenarios.
Pattern: Custom Tool Integration
Marketing automation pipeline with a custom Sentiment Analysis tool and directory-based content reading. Shows how to extend CrewAI agents with bespoke Python tooling.
Pattern: Async Parallel + Human-in-the-Loop
Tasks run in parallel (async) across multiple agents simultaneously. Strategic interrupt gates pause execution for human approval before committing actions. Uses Pydantic for structured, validated JSON outputs.
Pattern: Hierarchical Orchestration
A Manager LLM dynamically assigns tasks to specialized analyst and risk agents. The most advanced orchestration pattern — closest to how real enterprise AI pipelines operate.
Pattern: RAG + Multi-Tool Research
A full recruitment automation pipeline using MDXSearchTool for semantic search over local documents, combined with web research tools. Produces tailored application materials automatically.
| Skill | Implementation |
|---|---|
| Agent Orchestration | Sequential, Parallel (Async), Hierarchical flows |
| Custom Tool Engineering | Python-native tools: Sentiment Analysis, directory readers |
| Structured Output | Pydantic-validated JSON responses across all agents |
| Human-Agent Collaboration | interrupt_before approval gates in critical workflows |
| RAG & Semantic Search | MDXSearchTool for local document querying |
| Memory Management | Cross-turn context retention for support agents |
- Python 3.10+
- OpenAI API key
- Serper API key (free tier at serper.dev)
# 1. Clone the repository
git clone https://github.com/ozereray/multi-agent-systems-crewai.git
cd multi-agent-systems-crewai
# 2. Install dependencies
pip install -r requirements.txt
# 3. Configure environment
cp .env.example .envOPENAI_API_KEY=your_openai_api_key
SERPER_API_KEY=your_serper_dev_api_key# Sequential article writer
python 01_Research_and_Write_Article/main.py
# Hierarchical financial analysis (most advanced)
python 05_Financial_Analysis_System/main.py
# Recruitment pipeline with RAG
python 06_Tailor_Job_Applications/main.py| Tool | Role |
|---|---|
| CrewAI | Multi-agent orchestration framework |
| LangChain | LLM abstraction & tool layer |
| OpenAI GPT-4o | Core reasoning model |
| SerperDevTool | Real-time web search for agents |
| Pydantic | Structured & validated agent outputs |
Issues and pull requests are welcome. Each use case is self-contained — contributions to individual systems are encouraged.
github.com/ozereray