AI automation9 min read

Designing human-in-the-loop AI workflows

Where to put the review gate, how to make review cheaper than doing the task by hand, and why an acceptance rate you actually measure is the only honest way to report on an AI workflow.

"Human-in-the-loop" has become a reassurance rather than a design. It gets added to a proposal to make an AI workflow sound safe, without anyone specifying where the human sits, what they are actually deciding, or how anyone will know whether the arrangement works.

Done properly it is a specific set of design choices, and it is what makes an AI workflow deployable in an organisation that has to stand behind its outputs.

Put the gate where the consequence is

Not every step needs review. Retrieval, extraction, formatting and routing are mechanical — if they go wrong, they go wrong visibly and recoverably. The gate belongs immediately before the point of consequence: before something is sent to a customer, entered into a system of record, or used as the basis for a decision.

Putting a review step on every intermediate stage does not increase safety. It increases reviewer fatigue, which decreases safety, because a reviewer clicking approve eleven times will click it the twelfth time without reading.

Review must be cheaper than doing the task

This is the constraint that decides whether the whole thing works. If reviewing a drafted output takes as long as producing it, you have moved the bottleneck and added an API bill.

Three things make review genuinely fast:

  • Show the evidence alongside the output. The reviewer should see the retrieved source passages the draft was built from, not just the draft. Verifying against visible evidence is far quicker than reconstructing the reasoning.
  • Make the common case one action. Accept should be a single deliberate click. Editing should be inline, not a re-do in another tool.
  • Sort by confidence. Surface the uncertain items first, so attention goes where it earns something.

Log the decision, not just the output

Every gate decision should be recorded as accepted, edited or rejected. This is the single most valuable piece of instrumentation in an AI workflow, for three reasons.

It gives you an acceptance rate — a measured number describing how well the system actually performs, rather than a claim. An acceptance rate around ninety percent is a good result and should be reported as exactly that, not rounded up to "accurate".

It gives you an improvement signal. Rejections cluster. When they do, they almost always point at missing or stale reference material rather than at a need for a bigger model.

And it gives you an audit trail: for any released output, who approved it and what they saw. That is usually what a risk or compliance function actually needs, and it is much easier to provide if it was designed in rather than reconstructed later.

Ground retrieval in curated material

A model answering from its general training is producing something plausible. A model answering from passages retrieved out of your own curated material is producing something checkable. For anything operational, only the second is acceptable — and the difference shows up in review time, because a reviewer can verify a cited passage far faster than they can assess a fluent paragraph with no provenance.

This also means curation is the real work. Retrieval quality and the state of the source material determine answer quality far more than model choice does.

Close the loop, or it decays

Reference material ages. Policies change, systems get upgraded, procedures are revised. A retrieval-grounded system with no correction path degrades quietly — still fluent, increasingly wrong.

The loop is: rejections are reviewed, the underlying gap in the source material is fixed, and the fix is what improves future answers. Without that path the logging is just a report nobody acts on.

Where a rule beats a model

If a decision can be expressed as a deterministic rule, use the rule. It is cheaper, faster, testable, explainable, and it does not vary between runs.

The useful architecture for most conversational and classification work is rules first, model second: handle the clear cases deterministically, and let the model see only genuine ambiguity. That narrows the model's job to something it does well, keeps the common path covered by ordinary tests, and makes cost and latency predictable.

Reaching for a model where a rule would do is the most common and most expensive design mistake in this space.

What to say to a stakeholder

Three sentences, all of which should be true before you deploy: every output passes a human gate before release; the acceptance rate is measured and currently sits at a stated figure; and here is what it costs to run per month at current volume.

A workflow that cannot answer all three is not ready, regardless of how well the demo went.

Dat Tran, founder of EthanCorp

Dat TranEnterprise Data & AI Analytics Architect — the person behind EthanCorp.

A note on sources

This article describes general delivery practice. It contains no client-specific information. Where it refers to outcomes, those are the figures published on the case studies and on dattranbi.github.io.

More insights

Integration8 min read

Enterprise data integration: what usually breaks

Integration projects rarely fail on the connector. They fail on identity, on late-arriving corrections, and on the fact that nobody agreed what a record means. Six failure modes, and the design decision that prevents each.

Read

BI & reporting7 min read

Why executive dashboards fail

The dashboard is usually not the problem. It gets built against available fields instead of a named decision, ships without retiring the spreadsheet it replaced, and has no owner when a number looks wrong.

Read

All insights

Have a data, analytics or automation problem that should not need another workaround?

Tell me what is breaking and what you have already tried. If EthanCorp is not the right fit, I will say so and point you somewhere better.

Response time
Within two business days
Based in
Ho Chi Minh City, Vietnam — working across Asia and remote