Human-in-the-Loop AI Agents: How to Approve Actions Before They Run

The fastest way to trust an AI agent with real operations is to let it ask first. This guide explains human-in-the-loop approvals: when to use them, what a good approval looks like and how to set them up.

3 min read / Updated:

Set up approvals in Qaalia
An approval request before the agent issues a refund!Approval neededSam wants to run issue_refundorder#4821amount$120.00reasonArrived damagedApproveReject

Human-in-the-loop means the agent prepares an action, a person reviews it, and only then does it run. It lets you hand real work to an agent from day one, and relax the rules as trust grows.

Which actions need approval

  • Money: refunds, discounts, payments, invoices.
  • Irreversible changes: deletions, cancellations, bulk updates.
  • External messages: emails or notices sent to customers on your behalf.
  • Anything new: a new operation until you have seen it behave.

What a good approval looks like

  • It shows the exact data that will be sent, not a summary.
  • It reaches the person where they already work, and expires if nobody answers.
  • Rejecting it tells the agent why, so it can adjust instead of retrying blindly.
  • Every decision is logged with who approved it and when.

Three permission levels

LevelWhat happensTypical use
AllowRuns right awayReads, searches, low-risk updates
Ask for approvalWaits for the owner, then runsRefunds, deletions, customer emails
BlockThe agent never sees itBilling, admin, destructive operations

How approvals work in Qaalia

Every operation of every connected system (your API, a local tool or an MCP server) has one of the three levels. When the agent wants to run an operation that needs approval, the request appears in Qaalia Chat with the exact data. You approve or reject it; the agent continues with the result. Approvals work the same whether the request came from chat, from your own app through the API, or from a scheduled trigger.

FAQ

What is a human-in-the-loop AI agent?

An agent that pauses before certain actions and waits for a person to approve them. It combines the speed of automation with human control over risky operations.

Do approvals slow everything down?

Only for the operations you mark. Reads and safe writes run immediately; only sensitive operations wait for the owner.

Can approvals work when requests come from my own app?

Yes. In Qaalia, requests from your app through the API follow the same permissions: operations that need approval wait for the owner in Qaalia Chat.