Sample code and application showcases to get you going with AG2 (formally AutoGen)
248
stars
2,283
commits
Python
primary language
Sep 6, 2026
updated
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
New to AG2? The AG2 Workshop takes you from first agent to production deployment in 23 hands-on episodes.
| 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) โ
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.
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.
AGUIStream, streaming text, tool call events, and SSE consumption in the browser.ContextVariables with STATE_SNAPSHOT events to provide multi-agent context to the UI.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.
register_function()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.
kebab-case for a new project, e.g. space-time-travel-agentrequirements.txt file with the required librariesREADME.md file, use this as a templateOAI_CONFIG_LIST_sample fileThis project uses pre-commit hooks to maintain code quality. Before contributing:
pip install pre-commit
pre-commit install
pre-commit run --all-files
Star this repository and AG2 to receive notifications about the newest and coolest agentic applications!
(top 30 of 328)
Python
48.1%
Jupyter Notebook
19.0%
HTML
18.7%
JavaScript
7.7%
CSS
3.5%
Dart
2.5%
Sample code and application showcases to get you going with AG2 (formally AutoGen)
248
stars
2,283
commits
Python
primary language
Sep 6, 2026
updated
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
New to AG2? The AG2 Workshop takes you from first agent to production deployment in 23 hands-on episodes.
| 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) โ
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.
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.
AGUIStream, streaming text, tool call events, and SSE consumption in the browser.ContextVariables with STATE_SNAPSHOT events to provide multi-agent context to the UI.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.
register_function()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.
kebab-case for a new project, e.g. space-time-travel-agentrequirements.txt file with the required librariesREADME.md file, use this as a templateOAI_CONFIG_LIST_sample fileThis project uses pre-commit hooks to maintain code quality. Before contributing:
pip install pre-commit
pre-commit install
pre-commit run --all-files
Star this repository and AG2 to receive notifications about the newest and coolest agentic applications!
(top 30 of 328)
Python
48.1%
Jupyter Notebook
19.0%
HTML
18.7%
JavaScript
7.7%
CSS
3.5%
Dart
2.5%