๐ 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.
-
๐ก Practical implementations demonstrating AI agents in action - from custom support to smart email management systems
-
๐ฅ Cutting-edge AI agent applications that seamlessly integrate models from OpenAI, Anthropic, Gemini, and open-source providers, and a diverse range of tools
-
๐ Production-ready, extensively documented agentic projects that help you contribute to the thriving AI agent ecosystem
๐ AG2 Workshop: 23-Episode Course
New to AG2? The AG2 Workshop takes you from first agent to production deployment in 23 hands-on episodes.
- Learn the patterns โ Agent Pattern Cookbook โ 13 runnable examples from simple two-agent chat to hierarchical multi-agent systems.
- See real apps โ Browse the Featured Agentic Apps section below for complete, documented projects.
- Connect external services โ Explore Arcade SDK Examples to integrate OAuth-protected APIs like Gmail and Linear.
- Add a UI โ Explore AG-UI Examples to connect your agents to a browser frontend.
- Deep dive โ Work through the 7-module workshop for a comprehensive hands-on course.
- 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 |
๐บ๏ธ More Ways to Learn
- See real apps โ Browse the Featured Agentic Apps below for complete, documented projects.
- Add a UI โ Explore AG-UI Examples to connect your agents to a browser frontend.
- Go to production โ Use the GCP Agent Starter Pack to deploy your agent to Google Cloud Run with CI/CD and observability.
๐ Featured Agentic Apps
- ๐๏ธ E-Commerce Custom Service for Order Management (last updated and ran on 09/20/2025, ag2 version 0.9.9): A smart, agent-driven system that makes order tracking quick and easy while simplifying returns for both logged-in and guest users.
- ๐ Financial Analysis (last updated and ran on 09/20/2025, ag2 version 0.9.9): A AI-powered stock analysis generating market insights and recommendations.
- ๐ค Automated Machine Learning for Kaggle (last updated and ran on 09/20/2025, ag2 version 0.9.9): An agent system to automate the machine learning pipeline for Kaggle competitions.
- ๐งโ๐ฌ Deep Research Agent: Reference implementation of the deep research agent.
- โ๏ธ Travel Planner: A trip planning multi-agent system that creates an itinerary together with a customer.
- ๐ฎ AI Game Design Agent Team โ ๏ธ (currently broken โ pending fix for AG2 0.9+): A collaborative game design system that generates comprehensive game concepts through the coordination of multiple specialized AI agents.
- โ Manage Todos With Realtime Agent: A voice-controlled todo assistant with real-time interaction.
- ๐ Due Diligence with TinyFish: A multi-agent due diligence pipeline that automatically researches a company from a single URL using AG2 and TinyFish for deep web scraping.
๐ 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.
- ๐ Linear Agent: A natural language interface for managing Linear issues โ list, create, and update issues via Arcadeโs managed OAuth2 integration.
- ๐ง Gmail Agent: A Gmail management agent that reads, searches, sends, and organizes emails through natural language.
๐ฅ๏ธ 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.
- ๐ค๏ธ Weather Agent: Single-agent chat with a weather tool. Demonstrates
AGUIStream, streaming text, tool call events, and SSE consumption in the browser.
- ๐ญ Factory Agent: Multi-agent document pipeline (plan โ draft โ review โ revise โ finalize). Demonstrates
ContextVariables with STATE_SNAPSHOT events to provide multi-agent context to the UI.
- ๐ฌ GPT Researcher: Wraps the GPT Researcher multi-agent pipeline as an AG2 tool and streams pipeline stage updates and the final report to a browser frontend via AG-UI.
โ๏ธ Deploy to Google Cloud
- ๐ GCP Agent Starter Pack: Production-ready template that deploys an AG2 agent to Googleโs Cloud Run with one command. Includes Terraform, CI/CD (Cloud Build or GitHub Actions), OpenTelemetry tracing, and A2A protocol support for cross-framework agent communication.
๐ Getting Started
-
Clone the repository
git clone https://github.com/ag2ai/build-with-ag2.git
-
Navigate to the desired project directory
cd build-with-ag2/travel-planner
-
Install the required dependencies
# Requires Python >= 3.9, < 3.14
pip install -r requirements.txt
-
Follow the project-specific instructions in each projectโs README.md file to set up and run the app.
๐ Links to More Projects Built with AG2
- ๐ AG2 Notebooks: AG2 notebooks
- ๐ฅ๏ธ Waldiez: UI for designing AG2-based workflows using drag-and-drop
- ๐ฆธ HeroYouth: Empowering youth against school bullying
- ๐ฌ SciAgents: Automating scientific discovery through multi-agent intelligent graph reasoning
- ๐ Agent-E: A browser automation agent for natural language-driven web interactions and task automation.
- ๐ฑ Aquinas: AI-Powered social media engagement tool
- ๐ก๏ธ disarmBot: A multi-agent LM system for analyzing disinformation based on DISARM
- ๐ ๏ธ Hercules: An open-source testing agent that turns simple Gherkin steps into fully automated end-to-end tests
- ๐ CMBAgent: Multi-agent system for data analysis and visualization
- ๐ AutoDefense: Multi-agent LLM Defense against jailbreak attacks
- ๐ Prompt Leakage Probing: Framework for testing LLM agents for system prompt leaks
- ๐ AI-Powered Event Invitation Workflow: Multi-agent event invitation system using Neosantara AIโs Grok 4 for personalized multilingual content generation
- โก L402 Lightning Payments for AG2: Gives AG2 agents the ability to access L402-protected APIs with automatic Bitcoin Lightning micropayments using
register_function()
๐ค 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.
Option 1: Link to your own repositories built with AG2
Refer to the external repository guide to link to your own repositories showcasing projects built with AG2.
Option 2: Creating a new project
- You can take the project template as a starting point
- Use
kebab-case for a new project, e.g. space-time-travel-agent
- Add a
requirements.txt file with the required libraries
- Write a concise
README.md file, use this as a template
- Add a
OAI_CONFIG_LIST_sample file
- Create your project and contribute. Happy coding!
Code Style and Linting
This project uses pre-commit hooks to maintain code quality. Before contributing:
- Install pre-commit:
pip install pre-commit
pre-commit install
- 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!