Skip to content

Blog

How to require human approval before an AI agent sends email

Published · Updated

An agent that can send email can also send the wrong email. The goal is not to stop agents sending; it is to decide, per task, how much a human has to see first. Mail for Bots gives you four controls, from loosest to strictest.

1. Daily sending limits

Every account has a cap on emails per day and recipients per message (50 a day and 3 recipients on Free; 5,000 and 50 on Pro). A runaway loop hits a clear limit message instead of mailing the world.

2. Scoped API keys

A key can be limited to scopes such as reading mail only, or drafting only, with no send permission at all. A read-only key can watch an inbox and summarise it but cannot reply. See API keys and scopes.

3. Inbox-restricted keys

Limit a key to specific inboxes. A testing agent gets the test inboxes and nothing else, so even a misbehaving agent cannot reach your support inbox.

4. Drafts that wait for you

With create_draft the agent writes the email but cannot send it. The draft appears in your webmail, marked as prepared by an agent, and goes out only when you press Send (or something with the mail:send scope calls send_draft). Tell the agent in its instructions: "Never send. Create a draft for me to review." and give its key the drafting scope without sending.

Which to use when

Controls for agent email
SituationUse
Agent signs up and reads codesInbox-restricted key, no send scope
Agent answers routine mailSend scope plus daily limits; review the sent folder
Agent writes to customers or suppliersDrafts, human presses Send
Agent only needs to monitorRead-only key

These controls apply to what you send. For the other direction, treat inbound mail as untrusted: see verification codes and prompt injection.

Start free Read the quickstart