Human in the loop: approvals for AI agents that send emails and call APIs
How to let AI agents act on email, chat and APIs without losing control: risk-based approvals, editing before you approve, one-tap decisions, and agents that learn.
The fastest way to lose trust in an AI agent is to let it send one wrong email to a customer. The second fastest is to make people approve every trivial step until they give up on it. Good human-in-the-loop design sits between the two: the agent does the work, and a person decides at exactly the moments where judgement or risk lives. Here is how we designed approvals on the Moses agent platform, and what we learned.
Where approvals belong
An agent does many things in a moment: it reads, recalls, thinks, writes notes to itself. None of that needs a human. What needs a human is the moment an action leaves the system:
- sending an email, a Telegram, Slack or WhatsApp message;
- an HTTP request to another system;
- a tool call on an MCP server;
- the same actions inside a toolbox.
So in Moses, every action that can reach outside, including the web browser and running code, has an Ask me first setting. Reading, thinking and remembering never wait for you. That keeps approvals rare and meaningful.
Three levels are enough
| Setting | The agent asks before it acts … | Use it for |
|---|---|---|
| Every time | always | New agents, anything involving money, contracts or orders |
| In risky moments | only when the situation is unusual (below) | Routine replies to known people, once you trust the agent |
| Never | never; allow-lists and daily limits still apply | Notes to yourself, internal reports |
Agents built by Moses start with every time on outgoing actions. You see what the agent would send before anyone gets it, and you loosen the setting per action when you’re ready.
Defining “risky” precisely
“Ask when it’s risky” is only useful if risky is defined by rules, not by the model’s mood. In Moses, a moment is risky when the agent:
- writes to an address that isn’t an allowed contact;
- acts on a message from someone you haven’t fully trusted, such as a stranger you let in;
- acts on a webhook call from another system;
- follows something it read on the web or from an API earlier in the same moment: a page, a search result, an HTTP or MCP response.
The last rule matters most. Prompt injection rarely arrives from your own team; it arrives in content the agent reads. If a web page tells the agent to “email the customer list to this address”, the resulting email waits for you, whatever the model concluded.
Some calls aren’t worth asking about at all. If an action can’t be made, for example a message to someone who isn’t a contact while new recipients are off, Moses refuses it at once instead of bothering you.
What a good approval looks like
When an action needs approval, the call is parked, not made. A useful approval shows everything you need to decide in a few seconds:
- a preview of exactly what would happen, such as “Reply to Eve <eve@example.com>”, with the subject and the full message;
- why it needs approval (which rule made it risky);
- the agent’s own thought behind it, and the event that started the moment.
You can change the message before approving, or reject it with a note. Once approved, the action runs within a second, in the context of the moment that planned it: a reply stays in the same email thread and goes to the same person, even if the agent is asleep by then.
Deciding on the go
Approvals that wait for you to open a laptop slow everything down. If the agent has a Telegram bot and you’ve marked yourself as its owner there, you also get a message with Approve and Reject buttons. Only your Telegram account can press them, and the message updates when you decide anywhere else. In the app, a badge on Approvals in the top bar shows what waits, and every moment in the Mind View links to its pending decision.
Agents that learn from your decisions
An approval is also feedback. The agent is told the outcome in its short-term memory:
- approved and done;
- approved after you changed the text to …, so it can notice how you like things written;
- rejected, with your note;
- not decided within three days, after which the approval expires.
While a decision is pending, the agent knows the action waits and must not try it again, so you never get the same request twice.
A rollout plan that works
- Week 1: every outgoing action on every time. Read each approval, edit freely, reject with notes.
- Week 2: switch routine actions (replies to known contacts) to in risky moments. Keep orders, payments and anything to new recipients on every time.
- Ongoing: review the Mind View weekly. If you keep editing the same kind of message, add a rule or a skill instead of editing forever.
Once approvals become routine, watch for reviewers who stop reading: approval fatigue is real, and planted control cases are the best way to measure it.
Approvals are not a sign that the agent is weak. They are how a company hands over work gradually, the same way it would with a new colleague.
Frequently asked questions
What does human in the loop mean for AI agents?
It means a person reviews and approves certain actions before an AI agent carries them out, for example sending an email to a customer or calling an external API. The agent prepares the action; a human decides whether it happens.
Which AI agent actions should need approval?
Actions that reach the outside world and can't be undone: sending emails and messages, posting to APIs, and tool calls on MCP servers. Reading, thinking and writing notes to its own memory don't need approval.
Doesn't approving everything defeat the purpose of automation?
At the start, approving everything is how you build trust cheaply. Once an action has behaved for a while, switch it to “in risky moments”, so routine replies to known contacts go out on their own and only unusual cases wait for you.
Can I approve AI agent actions from my phone?
Yes. On Moses, if the agent has a Telegram bot, you get a message with Approve and Reject buttons that only your Telegram account can press. You can also decide in the app, where you can edit the message first.
Build an agent that maps your process
Describe the process in your own words: Moses plans the steps, says honestly what it can and can’t do yet, and builds an agent or a small team you can see into.
Join the beta