Plans Global logo Plans GlobalAI · Global

Agent design

Designing human-in-the-loop AI agents: a practical framework

Plans Global AINovember 20, 202612 min read

"Human in the loop" is easy to say and surprisingly hard to design. Put humans everywhere and the agent saves no time; remove them entirely and errors reach customers unchecked. This framework helps you place people exactly where their judgement adds the most value.

What does human-in-the-loop actually mean?

It means a system where AI handles defined parts of a workflow automatically, while specific decisions, exceptions or uncertain cases are routed to people for review, approval or takeover.

The phrase covers several patterns. A human may approve every action before it happens, review a sample after the fact, handle only escalated cases, or supervise in real time. The right pattern depends on the cost of errors, the volume of work and how predictable the task is. Good design chooses deliberately rather than defaulting to one pattern for everything.

Step 1: How do you define the agent's job?

Write a one-paragraph job description: what the agent handles, what it never handles, which systems it may read or change, and what a successful interaction looks like.

Treat it like hiring. A new support employee is told which questions they can answer, which require a supervisor and which systems they can access. An agent deserves the same clarity. Vague scope is the most common root cause of agent failures, because the model fills ambiguity with confident guesses.

Step 2: How do you classify actions by risk?

List every action the agent might take and rate the consequence of getting it wrong. Low-risk actions can be automatic, medium-risk actions need checks, high-risk actions need human approval.

Risk tierExamplesPattern
LowAnswering policy questions, sharing order statusAutomatic, with sampling review
MediumUpdating a booking, tagging a ticket, extracting invoice fieldsAutomatic with confidence thresholds and audit
HighIssuing refunds, changing contracts, communicating sensitive decisionsHuman approval required

Step 3: Which triggers should force escalation?

At minimum: low confidence, out-of-scope requests, sensitive topics, expressions of frustration or distress, repeated failed attempts, and any explicit request for a human.

  • Uncertainty: the agent cannot find a grounded answer.
  • Scope: the request falls outside the job description.
  • Sensitivity: legal, medical, financial hardship or safety topics.
  • Emotion: anger, distress or urgency in the user's language.
  • Loops: the same issue raised several times without resolution.
  • Request: "Can I talk to a person?" always wins.

Step 4: How should a good hand-off work?

The user is told clearly what is happening and when to expect a reply; the human receives a concise summary, the relevant data and the conversation history; nobody has to repeat themselves.

Hand-offs are where users judge the whole system. An elegant agent with a clumsy hand-off feels worse than no agent. Design the receiving side too: which queue, which hours, which fallback when nobody is available. Measure time to human response after escalation as carefully as you measure the agent itself.

Step 5: Where do approval gates belong?

Before any action that is costly, irreversible or legally significant. The agent prepares the action and explanation; a person approves, edits or rejects it.

Approval gates let agents do most of the preparation while humans keep authority. A refund agent can gather the order, verify eligibility against policy and draft the response; a staff member approves with one click. That preserves accountability while still removing most of the manual effort.

Step 6: How do you keep humans engaged rather than rubber-stamping?

Show reviewers why the agent proposed something, highlight uncertainty, vary what they see, and track approval patterns. If approvals are always instant, the review may have stopped being meaningful.

Automation bias is real: people trust systems that are usually right. Counter it by surfacing the agent's reasoning and evidence, by flagging items where the agent itself was less confident, and by occasionally auditing approved items to check that reviews are substantive.

Step 7: What should you monitor after launch?

Resolution rate, escalation rate and reasons, error reports, user satisfaction signals, time to human response and drift in topics over time.

Escalation reasons are especially informative. A rising share of "out of scope" escalations may mean customers' needs are changing, or that the job description needs expanding. A rising share of "uncertain" escalations may mean source information has gone stale.

Step 8: How do you govern changes?

Treat prompts, sources, tools and model versions as configuration under change control. Rerun your evaluation set before each change goes live, and record what changed and why.

Small edits can have large effects. A change that improves tone might reduce accuracy on edge cases. A disciplined evaluation-and-release routine catches these before customers do.

What are common anti-patterns?

  • "Escalate if unsure" with no definition of unsure
  • Agents that can act on systems they only need to read
  • Hand-offs that drop conversation context
  • Approval queues nobody owns
  • No baseline metrics, so success cannot be shown

How do you design for different channels?

Adapt escalation and hand-off to each channel's expectations. Chat users expect quick handovers; email users tolerate longer waits but need clear timelines; voice requires even more careful escalation.

An agent that works well on web chat may need different behavior on messaging apps, where users send several short messages in a row, or in email, where a single message may contain multiple requests. Test the same workflow across each channel you plan to support, and tune escalation timing accordingly.

How should agents handle multiple languages?

Respond in the user's language, test with real mixed-language messages, and make sure human reviewers can understand escalated conversations, through translation where needed.

Multilingual support is increasingly common, and users often switch languages mid-conversation. Evaluation sets should include those patterns. Hand-offs should preserve the original messages alongside any translation, so the human sees exactly what the user wrote.

How do you evaluate escalation quality?

Review a sample of escalations and non-escalations regularly. Good escalations were genuinely needed; good non-escalations were genuinely handled. Both kinds of error matter.

Under-escalation leaves users with wrong or incomplete answers. Over-escalation floods your team and erodes the value of the agent. Tracking both, and the reasons behind them, is how you tune triggers over time without guesswork.

How do you keep reviewers engaged rather than rubber-stamping?

Rotate review duties, show reviewers the impact of their corrections, sample approved items for audit, and keep review queues small enough to handle attentively.

Review fatigue is a real risk. When a reviewer approves hundreds of correct items in a row, attention drifts and the rare error slips through. Mixing in known test cases, auditing a sample of approvals and making corrections visibly improve the system all help reviewers stay sharp and feel their work matters.

How do you start?

Pick one workflow, write the job description, classify the actions, define triggers and design the hand-off before building anything. Then pilot with close review.

See the escalation and low-confidence patterns in our scripted agent console, read about document AI review queues, or contact us to scope a pilot.

Bring us a workflow. Leave with a plan.

Describe the process you want to improve. We'll respond with an honest assessment, a phased approach and a custom quote in USD.

WhatsApp