AI · Agents · TOFU

Human in the loop: what it is and how to design human oversight of AI agents

An AI agent that reads invoices gets one wrong now and then. One that also approves them and orders the payment turns that mistake into money leaving the account. The difference between the two is not the model: it is whether there is a person at the point where the decision takes effect.

That design is called human in the loop. This guide explains exactly what it means, how it differs from human on the loop, what European law requires and how to decide, step by step, what a person reviews and what they do not.

A glass rail with two fixed navy-blue steps and two light-blue agent steps that reaches a glass gate with a white button circled by an amber ring, before the last step
Owner of Dokuflex
Updated: 22 November 2026

For operations leaders, IT, compliance and process owners at small and mid-sized companies. Based on Regulation (EU) 2024/1689 (the EU AI Act), the GDPR, the Guía 6 on human oversight from Spain’s AI regulatory sandbox (version of 17 July 2026) and open publications from Gartner and Forrester, consulted on 22 November 2026. This is general information, not legal advice; the patterns and the decision matrix are our own.

Direct answer

Human in the loop (HITL) is the design in which a person validates, corrects or stops the action of an AI system before it takes effect. Article 14 of Regulation (EU) 2024/1689 requires effective human oversight of high-risk systems, an obligation that applies from 2 December 2027 to those in Annex III.

What human in the loop is

Human in the loop (HITL) is a way of designing an automated process in which the action proposed by the AI is not carried out until a person validates, corrects or rejects it. The machine prepares; the person decides.

The term is used in two contexts. In model training, it describes the people who label data or correct answers so that the model learns. In operations, which is what this guide is about, it describes the person who steps in while the system is working: the agent reads a case file and proposes a resolution, and someone with authority confirms it before it reaches the customer.

For human in the loop to be real, three conditions have to be met:

  • The person sees the proposal and the data behind it, not just an “approve” button.
  • They can change or reject it with the same effort it takes to accept it.
  • Nothing takes effect until they decide. If the email has already been sent or the payment has already gone out, what you have is a notification, not a validation.

“Guía 6. Supervisión humana” (Guide 6: Human oversight), a non-binding guide from Spain’s AI regulatory sandbox, defines it in a similar way: human intervention in every action of the system, an ex ante form of oversight in which the action is partially automated.

In the loop, on the loop and in command: the three levels

The difference between the three levels is when the person steps in: before the action takes effect (in the loop), afterwards (on the loop) or as the one ultimately responsible for the whole system (in command). This is how the Guía 6 describes them; the table adds a process example and the main risk of each:

LevelWhen the person steps inExample in a processMain risk
Human in the loop (HITL)Before: validates every action (ex ante). The action is partially automatedThe agent drafts the reply to a complaint and a person reviews and sends itA bottleneck, and approving without looking
Human on the loop (HOTL)After: monitors and can reverse (ex post). The action is fully automatedThe agent classifies incoming emails and a person reviews a sampleThe error has already taken effect by the time it is detected
Human in command (HIC)Always: decides how and when the system is used and can switch it offManagement sets which processes may use agents and within what limitsNobody actually takes on that role

The three are not mutually exclusive. Human command (in command) must always exist; the other two are chosen step by step. For high-risk systems, the Guía 6 notes that human in the loop is usually the recommended level and that human on the loop is not particularly recommended, because of the risk of an impact on people’s rights that is hard to reverse. In both cases it asks for a record of two things: what the system proposed or executed, and what the person responsible for it finally did.

Outside high risk, which is where almost all of an SME’s processes sit, the normal approach is to mix them: prior approval where a mistake is expensive and after-the-fact monitoring where it can be undone.

Why it matters more with agents than with chatbots

It matters more because an agent does not just answer: it carries out actions in your systems. A mistake stops being a piece of text that could be better and becomes a payment, a sent email or a modified record. With a chatbot, the person is in the loop by definition, because they read the answer before doing anything with it. With an agent, that checkpoint has to be designed.

Analysts have been warning for more than a year about what happens when it is not:

  • Gartner warned on 25 June 2025 that more than 40 % of agentic AI projects will be cancelled by the end of 2027, and cited three causes: escalating costs, unclear business value and inadequate risk controls.
  • Forrester, in its analysis of the state of agentic AI of 3 June 2026, describes how three quarters of executives say they are adopting it while only a small minority have it in real production. Its recommendation is to start with narrowly scoped tasks behind approval gates and rollback paths, and to widen autonomy only when the controls have earned it.
  • The same publication reports that 49 % of the security leaders surveyed by Forrester in 2026 name agentic AI as a concern.

Forrester’s “approval gates” are human in the loop under another name. We discuss why so many projects never get past the trial in how to take an AI pilot to production, and the security failures specific to agents in AI agent security in business processes.

What the law requires: Article 14 of the EU AI Act and Article 22 of the GDPR

European law requires human oversight in two situations: when the AI system is high-risk (Article 14 of the EU AI Act) and when a decision based solely on automated processing produces legal or similar effects on a person (Article 22 of the GDPR).

