Skip to main content
Interactive 3D/Human-in-the-Loop Agents
Task
Book a flight and hotel for conference
Strategy: Interrupt-on-Risk - Only medium/high risk actions require approval.
Task Timeline
Search flights
Query Kayak for BOS→SFO dates
LOW
Select cheapest fare
Pick $312 Delta economy fare
CHECKPOINTMEDIUM
Book flight
Charge card ending 4242 for $312
CHECKPOINTHIGH
Search hotels
Query Booking.com near venue
LOW
Select hotel
Pick Marriott at $189/night × 2
CHECKPOINTMEDIUM
Book hotel
Charge card ending 4242 for $378
CHECKPOINTHIGH
Add to calendar
Create calendar events for trip
LOW
Send confirmation
Email itinerary to user
LOW
Interrupt Strategy
Risk Threshold
Interrupt on medium+ risk actions.
approved0
auto0
rejected0
waiting0
HITL inserts human checkpoints before risky actions. Reject an action to see the agent replan around it.

Human-in-the-Loop Agents - Interactive Visualization

Human-in-the-loop (HITL) agent design inserts approval checkpoints before the agent executes high-stakes actions - booking flights, charging cards, sending emails. Three strategies exist: interrupt-always (every action needs approval), interrupt-on-risk (only medium/high-risk actions pause), and fully-autonomous (no interruptions). The right strategy depends on the task's reversibility and cost of failure. Rejecting an action forces the agent to replan around the constraint.

  • Task: book a flight and hotel - 8 steps spanning low, medium, and high-risk actions
  • Compare interrupt-always, interrupt-on-risk, and fully-autonomous strategies side by side
  • Approve or reject any pending action and watch the agent replan around the rejection
  • Adjustable risk threshold: set whether medium or only high-risk actions trigger interrupts
  • Timeline view shows every checkpoint highlighted, with risk level and estimated cost
  • Core pattern in production AI systems: Anthropic Claude, AutoGPT, and enterprise agentic pipelines

Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.