Skip to content

ag2ai/build-with-ag2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2,273 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŸ 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:

  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. Add a UI โ†’ Explore AG-UI Examples to connect your agents to a browser frontend.
  4. Deep dive โ†’ Work through the 7-module workshop for a comprehensive hands-on course.
  5. 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

  • ๐Ÿ›๏ธ 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.

  • ๐Ÿ“‹ Linear Agent: A natural language interface for managing Linear issues โ€” list, create, and update issues via Arcade's managed OAuth2 integration.

  • ๐ŸŽฎ 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.

๐Ÿ–ฅ๏ธ 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

  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.

๐Ÿ”— 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:

  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!

About

Sample code and application showcases to get you going with AG2 (formally AutoGen)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages