IT Vizag
← AI Agents in Production

▶ Sign up free for the video, slides & prompts

The lesson below is open to all. Enter your email once to unlock every video, slide deck, prompt and code example on this device.

Checking…

AI Agents in Production · Lesson 7 of 14 · 1 min read · 4 min video

Human-in-the-loop approvals

Pause before risky actions, show a clear summary, and resume on approval.

📄 Download slides (PDF)· free sign-up

Some actions should never happen without a person saying yes: refunds, emails to customers, deleting records, payments. Human-in-the-loop means the agent pauses, explains what it wants to do, and waits.

Which actions need approval?

Sort every tool by risk:

  • Read-only (look up an order): no approval
  • Reversible and low cost (draft an email, add a tag): usually none, or just log it
  • Irreversible, costly or public (send money, email a customer, post on social media): approval required

How the pause works

  1. The agent proposes an action, and your code sees it's a high-risk tool
  2. Save a checkpoint and mark the task waiting for approval
  3. Send the approver a clear summary: what, why, for whom, how much
  4. On approval, resume from the checkpoint and run the action. On rejection, send the reason back to the agent
🔒 Code example: sign up free (above) to unlock it.

Make approval easy

A good approval request can be decided in ten seconds on a phone, for example on WhatsApp. Show the key facts, not the agent's whole reasoning. If people approve without reading because there are too many requests, your thresholds are wrong.

Graduate over time

Track the approval rate. If a type of action gets approved 99% of the time across hundreds of cases, consider auto-approving it below a limit, such as refunds under ₹500.

Tip: Always record who approved what and when. It's your audit trail when a customer disputes something.

In one line

Pause the agent before irreversible or costly actions, send a ten-second summary for approval, resume from a checkpoint, and loosen rules only when the data supports it.

Saved on this device. Sign in to keep progress everywhere.

Share with a friend