Human in the Loop

Your AI agents are powerful, but they're not perfect. When your AI automations need human judgment to prevent costly mistakes, get instant decisions without building complex review systems.

The Problem

AI agents and automations can make mistakes that cause real damage. You need human oversight for critical decisions, but building approval flows disrupts your AI workflows.

🤖
AI Agent Uncertainty
Your AI agents handle most tasks well, but when confidence is low or stakes are high, you need human judgment
💸
Costly AI Mistakes
Automated decisions can delete data, send wrong messages, or make expensive purchases without human oversight
🚫
Workflow Interruption
Building human approval into AI systems breaks the flow and requires complex state management

The Solution

Add human oversight to any AI workflow in minutes. When your agent hits uncertainty, pause for human judgment, then continue automatically.

1
AI Agent Pauses
When your agent needs human input, it calls our API with the decision context
2
Human Reviews
Send the review URL to the right person via Slack, email, or any notification method
3
Agent Continues
Webhook notification resumes your AI workflow with the human decision included

Quick API Reference

Endpoint

Send a POST request to https://human-in-the-loop.derrick-i.workers.dev/create with the following JSON payload:

{ "message": "AI agent wants to delete 500 records from production database. Confidence: 67%", "webhook": "https://your-ai-system.com/webhooks/review-complete", "status": "pending", "actions": ["approve", "reject", "investigate"], "autoAction": "approve", "metadata": { "agent_id": "data-cleanup-agent", "confidence_score": "0.67", "affected_records": "500" }, "redirectUrl": "https://your-dashboard.com/reviews", "redirectText": "Back to Dashboard", "messageType": "markdown" }

Response

Returns a JSON object with the unique review URL:

{ "url": "https://human-in-the-loop.derrick-i.workers.dev/7ba8e7d8c3262780" }

Webhook Notification

After human review, your webhook receives:

{ "message": "AI agent wants to delete 500 records...", "webhook": "https://your-ai-system.com/webhooks/review-complete", "status": "approve", "actions": ["approve", "reject", "investigate"], "metadata": { ... } }

View Full Documentation

Why Teams Choose This

Zero Development Time
Skip weeks of building custom review interfaces. Get a production-ready solution in one API call.
Instant Deployment
No servers to manage, no databases to maintain. Works with your existing infrastructure immediately.
Reviewer-Friendly
Clean, mobile-responsive interface that works on any device. No login required, just click and decide.
Workflow Integration
Webhooks notify your system instantly when decisions are made. No polling, no delays.
Rich Content Support
Send HTML or Markdown content with full formatting, images, and code blocks for clear context.
Custom Actions
Define your own decision options beyond approve/reject. Match your actual workflow needs.

Common AI Agent Use Cases

  • Data cleanup agents requesting approval before deleting production records
  • Customer service bots escalating complex complaints to human agents
  • Content generation AI asking for approval before publishing
  • Trading algorithms pausing for human confirmation on large transactions
  • Code deployment agents requiring sign-off for production releases
  • Email automation pausing when uncertain about recipient intent