Start / Blog / Automation / Human-in-the-Loop: Meaning and How It Works in Practice

Human-in-the-Loop: Meaning and How It Works in Practice

Summarize with ChatGPT

In automated document processing, AI reads invoices, contracts, or delivery slips and passes the data to the specialized system. At one point in this process, a human reviews the results before they take effect. This verification step is called “Human in the Loop” (HITL). How it is designed determines how much manual work remains in the entire process and what the company’s dark processing rate is.

This post describes the basic process and how to configure it in Konfuzio: which documents an auditor can actually view, what the audit link displays, and what happens if no one performs an audit.

What "Human in the Loop" Means

human in the loop definition

"Human-in-the-loop" describes a process in which a person reviews, confirms, or corrects the results of an AI system before they are processed further. Unlike the fully automated dark processing, even when no human is involved, the decision regarding each individual document remains with a case worker. The AI handles the reading and preliminary sorting, while the human approves it.

What Documents an Auditor Sees

Technology is not flawless. That is why people must be involved in automation and continually adapt it to current goals and needs. Not only must AI be trained by humans at the outset to make correct decisions, but humans must also intervene when errors occur and correct them. This feedback loop serves to improve the accuracy of the AI and the implemented automation processes.

Schaubild Human in the Loop: unsichere Vorhersagen gehen an den Menschen, sichere direkt in die Ausgabe

In Konfuzio, you can specify for each workflow when a document is sent for review. There are three settings to choose from:

  • Always: Every document is sent to the reviewer. This is particularly useful for high-risk documents, such as contracts, and when implementing a workflow.
  • Only if fields are missing: A document in which all fields have a value continues through the workflow without being checked. If a value is missing, the workflow stops.
  • My own rule: A rule expressed in natural language, such as: All required fields are filled in and the total amount is greater than 0. An AI checks the rule; if it is satisfied, manual verification is not required. If the rule cannot be evaluated, the document is forwarded to the reviewer as a precaution.

Regardless of this setting, the following run on the platform: Extractor Validation Rules after each extraction. They apply per field—for example, for a valid date—or per document—for example, for line items that must total the grand total.

In the extractor’s document list, a document appears in green if all validation rules are met. It appears in yellow with a note indicating that some validation rules have not been met and that the document should be opened. It appears in red if the AI has detected an error or no content at all. When comparing against master data—such as a supplier list—the results view displays three levels for each field: exact match (green), similar match (yellow), and no match (red).

Example: An incoming invoice process handling several hundred documents per day is set to „only if fields are missing.“ Only those documents in which, for example, the order number is missing are held up. All others are transferred directly to the accounting software. The document references remain visible on the platform as long as the workflow retains the documents.

What the test link shows

If a document is held for review, the assigned reviewer receives an email containing a link. By default, the link is valid for 72 hours; this can be set to between 1 and 720 hours, or up to 30 days. The review page displays the number of hours remaining at the top. Below that, if provided, are instructions from the workflow creator—for example, a request to verify the amounts against the contract.

Document and Values Side by Side

The page displays the document as an image, with the extracted values shown alongside it. Each value is accompanied by its source location: Clicking on a value highlights the spot on the page where it appears. This allows you to verify the information without having to flip through the pages, even in the case of a twenty-page contract.

The reviewer can leave their name and a note and decide whether to approve or reject the document. If two people make a decision at the same time, the first decision counts; the second reviewer receives a notification that the document has already been processed.

Confirm and Correct on the Platform

Within the platform, the review process goes one step further. There, each field can be individually confirmed or corrected. Afterward, each field is assigned a status: read by AI, confirmed by a human, or corrected by a human. The original value remains stored. A summary shows how many fields have been confirmed, corrected, or are still unchecked before the document is marked as verified.

This count serves as the feedback loop for the automation process. When recorded over several weeks, it shows how often human intervention was necessary, whether the inspection step should be set to a tighter or looser tolerance, and which field instruction needs to be refined.

What happens if no one checks?

In the event that no one responds to the test link, Konfuzio has set rules in place:

  • Procedure: About once a minute, a background process checks to see if review links have expired. If they have, the run ends as a failure with the reason „Review link(s) expired“ and does not go unnoticed.
  • Three results: The validation step can have three outcomes: approved, rejected, and expired. Only approval allows the process to continue. Rejection and expiration terminate it, and the connected system is notified of the result via the webhook.
  • One entry per race: Via the webhook—that is, the automatic response sent to the connected system—exactly one message containing the result and the verified documents is sent, even in the event of rejection or expiration. There is no second message for the same run.
  • Stack: If a run includes multiple documents, all of them must be approved. If one is rejected or its link expires, the run will not continue; it ends as soon as the remaining decisions have been made or have expired. An approval received later is saved but does not move the process forward, and the reviewer sees this note on the page.
  • Waiting Period and Deletion: A run awaiting review is not subject to automatic deletion as long as the link is valid. The review copy of the document remains available for as long as the workflow retains its documents. New workflows delete documents immediately after processing; you can set the retention period to up to 365 days or disable automatic deletion.
  • Restart: Restarting the background process does not cause a resumed run to hang. If the resumption itself aborts, the background process terminates the run after at least one hour, sending an error message to the connected system, ensuring that no run is left running unnoticed.

Advantages and Limitations

human in the loop vorteile

Traditional process: An administrator opens each invoice, enters the amounts, and compares them to the purchase order. To ensure the dual-control principle, a second person repeats the same process.

AI-powered process using HITL: The AI reads all documents. Validation rules flag discrepancies, and the human user sees only the flagged cases along with their source references. The AI reads aloud, the validation rules compare the data, and the human user approves it. This results in four advantages:

  • Risk: Errors in amounts, addresses, or deadlines are caught before they are posted or approved.
  • Traceability: The decision, name, and note are saved on the grading page; on the platform, each correction retains its original value.
  • Cost Control: The setting that determines when checks are performed affects personnel costs. It can be changed at any time for each workflow.
  • Learning curve: The tally of the corrected fields (see above) indicates where a field instruction should be refined.

It all comes down to the reviewer's attention to detail. A reviewer who approves error-free documents day after day will eventually start clicking without reading. The Article 14, paragraph 4, of the AI Regulation requires For high-risk systems, supervisors must be able to „remain aware of a potential tendency to place automatic or excessive trust in the output generated by a high-risk AI system („automation bias“).“.

A more selective review process can help with this. A reviewer who sees only the yellow and red cases will actually read them.

Conclusion: "Human in the Loop" as a setting for each workflow

"Human in the Loop" is a setting for each workflow: when a document is paused, who sees it, how long the link is valid, and what happens if there is no response. A review step that pauses every document shifts the workload. A review step that displays only the flagged cases saves time and keeps the reviewer's attention focused.

Counting the confirmed and corrected fields makes the verification step measurable. Tracking this data over several weeks shows whether the criteria can be tightened. The decision, name, and note for each verification also provide the traceability that the business unit and the audit department expect.

More articles on the topic:

Did you find this page helpful?

Thank you for your feedback!

Would you give me feedback? (anonymous)

We develop AI software for companies and deliberately avoid annoying advertising banners. Through our articles, we document topics that occupy and interest us and also finance our daily bread.

As our content is free of charge, your feedback is our praise.

Each author reads your anonymous feedback personally, although AI could automate it, and integrates constructive suggestions directly into the next revision or uses it as inspiration for the next article.



    </article
    • Christopher Klee
      (Author)

      Editor in the field of knowledge transfer; former banker and former professional handball player.

    en_USEN