A2UI Launched: Full CopilotKit support at launch!

A2UI Launched: CopilotKit has partnered with Google to deliver full support in both CopilotKit and AG-UI!

Check it out
LogoLogo
  • Overview
  • Integrations
  • API Reference
  • Copilot Cloud
Slanted end borderSlanted end border
Slanted start borderSlanted start border
  • Getting Started
  • Introduction to CopilotKit
  • LLM Quickstart
  • Agent Quickstart
  • Vibe Coding MCP
  • What's New
  • CopilotKit Features
  • Agentic Chat UI
  • Copilot Suggestions
  • Human in the Loop (HITL)
  • Generative UI
  • Frontend Actions
  • Backend Actions
  • Shared State
  • Premium Features
  • CopilotKit Premium
  • Fully Headless UI
  • Observability
  • Inspector
  • Agentic Protocols
  • Agentic Protocols
  • AG-UI (Agents<->Users)
  • MCP (Agents<->Tools)
  • A2A (Agents<->Agents)
  • Generative UI Specs
  • Generative UI Specs
  • A2UI
  • Open-JSON-UI
  • MCP-UI
  • Learning
  • Tutorial: AI Todo App
  • Tutorial: AI Travel App
  • Video: Research Canvas
  • Cookbook: State Machine
  • Troubleshooting
  • Error Debugging
  • Error Observability Connectors
  • Common Copilot Issues
  • Migrate to 1.10.X
  • Migrate to 1.8.2
  • Other
  • Integrations
  • ADK
  • A2A
  • Microsoft Agent Framework
  • AWS Strands
  • Direct to LLM
  • LangGraph
  • AutoGen2
  • Agno
  • CrewAI Crews
  • CrewAI Flows
  • LlamaIndex
  • Mastra
  • Open Agent Spec
  • Pydantic AI

Human in the Loop (HITL)

Allow your agent and users to collaborate on complex tasks.

This video shows an example of our AI Travel App using HITL to get user feedback.

What is Human-in-the-Loop (HITL)?

Human-in-the-loop (HITL) allows agents to request human input or approval during execution, making AI systems more reliable and trustworthy. This pattern is essential when building AI applications that need to handle complex decisions or actions that require human judgment.

Agentic Copilot Human in the Loop

When should I use this?

HITL combines the efficiency of AI with human judgment, creating a system that's both powerful and reliable. The key advantages include:

  • Quality Control: Human oversight at critical decision points
  • Edge Cases: Graceful handling of low-confidence situations
  • Expert Input: Leverage human expertise when needed
  • Reliability: More robust system for real-world use

Choose your Integration

Human in the Loop can be implemented with any agentic backend, with each integration providing different approaches for integrating human oversight into agentic workflows.

Choose your integration to see specific implementation guides and examples.

ADK
Microsoft Agent Framework
LangGraph
AG2
Agno
CrewAI Crews
CrewAI Flows
LlamaIndex
Mastra
Open Agent Spec
Pydantic AI
ADK
Microsoft Agent Framework
LangGraph
AG2
Agno
CrewAI Crews
CrewAI Flows
LlamaIndex
Mastra
Open Agent Spec
Pydantic AI
PREV
Copilot Suggestions
Slanted end borderSlanted end border
Slanted start borderSlanted start border
NEXT
Generative UI

On this page

What is Human-in-the-Loop (HITL)?
When should I use this?
Choose your Integration