Skip to main content

Overview

Multi-agent teams consist of specialized agents that collaborate to solve complex problems. Each agent has specific expertise and tools, working together under coordination to deliver comprehensive solutions that would be difficult for a single agent to achieve.
Multi-agent systems excel at complex workflows requiring diverse expertise, parallel processing, and specialized knowledge domains.

Business & Finance Teams

AI Finance Agent Team

A team of financial analysts that work together to provide comprehensive financial insights combining web research and real-time market data. Agent Roles:

Web Agent

General internet research using DuckDuckGo for market news and trends

Finance Agent

Detailed financial analysis with YFinance for real-time stock data

Team Agent

Coordinates between agents and synthesizes insights
# Agent team coordination (20 lines of code!)
from phi.agent import Agent
from phi.model.openai import OpenAIChat
from phi.tools.yfinance import YFinanceTools
from phi.tools.duckduckgo import DuckDuckGoTools
from phi.storage.agent.sqlite import SqliteAgentStorage

# Web research agent
web_agent = Agent(
    name="Web Agent",
    role="Search the web for information",
    tools=[DuckDuckGoTools()],
    storage=SqliteAgentStorage()
)

# Financial analysis agent
finance_agent = Agent(
    name="Finance Agent",
    role="Get financial data and analysis",
    tools=[YFinanceTools()],
    storage=SqliteAgentStorage()
)

# Coordinating team lead
team_agent = Agent(
    team=[web_agent, finance_agent],
    model=OpenAIChat(id="gpt-4o"),
    show_tool_calls=True,
    markdown=True
)
cd advanced_ai_agents/multi_agent_apps/agent_teams/ai_finance_agent_team
pip install -r requirements.txt
export OPENAI_API_KEY='your-api-key-here'
python3 finance_agent_team.py
Features:
  • Real-time financial data access
  • Web search for market context
  • Persistent storage of interactions
  • Coordinated multi-source analysis
  • Interactive playground interface

AI Recruitment Agent Team

A full-service recruitment team that automates the entire hiring process from resume screening to interview scheduling. Specialized Agents:
Responsibilities:
  • Resume analysis and parsing
  • Technical skills evaluation
  • Experience verification
  • Role-specific assessment
  • Selection decision making
Tools:
  • PDF processing (PyPDF2)
  • Skills matching algorithms
  • Keyword extraction
End-to-End Workflow:
Candidate Upload Resume

Technical Recruiter Agent
├─ Parse resume
├─ Extract skills & experience
├─ Match with job requirements
└─ Make selection decision

Communication Agent
├─ Draft personalized email
├─ Include decision & feedback
└─ Send via Gmail

Scheduling Coordinator (if selected)
├─ Create Zoom meeting
├─ Generate meeting link
└─ Include in email

Candidate Receives Complete Response
cd advanced_ai_agents/multi_agent_apps/agent_teams/ai_recruitment_agent_team
pip install -r requirements.txt
streamlit run ai_recruitment_agent_team.py
Prerequisites:
Important Setup Steps:
  1. Gmail Configuration:
    • Create/use a Gmail account for recruiter
    • Enable 2-Step Verification
    • Generate App Password (16-digit code)
    • Get it from Google App Password
    • Format: ‘afec wejf awoj fwrv’ (use without spaces)
  2. Zoom API:
    • Go to Zoom Marketplace
    • Create Server-to-Server OAuth app
    • Get Client ID, Client Secret, Account ID
    • Add required scopes:
      • meeting:write:invite_links:admin
      • meeting:write:meeting:admin
      • meeting:write:meeting:master
      • meeting:write:invite_links:master
      • meeting:write:open_app:admin
      • user:read:email:admin
      • user:read:list_users:admin
Technical Stack:
  • Framework: Phidata
  • Model: OpenAI GPT-4o
  • PDF Processing: PyPDF2
  • Time Management: pytz
  • State Management: Streamlit Session State
Disclaimer: This tool assists in recruitment but should not replace human judgment in hiring decisions. All automated decisions should be reviewed by human recruiters.
A comprehensive legal team that analyzes documents and provides thorough legal insights through specialized agent collaboration. Team Structure:

Legal Researcher

Tools: DuckDuckGo searchCapabilities:
  • Find relevant legal cases and precedents
  • Cite sources and references
  • Research legal frameworks
  • Reference specific document sections

Contract Analyst

Specialization: Contract reviewCapabilities:
  • Identify key terms and obligations
  • Detect potential issues
  • Reference specific clauses
  • Analyze contractual relationships

Legal Strategist

Focus: Strategy developmentCapabilities:
  • Develop legal strategies
  • Provide actionable recommendations
  • Consider risks and opportunities
  • Long-term planning

Team Lead

Role: CoordinationCapabilities:
  • Coordinate analysis between agents
  • Ensure comprehensive responses
  • Verify proper sourcing
  • Quality control
