Featured Examples
Travel Planner
AI-powered travel planner with multi-agent coordination, human-in-the-loop workflows, and real-time map visualization
Chat with Your Data
Interactive dashboard assistant that answers questions about data using natural language
State Machine Copilot
Multi-stage conversational flows with state management for complex user journeys
Form Filling Assistant
Transform tedious form-filling into natural conversations with AI assistance
Example Categories
Multi-Agent Systems
Learn how to build sophisticated AI applications with multiple coordinating agents:- Travel Planner - Multi-agent system with LangGraph integration, Google Maps API, and human-in-the-loop workflows
Generative UI
Build dynamic, AI-generated user interfaces:- Generative UI Examples - Create custom components that render based on agent actions and state
Human-in-the-Loop
Implement approval workflows and user confirmation patterns:- Form Filling - AI assistant that helps users complete forms through conversation
- Travel Planner - Review and approve AI-suggested trip changes
Shared State Management
Synchronize state between your UI and AI agents:- State Machine Copilot - Multi-stage car sales flow with complex state transitions
- Travel Planner - Real-time state synchronization between map UI and agent
Chat Applications
Build conversational interfaces for various use cases:- Chat with Your Data - Query and analyze dashboard data through conversation
- Research Canvas - AI-powered research assistant with canvas UI
Quick Start
All examples are available in the CopilotKit GitHub repository:Example Structure
Most examples follow a consistent structure:Prerequisites
Most examples require:- Node.js 18+ for the frontend
- npm, yarn, or pnpm package manager
- OpenAI API Key for LLM access
- Python 3.11+ (for examples with LangGraph agents)
Live Demos
Try the examples online without any setup:What You’ll Learn
Each example demonstrates different CopilotKit capabilities:Core Concepts
- Setting up
CopilotKitprovider - Configuring the runtime endpoint
- Using
useAgentContextfor context - Implementing
useFrontendToolfor agent actions
Advanced Features
- Building multi-agent systems with LangGraph
- Implementing human-in-the-loop workflows
- Creating generative UI components
- Managing shared state between UI and agents
- Streaming intermediate agent state
- Custom chat suggestions
Integration Patterns
- Next.js App Router integration
- Backend actions with secure API calls
- Custom LLM providers (OpenAI, Anthropic)
- Third-party API integration (Google Maps, Tavily)
- Vector databases (Pinecone, MongoDB Atlas)
Getting Help
If you run into issues with any example:- Check the example’s README for troubleshooting tips
- Visit the CopilotKit Documentation
- Join the CopilotKit Discord
- Open an issue on GitHub
Contributing
Examples are a great way to contribute to CopilotKit! If you’ve built something interesting:- Fork the repository
- Create your example following the standard structure
- Add comprehensive documentation
- Submit a pull request
