Sub topic 7
Where to Put Human Review
This chapter assumes you can write a prompt template, you know why structured output matters, and you have seen a chained workflow like the one in the previous chapter. It covers where to place human review in that workflow and how to build the checkpoint so it works.
Why review placement matters
A reviewer who reads every output of every step will soon skim. A workflow with no reviewer will eventually publish something wrong. The aim is to put review where an error is costly or hard to undo, and to leave it out where an error is cheap and easy to catch later.
Ask three questions about each step:
- Reach. Will the output be seen by customers, press, or regulators?
- Reversibility. Can you take it back? A draft in a document can be edited. A sent email cannot be recalled.
- Compounding. Will later steps build on this output? A bad summary at step 1 contaminates everything after it.
Common review points
| Position | What the reviewer checks | Typical risk caught |
|---|---|---|
| After an input-shaping step | The summary or extracted facts match the source brief | Wrong facts passed downstream |
| After the draft step | Tone, claims, offers, names, dates | Off-brand or false statements |
| Before any publish or send action | Final version, recipient list, schedule | Irreversible mistakes |
Internal steps, such as reformatting a draft into JSON, usually need no human. A validator can check them automatically, as you saw in the structured output chapter.
Building a checkpoint in code
A checkpoint is a function that stops the workflow until a person decides. This version works in a terminal, and the same shape works with a ticket or an approval message.
def human_checkpoint(label, content):
print(f"\n--- REVIEW: {label} ---\n{content}\n")
while True:
choice = input("Approve (a), reject (r), or edit (e)? ").strip().lower()
if choice == "a":
return {"status": "approved", "content": content}
if choice == "r":
reason = input("Reason for rejection: ")
return {"status": "rejected", "reason": reason}
if choice == "e":
edited = input("Paste the corrected text: ")
return {"status": "edited", "content": edited}
print("Please enter a, r, or e.")
def run_with_review(draft):
result = human_checkpoint("Email draft", draft)
if result["status"] == "rejected":
raise RuntimeError(f"Draft rejected: {result['reason']}")
return result["content"]Two details matter. The function returns the reviewer's edited text, so later steps use the corrected version and not the original. It also records a reason on rejection, which gives you data for improving the prompt.
Make the review easy to do well
- Show the source next to the output. A reviewer cannot check a claim without the brief it came from.
- Give a short checklist. For example: facts match the brief, no unapproved discounts, brand name spelled correctly, one call to action.
- Flag risky content. Highlight numbers, dates, prices, and named people, because these are the usual errors.
- Limit the volume. If a reviewer sees fifty items a day, approval turns into clicking. Review a sample of low-risk items and everything high-risk.
Common mistakes
- Review at the end only. A wrong fact found at the last step means redoing the whole chain.
- Approve-all buttons. Without a checklist and a rejection path, review gives only the appearance of safety.
- Discarding edits. If reviewers keep fixing the same problem, the template needs a change. Log edits and read them weekly.
Exercise
A workflow summarizes a product brief, drafts a promotional email, validates the JSON format, and sends the email to 40,000 subscribers. Name two places to put a human checkpoint and one step that can stay automatic, with a reason for each.
Show answer
Put a checkpoint after the summary (a wrong fact there contaminates the draft and every later step) and one before sending (a sent email to 40,000 people cannot be recalled). The JSON format validation can stay automatic because a validator can check structure reliably, and a failure there is caught before anything reaches customers.