Short answer: A human-in-the-loop AI agent does the routine work on its own but pauses for a person before any action that is risky, costly or hard to undo. You can trust it when three things are in place: approval steps on the high-impact actions, a log that shows what the agent did and why, and a way to stop it and reverse its mistakes.

Key points

  • Decide approval per action, not per agent. Reading a record is low risk; sending money, deleting data or emailing a customer is not.
  • OpenAI's agent guide names two triggers for handing control to a person: the agent keeps failing, or the action is "sensitive, irreversible, or [has] high stakes."
  • Approval is only one control. OWASP lists narrow tools and narrow permissions first, because an agent that can't delete anything can't delete the wrong thing.
  • Log every tool call with its inputs, the result and who approved it. Without that, you can't review an incident or improve the agent.
  • Plan rollback before launch: drafts instead of sends, soft deletes, undo windows and a stop switch.
  • Watch for rubber-stamping. A reviewer who clicks through a long queue without reading adds delay but no safety.

What "human-in-the-loop" means for an agent

Anthropic describes agents as systems where the model "dynamically direct[s] [its] own processes and tool usage." Once the task is clear, agents "plan and operate independently, potentially returning to the human for further information or judgement," and they "can then pause for human feedback at checkpoints or when encountering blockers" (Anthropic, Building effective agents).

That pause is the loop. The agent proposes an action, a person approves, edits or rejects it, and the agent carries on. Agent frameworks now ship this as a standard feature. The OpenAI Agents SDK lets a developer mark a tool with needs_approval, so the run stops "until a person approves or rejects sensitive tool calls" and the paused run can be saved and resumed once someone decides (OpenAI Agents SDK, Human-in-the-loop). LangGraph does the same with interrupt(): it saves the agent's state and "waits indefinitely until you resume execution" (LangChain, Interrupts).

So building the pause is the easy part. The design work is deciding where it goes. If you are still choosing between an agent and a simpler workflow, start with our guide on AI agents vs chatbots vs automation.

Step 1: Rate every action the agent can take

OpenAI's A practical guide to building agents suggests rating each tool low, medium or high risk "based on factors like read-only vs. write access, reversibility, required account permissions, and financial impact," then using those ratings to pause for checks or escalate to a person (OpenAI, PDF). The same guide lists the examples most businesses will recognize: "canceling user orders, authorizing large refunds, or making payments."

A simple way to apply it:

RiskTypical actionsControl
LowSearch, read a record, summarize, draft a replyRuns on its own; logged
MediumUpdate a CRM field, tag a ticket, book an internal meetingRuns on its own within limits; logged; easy to undo; spot checks
HighSend to a customer, issue a refund, pay, delete, change access, publishPerson approves first; logged with the approver's name
Off limitsAnything the process doesn't needDon't give the agent the tool at all

The table is a starting point, and the ratings depend on your business. A draft email is low risk if it stays a draft and high risk if the agent can send it.

Rules can also be conditional. The OpenAI SDK example approves most emails automatically but requires a person when the subject mentions a refund. Thresholds work the same way: refunds under a set amount go through, larger ones wait for a manager. You pick the amount based on what a mistake would cost you.

Step 2: Shrink what the agent can do before adding approvals

OWASP's Top 10 for LLM applications calls this risk Excessive Agency: damaging actions caused by "unexpected, ambiguous or manipulated outputs from an LLM." It names three root causes: excessive functionality, excessive permissions and excessive autonomy (OWASP, LLM06:2025).

Human approval only addresses the third. OWASP's first fixes are about the other two:

  • Give the agent only the tools it needs. A mailbox summarizer "may only require the ability to read emails," so it shouldn't be able to send or delete.
  • Avoid open-ended tools such as "run a shell command" when a narrow tool like "write this one file" will do.
  • Give the agent's account the minimum permissions on downstream systems, and run actions as the user it works for, not as an admin.
  • Enforce permissions in the downstream system "rather than relying on an LLM to decide if an action is allowed or not."

This order matters because approval steps get skipped, misread or approved in a hurry. A database account without DELETE rights fails safe every time. OWASP's own example is an email assistant tricked by a malicious incoming message into sending mail. Its fixes are a read-only mail scope, or making the user "manually review and hit 'send'" on every draft.

Step 3: Design the approval screen people will actually read

An approval step is only as good as the person using it. The EU AI Act's human oversight article puts the risk well: people should "remain aware of the possible tendency of automatically relying or over-relying on the output" of the system, which it calls automation bias (EU AI Act, Article 14).

