Skip to main content

Human in the loop for AI agents: four approval patterns

Human-in-the-loop means a person approves an agent's action before it happens. You do not need it for every step, only for actions that are costly, irreversible or external. This guide shows four patterns and how to keep approvals fast enough that people do not just click 'yes'.

What should need approval

Gate actions that spend money, send messages to customers, change data, deploy code or call a tool with side effects. Reading and drafting rarely need a gate.

Pattern 1: approve before the action

The agent prepares the action (for example an email) and waits. A person sees exactly what will happen and approves or rejects it. Best for outbound messages and payments.

Pattern 2: approve above a threshold

Let small actions run and ask only above a limit, such as a spend over a set amount or more than N records changed. This keeps volume low.

Pattern 3: approve the plan, not each step

For multi-step work, show the plan once and approve it. Ask again only if the agent deviates.

Pattern 4: sample and review afterwards

For low-risk actions, let agents run and review a sample from the audit log. If quality drops, tighten the gate.

Avoiding approval fatigue

Show the exact action and its cost, not a summary. Give a reject reason that feeds back to the agent. Remove gates that are approved 100 percent of the time for a month.

Record every decision

Store who approved what, when and why. An audit trail turns approvals from a bottleneck into evidence, and it helps when you review incidents.

Where FleetQ fits

FleetQ is mission control for AI agents with human approvals, budgets and audit in one place. Run it free on your own server (AGPL) or in Cloud with your own keys.

FAQ

Does human in the loop slow agents down?
Only for gated actions. Use thresholds and plan approval to keep it low.
Who should approve?
The owner of the process the action affects, not always an engineer.
How is approval different from a budget limit?
A budget stops spend automatically; approval asks a person to decide.
Can approvals be audited?
Yes, log each decision with user, time and reason.

Related guides

  • Manage AI agents through MCP MCP lets an AI assistant call tools in another system. FleetQ ships an MCP server, so the assistant you already use can work with your agent fleet.
  • AI agent audit log When an agent sends a wrong email or burns through your LLM budget, the first question is always the same: what exactly happened? Without an audit log you guess. With one you read it.
  • Self-host an AI agent platform Some teams cannot send agent data to a third party, or want to own the stack. FleetQ is open source (AGPL-3.0) and runs on your own server.
  • MCP firewall for AI agents Decide which MCP tools an agent may call on its own, which need a human yes in Slack or Telegram, and which are blocked, with a budget cap on top.
  • Keep API keys away from AI agents On hosted Claude Code runs the agent only gets a short-lived token. The secret proxy adds the real credential only for the hosts the run needs.
  • AI agent budget limits An AI agent without a budget limit is an open tab on your API bill. Set limits per run, per agent and per team, and stop the agent, not only alert, when a limit is hit.
  • Build AI agents in Python Drive FleetQ agents from Python over the REST API: create a token, chat with an agent, start governed runs and approve steps with plain requests calls.
  • Agents docs
  • All guides