Human in the Loop (HITL)

Allow your agent and users to collaborate on complex tasks.


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.

Conversational Flows

The frontend HITL APIs are unchanged in conversational mode. For native useInterrupt flows, register the AG-UI endpoint with emit_interrupt_outcome=True and enable_legacy_on_interrupt_event=False, in addition to conversational=True.

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

How can I use this?#

Read more about the approach to HITL in CrewAI Flows.