Some design choices make careful review easier:

  • Show the exact action and its effect: "Refund 340 AED to order 1182," not "Approve tool call?"
  • Show the evidence the agent used, such as the customer's message or the policy it applied, so the reviewer can check the reasoning quickly.
  • Offer approve, edit and reject. Editing a draft is often the most useful option, and a rejection with a reason tells you where the agent goes wrong.
  • Keep the queue small. If everything needs approval, people start clicking through. Move proven, low-risk actions to automatic and keep approvals for the actions that matter.
  • Route approvals to the person who owns the decision (finance for refunds, a manager for access changes), not to whoever is online.

Expect to adjust this over time. OpenAI's guide notes that human oversight is "especially important early in deployment," and that high-risk actions should stay with a person "until confidence in the agent's reliability grows." Loosen the rules only when your logs show the agent gets that action right.

Step 4: Log enough to explain every action

OWASP adds that logging and rate limits "will not prevent Excessive Agency, but can limit the level of damage caused," because they let you notice bad actions before they pile up. NIST's AI Risk Management Framework asks for post-deployment monitoring that includes "appeal and override, decommissioning, incident response, recovery, and change management" (NIST AI RMF Core, Manage 4.1).

For each agent action, record:

  • What triggered the run (the user, message or schedule) and when.
  • Which tool was called, with what inputs, and what came back.
  • The approval decision: who, when, and any edits or rejection reason.
  • The model and prompt version in use, so you can tie a change in behavior to a release.

Mask personal data in logs the same way you would in any other system. These logs also become your test set: past rejections and edits are exactly the cases to check after every change, as we describe in why AI pilots stall. Logs also show you what the agent costs to run, which our guide to AI running costs covers in detail.

Step 5: Make mistakes reversible

Approval reduces mistakes; it doesn't remove them. Design for undo:

  • Prefer drafts to sends and proposals to changes. The agent prepares, a person or a timed rule commits.
  • Use soft deletes and keep the previous value when the agent updates a record.
  • Add an undo window for outbound actions where your tools allow it, such as a short delay before a message goes out.
  • Set stopping conditions. Anthropic recommends limits such as "a maximum number of iterations," and OpenAI suggests escalating to a person when the agent exceeds a retry or action limit.
  • Rate limit high-impact tools so a misbehaving agent can only do a small amount of damage before monitoring catches it.
  • Give someone a stop switch. The EU AI Act describes this as a "'stop' button or a similar procedure that allows the system to come to a halt in a safe state."

Some actions can't be undone: a payment that has cleared, an email that was read. Those are the ones that should stay behind a human approval for good.

Where regulation comes in

For most small and mid-size companies, these controls are good engineering rather than a legal duty. The EU AI Act's Article 14 does require human oversight for systems it classes as high risk, including the ability to "disregard, override or reverse" the output and to stop the system. The EU AI Act Explorer lists that article as applying from 2 December 2027 for high-risk uses listed in Annex III and 2 August 2028 for those under Annex I. If you sell into the EU or work in a regulated sector, ask your lawyer whether your use case is covered. This guide isn't legal advice.

FAQ

Does every AI agent need a human in the loop? No. An agent that only reads and summarizes can run on its own with logging. Add approvals where an action is sensitive, irreversible or expensive, and remove the tools the agent doesn't need.

Won't approvals slow everything down? Only for the actions that need them. Most steps (searching, reading, drafting) still run automatically. The person reviews the few decisions that carry real risk, which is usually faster than doing the whole task by hand.

How do I know when to remove an approval step? Use your logs. If reviewers approve a type of action without edits over a long run of real cases, and a mistake would be cheap to undo, it's a candidate for automatic handling with spot checks. Keep approvals on anything irreversible.

What tools support approval steps? Most agent frameworks now do, including the OpenAI Agents SDK (needs_approval) and LangGraph (interrupt). You can also build the approval into your own system, which OWASP notes may be "a downstream system (outside the scope of the LLM application)."

Can a cleverly worded message trick an agent into skipping approval? It can try, which is why approval and permissions should be enforced in code and in the downstream system, not in the prompt. A prompt instruction like "always ask first" can be overridden by injected text; a tool that requires approval can't.

Build an agent your team can trust

We design and build AI agents with approval steps, logging and rollback planned from the first version. See our AI agent development service, read how we add AI to existing apps, or book a consultation to talk through which actions in your process should stay with a person.

Sources

All checked November 2026.