RuleWhat it asks forWho it bindsSince when
Art. 14 of Regulation (EU) 2024/1689That the high-risk system can be effectively overseen by natural persons while it is in use, with measures commensurate with the risks, the level of autonomy and the context of useThe provider, which designs it2 December 2027 (Annex III) and 2 August 2028 (Annex I)
Art. 26(2) of the same RegulationAssigning human oversight to natural persons who have the necessary competence, training and authorityThe deployer: the company that uses the systemThe same dates
Art. 22 of the GDPRThe right not to be subject to a decision based solely on automated processing which produces legal effects or similarly significantly affects the personThe controller25 May 2018

Article 14 does not require a person to review every action. What it requires, in paragraph 4, is that whoever oversees the system is able to do five things:

  1. Understand the system’s capacities and limitations and monitor its operation to detect anomalies.
  2. Remain aware of “automation bias”: the tendency to rely automatically or too much on what the system proposes.
  3. Correctly interpret the output.
  4. Decide not to use the system, or disregard, override or reverse what it has produced.
  5. Intervene or interrupt it through a stop button or a similar procedure that brings it to a halt safely.

The dates are those set by Regulation (EU) 2026/1744, which postponed the Annex III high-risk rules to 2 December 2027 and those for Annex I products to 2 August 2028.

Article 22 of the GDPR has been in force since 2018 and is the one that affects an SME most. If an agent turns down an application, discards a job candidate or applies a penalty with nobody involved, the decision is based solely on automated processing. In the cases where the GDPR allows it by contract or by explicit consent, the controller must safeguard “at least the right to obtain human intervention on the part of the controller, to express his or her point of view and to contest the decision”.

Most of an SME’s processes (invoices, expenses, incidents, purchasing) are not high-risk. Those that fall within the Annex III areas, such as recruiting and evaluating staff, can be. To find out where each system stands, see the guide to the AI systems register and the guide to the EU AI Act in process automation. And even if your case is not high-risk, the five abilities in Article 14 work as a checklist for any agent.

Four patterns of human oversight in a process

In a real process, human oversight comes down to four patterns: prior approval, review by exception, after-the-fact sampling, and stop and rollback. This classification is our own and is useful when talking to whoever designs the flow:

PatternHow it worksWhen to use itExample
1. Prior approvalEvery agent action waits for a person to validate itDecisions about people or money that cannot be undoneTurning down an application, signing a contract, ordering a payment
2. Review by exceptionThe agent acts on its own above a confidence threshold and within set rules; everything else goes to a personHigh volume, with most cases clear-cutExtracting invoice data: the doubtful ones go to review
3. After-the-fact samplingThe agent acts; a person reviews a periodic sample and the cases that are challengedReversible, low-impact actionsClassifying emails, tagging documents, summarising case files
4. Stop and rollbackAn authorised person can stop the agent and undo what it didAlways, as the safety net for the other threeSwitching off the agent in a process when a chain of errors is detected

The first is human in the loop in the strict sense. The third is human on the loop. The second, the most useful in practice, combines the two: the person only comes in where the agent is unsure or where a rule says so. The fourth corresponds to human command and to the fifth ability in Article 14.

A single process usually uses several. In an invoice approval, reading the document goes by exception, posting to the accounts by sampling and the payment by prior approval. We explain how fixed steps and AI steps live together in what Adaptive Process Orchestration is.

How to decide what a person reviews: impact and reversibility

Two questions are enough to place each step: what happens if the agent gets it wrong, and whether that can be undone. The greater the impact and the harder the way back, the earlier the person has to come in.

Impact of an errorCan it be undone?Recommended patternExamples
LowYesAfter-the-fact samplingTagging, summarising, routing a request
LowNoReview by exceptionSending a reminder to a customer
HighYesReview by exception with a demanding thresholdProposing the accounting entry for an invoice, allocating a budget
HighNoPrior approvalPaying, refusing, signing, sanctioning, deleting data

Two fixed rules need to be added to the matrix:

  • If the decision affects a natural person with legal or similar effects (hiring, granting, penalising), always prior approval. That is what keeps you out of Article 22 of the GDPR.
  • Start strict and relax with data. Begin with prior approval, measure for a few weeks how many proposals are corrected and move to review by exception when the numbers justify it. The other way round does not work: nobody cuts back autonomy until there is an incident.

The most common case in an SME is reading documents. We look at how to set the confidence threshold there, field by field, in intelligent document processing (IDP).

Automation bias: when the person approves without looking

Automation bias is the tendency to rely automatically or too much on what the machine proposes. It turns the reviewer into a formality: the person is in the loop on paper, but approves everything that arrives. The EU AI Act names it expressly in Article 14(4)(b).