Document Analysis Types:
Analysis TypePrimary AgentSupporting AgentsOutput
Contract ReviewContract AnalystLegal StrategistClause-by-clause analysis
Legal ResearchLegal ResearcherTeam LeadCase law and precedents
Risk AssessmentLegal StrategistContract AnalystRisk matrix and mitigation
Compliance CheckAll AgentsTeam LeadCompliance report
Custom QueriesTeam LeadAll AgentsComprehensive analysis
cd advanced_ai_agents/multi_agent_apps/agent_teams/ai_legal_agent_team
pip install -r requirements.txt
streamlit run legal_agent_team.py
Usage Flow:
1

Upload Document

Upload legal document (PDF format)
2

Select Analysis Type

Choose from:
  • Contract Review
  • Legal Research
  • Risk Assessment
  • Compliance Check
  • Custom Query
3

Add Custom Query

Optionally add specific questions or focus areas
4

Team Analysis

Agents collaborate to analyze document:
  • Legal Researcher finds precedents
  • Contract Analyst reviews terms
  • Legal Strategist develops recommendations
  • Team Lead coordinates and synthesizes
5

Review Results

Comprehensive analysis with:
  • Key findings
  • Source citations
  • Specific clause references
  • Strategic recommendations
Technical Details:
  • Uses GPT-4o for analysis
  • Text-embedding-3-small for embeddings
  • Qdrant vector database for document search
  • Supports PDF documents only
  • Requires stable internet connection
For educational purposes. Not a substitute for professional legal advice. Consult qualified attorneys for legal decisions.

Travel & Lifestyle

TripCraft AI - Travel Planner Agent Team

A sophisticated multi-agent system that turns simple inputs into complete travel itineraries. Goal: Make travel planning effortless and personal - no stress, no endless research, just plans crafted specifically for you. Specialized Agents:

Destination Explorer

Researches attractions, landmarks, and experiences using advanced search tools.

Hotel Search Agent

Finds accommodations based on location, budget, and amenity preferences.

Dining Agent

Recommends restaurants and culinary experiences matching your tastes.

Budget Agent

Handles cost optimization and financial planning for the entire trip.

Flight Search Agent

Plans air travel routes and provides comparison options.

Itinerary Specialist

Creates detailed day-by-day schedules with optimal timing.
How It Works:
Input Your Vision
├─ Destination and dates
├─ Budget constraints
├─ Travel style preferences
└─ Special interests

AI Agents Collaborate (Parallel Processing)
├─ Flight Search Agent → Best flight options
├─ Hotel Search Agent → Accommodation recommendations
├─ Destination Explorer → Attractions and activities
├─ Dining Agent → Restaurant suggestions
├─ Budget Agent → Cost optimization
└─ All feed into ↓

Itinerary Specialist
├─ Day-by-day schedule
├─ Booking recommendations
├─ Cost breakdown
└─ Hidden gem discoveries

Complete Travel Itinerary
Key Features:
  • Personalized Planning - Tailored to travel style and interests
  • Hidden Gems Discovery - Beyond typical tourist spots
  • Smart Optimization - Balances cost, time, and experience
  • Complete Packages - Flights to dining recommendations
Tech Stack:
  • Frontend: Next.js, React, TypeScript
  • Backend: Python, FastAPI, PostgreSQL
  • AI: Agno (coordination), Gemini (LLM), Exa (search), Firecrawl (web scraping)
  • APIs: Google Flights, Kayak
Demo: Watch on YouTube Built by: Amit Wani @mtwn105

Development & Coding Teams

Multimodal AI Coding Agent Team

An AI-powered coding assistant that can process images of coding problems and generate optimal solutions with execution. Multi-Agent Architecture:
Model: Gemini-2.0-flashResponsibilities:
  • Extract problem from uploaded images
  • Process screenshots of coding problems
  • Support PNG, JPG, JPEG formats
  • Automatic OCR and understanding
Capabilities:
  • Text extraction from images
  • Diagram understanding
  • Code snippet recognition
  • Problem statement parsing
Features:

Multi-Modal Input

  • Upload problem images
  • Type in natural language
  • Automatic extraction
  • Interactive processing

Intelligent Generation

  • Optimal algorithms
  • Clean Python code
  • Full documentation
  • Edge case handling

Secure Execution

  • E2B sandbox
  • Real-time results
  • Error explanations
  • Timeout protection

Complete Workflow

  • Problem → Solution → Execution
  • All in one interface
  • Streamlit UI
  • Result analysis
cd advanced_ai_agents/multi_agent_apps/agent_teams/multimodal_coding_agent_team
pip install -r requirements.txt
streamlit run ai_coding_agent_o3.py
Required API Keys:
  • OpenAI (for o3-mini and GPT-4o)
  • Google (for Gemini 2.0 Flash)
  • E2B (for sandbox execution)
