build-with-ag2

๐ŸŒŸ Build with AG2

Are you building with AG2? Add your project to the list by submitting code through pull requests or add a link to your own repository!

A curated collection of awesome agentic applications built with AG2.

๐ŸŽ“ AG2 Workshop: 23-Episode Course

New to AG2? The AG2 Workshop takes you from first agent to production deployment in 23 hands-on episodes.

  1. Learn the patterns โ†’ Agent Pattern Cookbook โ€” 13 runnable examples from simple two-agent chat to hierarchical multi-agent systems.
  2. See real apps โ†’ Browse the Featured Agentic Apps section below for complete, documented projects.
  3. Connect external services โ†’ Explore Arcade SDK Examples to integrate OAuth-protected APIs like Gmail and Linear.
  4. Add a UI โ†’ Explore AG-UI Examples to connect your agents to a browser frontend.
  5. Deep dive โ†’ Work through the 7-module workshop for a comprehensive hands-on course.
  6. Go to production โ†’ Use the GCP Agent Starter Pack to deploy your agent to Googleโ€™s Cloud Run with CI/CD and observability. | Section | Episodes | What You Build | |โ€”โ€”โ€”|โ€”โ€”โ€”-|โ€”โ€”โ€”โ€”โ€”| | Basics | 1-4 | Your first agent, tools, two-agent collaboration | | Patterns | 5-9 | Round-robin, auto, handoffs, pipelines, decision framework | | Applications | 10-15 | Customer service, research, RAG, web browsing, UI, MCP | | Production | 16-20 | Observability, security, testing, costs, deployment | | Advanced | 21-23 | Redundancy, reasoning, whatโ€™s next |
Start Episode 1 โ†’ Try the Playground (no setup) โ†’

๐Ÿ—บ๏ธ More Ways to Learn

๐Ÿ”Œ Arcade SDK Examples

Examples of connecting AG2 agents to external services via Arcade โ€” a managed OAuth2 platform that handles authorization and tool execution, so thereโ€™s no token storage or manual API setup required.

๐Ÿ–ฅ๏ธ AG-UI Examples

Examples of connecting AG2 agents to browser frontends using the AG-UI protocol. Each example includes a FastAPI backend and a vanilla HTML/JS frontend โ€” no React or build step required.

โ˜๏ธ Deploy to Google Cloud

๐Ÿš€ Getting Started

  1. Clone the repository

    git clone https://github.com/ag2ai/build-with-ag2.git
    
  2. Navigate to the desired project directory

    cd build-with-ag2/travel-planner
    
  3. Install the required dependencies

    # Requires Python >= 3.9, < 3.14
    pip install -r requirements.txt
    
  4. Follow the project-specific instructions in each projectโ€™s README.md file to set up and run the app.

๐Ÿค Contributing to AG2 Open Source

Created something with AG2? Contributions are welcome! If you have any ideas, improvements, or new apps to add, please create a new GitHub Issue or submit a pull request. Make sure to follow the existing project structure and include a detailed README.md for each new app.

Refer to the external repository guide to link to your own repositories showcasing projects built with AG2.

Option 2: Creating a new project

Code Style and Linting

This project uses pre-commit hooks to maintain code quality. Before contributing:

  1. Install pre-commit:
pip install pre-commit
pre-commit install
  1. The hooks will run automatically on commit, or you can run them manually:
pre-commit run --all-files

๐ŸŒŸ Stay Updated

Star this repository and AG2 to receive notifications about the newest and coolest agentic applications!