๐ 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
๐บ๏ธ Learning Path
New to AG2? Follow this progression:
- 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.
- 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.
๐ Featured Agentic Apps
๐ฅ๏ธ 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!