It is not fixed by asking people to pay more attention. It is fixed by design:

  1. Show the evidence next to the proposal: the source document, the extracted data and the confidence level, on the same screen.
  2. Make rejecting cost the same as approving. If approving is one click and correcting is five screens, the outcome is already decided.
  3. Limit the volume per reviewer. If the queue can only be cleared by approving in bulk, there is too much autonomy or too few people.
  4. Test the people who oversee. The Guía 6 proposes a “forced error” mode: in a test environment, the system deliberately produces some wrong outputs to check whether people spot them. It is used before going into production and as training, never in production.
  5. Measure the correction rate per reviewer. Someone who never corrects anything is either looking at a perfect system or not looking.

The same problem appears when employees use AI tools on their own and take the answers as correct. We cover it in shadow AI at work.

What to measure to know whether oversight is working

Oversight works if it catches errors without slowing the process down, and that shows in five indicators that any process engine can pull from the task log:

IndicatorWhat it tells youWarning sign
Escalation rateWhat share of cases reaches a person; whether the threshold is set in the right placeVery high: the agent saves no work. Very low with errors found later: the threshold is too loose
Correction rateWhat share of proposals is changed or rejectedA sustained zero for one reviewer or for all of them
Review time per caseWhether the person has what they need to decideSeconds on decisions that require reading a document
Errors detected afterwardsWhat slipped past oversightIt grows every time autonomy is widened
Waiting time in the queueWhether oversight has become the bottleneckIt exceeds the deadline of the process itself

All five come from the same place: the record of what the agent proposed, who reviewed it, when and what changed. If that record does not exist, there is no way to show that oversight is effective, which is exactly what the law asks for.

How Dokuflex solves it: human validation is a step in the process

Dokuflex, the low-code BPM platform with AI, treats the agent as one more step in the process and the person overseeing it as another, with their own task and their own record. Oversight is not a separate screen: it is drawn into the flow.

  • Confidence threshold configurable per agent. For each type of task you define the level of certainty above which the agent acts on its own; below it, the task escalates automatically to a human reviewer. It is review by exception, ready to use.
  • Reversibility and human veto. Any agent action can be reversed or rejected by an authorised user, and the final sign-off on critical decisions is always validated by a person.
  • Traceability of every decision. Each action records the input, the model and its version, the reasoning, the sources consulted, the output and the human validation, if there was one. All of it exportable for an audit.
  • Explicit permissions by domain. The agent only accesses the documents, data and APIs that have been expressly authorised, as described on the governed AI agents page.
  • Processes in BPMN with human tasks, rules and deadlines in Dokuflex low-code BPM, and data processed in European data centres by default.

What Dokuflex does not decide for you is where to set the threshold or who reviews. That depends on the impact of each step in your company, and it is what we look at in the first session. Bring a process and we will review it in 30 minutes. We explain the five pillars of governance in governed AI agents with BPM.

Frequently asked questions

What does human in the loop mean?

It means a person sits inside the decision loop: a design in which the action proposed by an AI system is not carried out until a person validates, corrects or rejects it. The person sees the proposal and the data behind it, can change it, and nothing takes effect until they decide.

What is the difference between human in the loop and human on the loop?

With human in the loop, the person steps in before the action takes effect (ex ante oversight). With human on the loop, the action runs automatically and the person monitors afterwards and can reverse it (ex post oversight). The first is safer and slower; the second only makes sense when the error can be undone.

Is human in the loop required by law?

For high-risk AI systems, Article 14 of Regulation (EU) 2024/1689 requires effective human oversight, applicable from 2 December 2027 to those in Annex III. It does not require every action to be reviewed: it asks for measures commensurate with the risks, the level of autonomy and the context of use. In addition, Article 22 of the GDPR has limited decisions based solely on automated processing since 2018.

Can an AI agent make decisions without human intervention?

Yes, for low-impact, reversible tasks such as classifying emails or tagging documents, always with a record and with a person who can stop it. It is not advisable when the decision produces legal or similar effects on a person: Article 22 of the GDPR gives the right not to be subject to a decision based solely on automated processing and, where such a decision is permitted, to obtain human intervention.

What is automation bias?

It is the tendency to rely automatically or too much on the output produced by an AI system. It leads the person overseeing the system to approve without reviewing. The EU AI Act mentions it in Article 14(4)(b) and asks whoever oversees the system to remain aware of it. It is reduced by showing the evidence next to the proposal, limiting the volume per reviewer and measuring the correction rate.

How many of an AI agent’s decisions should a person review?

There is no fixed percentage. It depends on the impact of an error and on whether it can be undone: prior approval of all of them when the impact is high and irreversible, review of only those that fall below a confidence threshold when volume is high, and a periodic sample when the impact is low. The prudent approach is to start by reviewing everything and expand autonomy based on data.

Sources

Consulted on 22 November 2026. For Gartner and Forrester we cite the open publications; the full reports are paid content.

Next step

Decide where the person goes before you add the agent

Bring a real process. In 30 minutes we map it with you and mark which steps an agent can do on its own, which by exception and which need prior approval. Or create a free account and get started on your own.