Usage:
  1. Upload image of coding problem OR type description
  2. Click “Generate & Execute Solution”
  3. View generated solution with documentation
  4. See execution results and output files
  5. Review any errors or timeout messages

Research & Content Teams

OpenAI Research Agent Team

A coordinated team that conducts comprehensive research using OpenAI’s Agents SDK. Agent Coordination:
from openai import OpenAI
from agents import Agent, Runner

# Triage agent plans the research
triage_agent = Agent(
    name="Triage",
    instructions="Plan research approach and coordinate workflow",
    model="gpt-4o"
)

# Research agent gathers information
research_agent = Agent(
    name="Researcher",
    instructions="Search web and gather relevant information",
    tools=[web_search_tool],
    model="gpt-4o"
)

# Editor compiles the final report
editor_agent = Agent(
    name="Editor",
    instructions="Compile collected facts into comprehensive report",
    model="gpt-4o"
)

# Runner orchestrates the workflow
runner = Runner(
    agents=[triage_agent, research_agent, editor_agent],
    handoffs=True
)
Research Workflow:
1

Topic Input

User enters research topic or selects example
2

Triage Planning

Triage agent analyzes topic and creates research plan:
  • Identify key areas to research
  • Determine search strategies
  • Plan report structure
3

Information Gathering

Research agent executes plan:
  • Search web for relevant sources
  • Collect important facts
  • Track source attribution
  • Verify information
4

Report Compilation

Editor agent creates final report:
  • Organize collected facts
  • Add titles and outlines
  • Include source citations
  • Structure for readability
5

Results Display

View in Streamlit interface:
  • Real-time process tracking
  • Final report with citations
  • Download capability
cd starter_ai_agents/openai_research_agent
pip install -r requirements.txt
export OPENAI_API_KEY='your-api-key-here'
streamlit run openai_researcher_agent.py

Support & Recovery Teams

Breakup Recovery Agent Team

Multi-agent emotional support system built with Gemini 2.0 Flash for helping users recover from breakups. Agent Specializations:

Therapist Agent

Approach: Empathetic and supportiveProvides:
  • Coping strategies
  • Emotional validation
  • Research-backed advice (DuckDuckGo)
  • Professional therapeutic techniques

Closure Agent

Purpose: Cathartic releaseWrites:
  • Unsent emotional messages
  • Heartfelt expressions
  • Authentic feelings
  • Messages users shouldn’t actually send

Routine Planner

Focus: Structure and healingCreates:
  • Daily recovery routines
  • Balanced activities
  • Self-reflection time
  • Social interaction plans
  • Healthy distractions

Brutal Honesty Agent

Style: Direct and objectiveDelivers:
  • No-nonsense feedback
  • Factual observations
  • Reality checks
  • Unvarnished truth
Features:
  • Chat screenshot analysis
  • Parallel execution mode
  • Coordinated agent responses
  • Team leader synthesis
  • Secure API key management
cd starter_ai_agents/ai_breakup_recovery_agent
pip install -r requirements.txt
streamlit run ai_breakup_recovery_agent.py
Usage Flow:
  1. Describe your feelings in text area
  2. Optionally upload chat screenshot (PNG, JPG, JPEG)
  3. Click “Get Recovery Support”
  4. View individual agent responses
  5. Read final coordinated summary

Multi-Agent Design Patterns

Hierarchical Coordination

# Team lead coordinates specialist agents
team_lead = Agent(
    name="Team Lead",
    team=[specialist_1, specialist_2, specialist_3],
    instructions="Coordinate team and synthesize results"
)

Parallel Processing

# Agents work simultaneously
results = await asyncio.gather(
    agent_1.run_async(task_1),
    agent_2.run_async(task_2),
    agent_3.run_async(task_3)
)

Sequential Handoffs

# Agents pass work in sequence
runner = Runner(
    agents=[triage, research, analysis, editor],
    handoffs=True
)

Specialist Collaboration

# Specialists collaborate on complex tasks
analyst = Agent(role="Data Analyst", tools=[...])
researcher = Agent(role="Researcher", tools=[...])
strategist = Agent(role="Strategist", tools=[...])

team = AgentTeam(
    agents=[analyst, researcher, strategist],
    collaboration_mode="consensus"
)
Choosing the Right Pattern:
  • Hierarchical: When you need central coordination
  • Parallel: For independent tasks that can run simultaneously
  • Sequential: When output of one agent feeds the next
  • Collaborative: For complex problems requiring diverse expertise

Next Steps

Voice Agent Teams

Add voice capabilities to multi-agent systems

MCP Integration

Connect agent teams to external services

Game Playing

Build adversarial multi-agent systems

Starter Agents

Review single-agent fundamentals

Build docs developers (and LLMs) love