In this guide
To design an AI workflow with human approval, break the task into small steps, decide which steps a model should handle, and place a review gate before any action that is hard to undo. The model drafts, labels or extracts. A person approves. Only then does the system send, publish or change anything.
Step 1: Define the task and what good looks like
Write one sentence describing the outcome, then list what a correct result contains. "Reply to customer emails" is too vague. "Draft a reply to refund requests using our returns policy, in under 150 words, with the order number quoted" can be tested.
Also write down what the workflow must never do, such as promise refunds above a limit or contact someone twice.
Step 2: Break the work into steps
Most tasks are really a chain of smaller ones. For the refund example:
- Receive the email (trigger).
- Classify it: refund request, other request, or unclear.
- Extract the order number and reason.
- Look up the order in your system.
- Retrieve the relevant policy text.
- Draft a reply.
- Human reviews and approves.
- Send the reply and log the outcome.
Small steps are easier to test, easier to debug and often cheaper, because each model call has a narrow job. A single enormous prompt that does everything is hard to inspect when something goes wrong.
Step 3: Decide which steps need a model
Use ordinary code for anything with a clear rule: looking up a record, checking a number against a limit, formatting a date. Use a model for steps involving language: classification, extraction from free text, summarising and drafting. This keeps the workflow predictable and reduces the number of places a model can err.
Step 4: Place approval gates
A human approval gate is a point where the workflow stops and waits for a person to accept, edit or reject the result. Place gates by asking how bad a mistake would be.
- Reversible and internal (tagging a ticket): often fine to run automatically, with sampling to check quality.
- Visible to customers (sending a reply): review before sending, at least at first.
- Irreversible or costly (payments, deletions, legal or medical content): always require approval.
Make the gate easy to use. Show the original input, the model output and the key facts side by side, with simple accept, edit and reject buttons. If review is tedious, people will approve without reading, which defeats the purpose.
You can relax gates over time. If reviewers accept 99 percent of drafts untouched across a few hundred cases, you may reduce review to a sample. That decision should rest on recorded evidence, not a feeling.
Step 5: Plan for failure
Decide in advance what happens when things go wrong.
- Low confidence or unclear input. Route to a person instead of guessing. You can ask the model to flag uncertainty, but treat its self-reported confidence as a weak signal.
- Malformed output. Ask for a fixed format such as JSON and validate it. Retry once, then escalate.
- Tool or API errors. Retry with limits, then alert someone.
- Hostile input. Text from emails or web pages can contain instructions aimed at your model. Keep the model's permissions narrow. See what prompt injection is.
Step 6: Log everything
Record the input, each step's output, the final decision, who approved it and when. Logs let you investigate complaints, spot patterns and measure improvement. Be careful about what you store, especially personal data, and follow your organisation's rules.
Step 7: Test before you trust
- Collect 30 to 50 real past examples, including difficult and odd ones.
- Decide in advance how each output will be scored.
- Run the workflow and review failures by category.
- Change one thing at a time, such as the prompt or the retrieval step, and rerun.
- Keep this set. After any model or prompt change, run it again.
Then pilot with a small group, with approval on every item, before widening use.
A simple design template
For each workflow, fill in:
- Trigger and inputs
- Steps, marked as code or model
- Tools and permissions each step has
- Approval gates and who approves
- Failure handling
- What is logged
- How success is measured, as in how to measure the ROI of AI projects
A workflow like this is easier to reason about than a free-roaming AI agent, and it is a sound starting point for most AI automation projects. The principles of oversight and accountability behind these gates are discussed in responsible AI principles.
To practise designing and testing workflows, the QAM.AI how-it-works page explains the text-first lessons and exercises that cover this.
Key takeaways
- Break tasks into small steps and use models only where language understanding is needed.
- Place human approval before anything visible, irreversible or costly.
- Make review easy, or people will rubber-stamp it.
- Plan for unclear input, bad output, tool failures and hostile text.
- Log decisions and test on real examples before expanding trust.
Frequently asked questions
What does human-in-the-loop mean?
It means a person is part of the process, reviewing or approving what the AI produces before it takes effect. The person might approve every item or only a sample, depending on the risk. The aim is to combine machine speed with human judgement.
How do I know when I can remove the approval step?
Look at recorded results. If reviewers rarely change the output over a large, varied set of cases, and mistakes are cheap to fix, you might move to sampled review. Keep approval for high-stakes actions regardless.
Does a human approval step slow everything down?
It adds time, but usually far less than doing the work from scratch, because reviewing a draft is quicker than writing one. Good interface design and clear criteria keep review fast.
This guide is general educational information and is reviewed periodically. AI tools change quickly, so check each vendor's current documentation before relying on specific features or limits.