Skip to main content

AG-UI: Agent-User Interaction Protocol

Lightning Talk - 10 minutes

๐Ÿ”— Interactive Presentation: View Live Slides

๐Ÿ“น Video Recordingโ€‹

๐ŸŽฏ What is AG-UI?โ€‹

AG-UI is the Agent-User Interaction Protocol - think of it as "USB-C for AI agents!"

  • Open, lightweight, event-driven protocol
  • Universal translator for AI-driven systems
  • Standardizes frontend-to-agent communication
  • Real-time human-AI collaboration

๐Ÿšจ The Problem It Solvesโ€‹

Current Pain Pointsโ€‹

  • Agents live in backend silos - no standard UI integration
  • Custom WebSocket implementations for each framework
  • No standard for real-time interaction between humans and agents
  • Fragmented agent-to-UI communication across platforms
  • Human-in-the-loop workflows are complex to implement

โšก Core Capabilitiesโ€‹

  • ๐Ÿ”„ Real-time interactivity - Sub-100ms latency
  • ๐Ÿ“ก Live state streaming - Watch agents work in real-time
  • ๐Ÿค Human-in-the-loop collaboration - Interrupt and guide agents
  • ๐Ÿ“ Token-by-token text streaming - See AI thinking live
  • ๐Ÿ” Tool execution transparency - Monitor what agents are doing
  • โ†”๏ธ Bidirectional communication - True conversation flow

๐Ÿ—๏ธ Event-Driven Architectureโ€‹

16 Standardized Event Types across 5 Categories:โ€‹

Lifecycle Events (5)โ€‹

  • RUN_STARTED, RUN_FINISHED, RUN_ERROR
  • STEP_STARTED, STEP_FINISHED

Text Message Events (3)โ€‹

  • TEXT_MESSAGE_START, TEXT_MESSAGE_CONTENT, TEXT_MESSAGE_END

Tool Call Events (3)โ€‹

  • TOOL_CALL_START, TOOL_CALL_ARGS, TOOL_CALL_END

State Management Events (3)โ€‹

  • STATE_SNAPSHOT, STATE_DELTA, MESSAGES_SNAPSHOT

Special Events (2)โ€‹

  • RAW, CUSTOM

Transport Optionsโ€‹

  • JSON events over HTTP/SSE
  • Optional binary protocol for 60% smaller payloads
  • Transport agnostic - HTTP/SSE/WebSockets

๐Ÿ”ง Framework Integrationsโ€‹

โœ… Currently Supportedโ€‹

  • LangGraph - Graph-based agent orchestration
  • CrewAI - Multi-agent workflows
  • Mastra - TypeScript-first agents
  • AG2 - Open-source AgentOS

๐Ÿšง Coming Soonโ€‹

  • Bedrock - AWS managed agents

๐ŸŒ Protocol Ecosystemโ€‹

AG-UI complements (doesn't compete with) other protocols:

MCP (Model Context Protocol)โ€‹

  • By: Anthropic
  • Purpose: Agent โ†” Tools communication

A2A (Agent-to-Agent Protocol)โ€‹

  • By: Google
  • Purpose: Agent โ†” Agent communication

AG-UI (Agent-User Interaction Protocol)โ€‹

  • By: CopilotKit
  • Purpose: Agent โ†” Human interaction

These protocols work together to create a complete AI ecosystem!

๐ŸŽฏ Real-World Use Casesโ€‹

๐Ÿ’ป Live Code Pairingโ€‹

AI writes code token-by-token, human can interrupt and collaborate

๐Ÿ“Š Data Analysis Dashboardsโ€‹

Real-time query execution with human oversight

๐Ÿค– Multi-Agent Orchestrationโ€‹

Human supervisors monitoring agent workflows

๐ŸŽจ Creative Design Toolsโ€‹

AI generates designs with live previews and human feedback

๐Ÿš€ Technical Benefitsโ€‹

  • Sub-100ms latency for token streaming
  • 60% smaller payloads with binary protocol
  • Transport agnostic (HTTP/SSE/WebSockets)
  • Framework agnostic - works with any agent system
  • State delta syncing reduces bandwidth
  • Built-in security and error handling

๐Ÿ› ๏ธ Getting Startedโ€‹

Resourcesโ€‹

Quick Startโ€‹

Start building human-AI collaborative apps today with standardized real-time interaction!


AG-UI represents the missing piece in the AI protocol ecosystem - standardized human-agent interaction that enables true collaborative AI applications.