How to Put a Human in the Loop

Human oversight sounds simple: someone checks the AI's work. In practice, a person who approves 400 requests a day isn't checking anything. Good review has to be designed like any other part of a product.

How to Put a Human in the Loop — Troiana insight cover

In short

To put a human in the loop, sort AI actions by risk and reversibility. Let low-risk actions run, log medium-risk ones, and require approval for anything irreversible or high impact. Show reviewers the proposed action, the sources and the reason in one view, with a real option to reject or edit. Enforce it in your code. Monitor approval rates, because rubber-stamping isn't oversight.

Why it matters

Models get things wrong, and they can be tricked. See what agentic AI is and how to stop prompt injection. People also provide accountability, which matters to customers, regulators and your own team.

In some areas, oversight is more than a good idea. The EU AI Act, for instance, requires human oversight measures for high-risk systems, and GDPR gives people rights around certain solely automated decisions. Get legal advice if your system affects people's jobs, credit, health or similar.

Decide by risk

Don't review everything. Sort each action by how bad a mistake would be, and how easy it is to undo.

RiskExamplesControl
Low: harmless and reversibleReading data, drafting, tagging, searchingRuns automatically; log it
Medium: limited impact, can be undoneUpdating a CRM field, sending an internal messageRuns automatically, with sampling and undo
High: external, or hard to undoEmailing customers, issuing a refund, changing productionRequires approval
Critical: irreversible or seriousDeleting data, large payments, medical or legal adviceRequires approval, perhaps by two people; or don't automate at all

Think about limits too. A refund under €20 might run automatically, while a larger one needs approval. Ten automatic emails may be fine, but 10,000 might need a pause.

The different patterns

Approve before acting. The agent proposes, and a person approves. It's the safest, and it's also the slowest.

Review after acting. The system acts, and people check a sample. It's useful where mistakes are cheap, and can be corrected.

Escalation. The AI handles routine cases, and passes uncertain or sensitive ones to a person. Customer support often works like this. Don't rely only on a model's self-reported confidence, as it may not be well calibrated. Use rules as well: certain topics, values or customers always go to a person.

Human as the decider. AI only offers suggestions and information, and a person always acts. This suits high-stakes fields.

Training review. People correct outputs, and these corrections feed into your evaluation set.

Design the review screen

A bad review interface produces bad decisions. A reviewer needs:

  • What's about to happen, in plain language
  • Exactly what will change or be sent
  • Who it affects, and how many
  • The evidence: sources, data and what the agent saw
  • Why it's proposing this, although explanations can be wrong
  • Whether it's reversible
  • Clear options: approve, edit, reject or escalate

Compare:

Poor: “Agent wants to run: send_email(id=8841). Approve?”

Better: “Send this refund confirmation to ana@example.com? Refund: €84, order ORD-12345. Reason: damaged item (customer photo attached). This can't be unsent.”

Poor
Agent wants to run: send_email(id=8841). Approve?
Better
Send this refund confirmation to ana@example.com? Refund: €84, order ORD-12345. Reason: damaged item (customer photo attached). This can't be unsent.
The article's example. Only the second gives a reviewer anything to judge, so only there can approval mean something.

Make it as easy to reject as to approve, and let people edit the draft. Don't use a design that rewards clicking “Approve”. See how to design an AI product interface and how to design notifications.

Avoid rubber-stamping

This is the biggest failure. People tend to over-trust automated systems, known as automation bias. If 99% of requests are fine, reviewers soon stop looking.

Warning signs include approvals in a couple of seconds, a 100% approval rate, and large unreviewed queues.

To counter it:

  • Reduce the volume, by only asking for what really matters. Too many prompts train people to click yes.
  • Measure time and approval rates by reviewer.
  • Audit samples independently.
  • Insert known test cases to see whether errors are caught, with your team's knowledge.
  • Give people time and authority. A reviewer with a target of 200 an hour can't review properly, and one who can't say no isn't any kind of safeguard.
  • Train reviewers, on what mistakes look like, and how the system fails.
  • Rotate tasks to limit fatigue.

Coding agents have the same problem. If you're approving every command without reading it, then you may as well have turned the prompts off.

Enforce it in the system

A prompt saying “always ask before sending” isn't a control, as a model can ignore it or be manipulated.

  • Put the check in the tool layer. The send function itself should need an approval record, created by a person.
async function sendRefund(request) {
  const approval = await approvals.find(request.approvalId);
  if (!approval || approval.status !== "approved"
      || approval.approvedBy === request.agentId) {
    throw new Error("Refund needs human approval");
  }
  if (approval.payloadHash !== hash(request.payload)) {
    throw new Error("Refund changed after approval");
  }
  return payments.refund(request.payload);
}
  • Bind approval to the exact action. If the amount changes after approval, then it has to be approved again.
  • Give the agent limited credentials, so that it can't get around your checks.
  • Keep audit logs: who approved what and when, and what they saw.
  • Use expiry. An old approval shouldn't remain valid forever.
  • Make actions idempotent, so that retries don't repeat them.

Agent frameworks can pause and resume with state saved for you. See n8n vs LangGraph. For long approvals, store the task in a database and resume it later, rather than holding a process open. Also see how to write a tool description for an agent and is MCP secure?

Where the check belongs
AgentAsks to send the refund
Tool layerNo matching approval, so it refuses
PersonApproves this exact action
Tool layerSends it, and logs who approved
A prompt saying always ask first isn't a control, because a model can ignore it. Code can't be talked out of the check.

Plan for the queue

  • Who reviews, and when? What about weekends?
  • What happens if nobody responds? Generally, the safe default is to do nothing, and tell someone.
  • How do you tell the customer? “A person is checking this” is fine, if it's true.
  • How will it scale? If review takes three minutes and you've got 1,000 cases a day, then that's 50 hours of work. Count this in your cost estimate.

Loosen control gradually

Oversight doesn't have to remain the same forever.

  1. Start with approval for everything in a new system.
  2. Record decisions and what people changed.
  3. Look at the data. If a category has been approved unchanged for thousands of cases, and audits agree, it might be a candidate for automation.
  4. Automate that category, using limits and sampling.
  5. Monitor, and be ready to tighten up after a model change or incident.

Track how often people edit or reject, what errors got through, how long review takes, and what it costs. If reviewers are always rewriting the output, then the AI isn't saving anything.

Keep the highest-stakes decisions with people, however good the numbers look. And make sure that people can actually challenge the result, including those affected by it.

If you're adding AI agents to a real business process and want proper safeguards, book a call.

Common questions

What does human in the loop mean in AI?

It means that a person is involved in an AI system's decisions, by approving actions, reviewing outputs, or handling difficult cases. The level of involvement should depend on how risky the action is, and how easily a mistake can be undone.

When should AI actions need human approval?

Require it for anything irreversible, external or high impact, such as emailing customers, moving money, deleting data or decisions that significantly affect people. Low-risk, reversible actions can usually run automatically, with logging and occasional review.

What is automation bias?

It's the tendency for people to trust automated systems too much, and to stop checking them. In review queues, it leads to rubber-stamping. Reduce it by limiting volume, measuring review behaviour, auditing samples and giving reviewers real time and authority.

Can I enforce human approval through a prompt?

No. A prompt is guidance, and models can ignore it or be manipulated. Enforce approval in your code, by making the tool require an approval record created by a person, tied to the exact action, with limited agent credentials.

Have something worth building right?