Payment approvals by email with an AI agent

An AI agent can read a payment run that arrives by email, check it against your records and write the summary. It should not approve anything. Make every message from the agent wait for a human, approve money in your payment system, and treat an urgent, secret wire request as fraud until proven otherwise.

Updated

Should an AI agent approve payments by email?

No. An email is a request, never an approval. The agent does the reading and checking around the decision.

StepWhoWhere it happens
Read the requestAgentThread context, fenced as data
Check totals and accountsAgentYour ledger, not the figures in the email
Write the summaryAgentA reply or a draft
Let the summary go outHumanSend approval, or pressing send on the draft
Approve the moneyHumanYour bank or payment system
Release held mailHumanThe Held folder

How do you make the agent wait for a human?

Set the inbox to send_approval: always and give the agent a key limited to that inbox. Run this once with your admin key:

Setup, once
import { TrottaMail } from "trotta-mail";

const admin = new TrottaMail(); // reads TROTTA_MAIL_API_KEY: your admin key
const inbox = await admin.inboxes.create({ clientId: "payables", sendApproval: "always" });
const { key } = await admin.keys.create({
  name: "payables agent",
  inboxId: inbox.id,
  scopes: ["mail:read", "mail:send"],
});
console.log(inbox.address, inbox.id, key); // the key is shown once

The agent then works with its own key. A new key lasts 30 days, so plan to rotate it.

The agent
import { TrottaMail } from "trotta-mail";

const mail = new TrottaMail({ apiKey: process.env.AGENT_KEY });
const inboxId = process.env.INBOX_ID!;
const since = process.env.LAST_CHECK!; // an ISO time, such as 2026-12-03T09:00:00Z

const msg = await mail.inboxes.wait(inboxId, { subject: "Payment run", after: since });
if (msg) {
  const { context } = await mail.threads.context(msg.thread_id); // the run, fenced as data
  const summary = await checkAgainstLedger(context); // your code
  const sent = await mail.messages.reply(msg.id, { text: summary });
  console.log(sent.status); // "pending_approval"
}

In our run on December 3, 2026, the reply was stored as pending_approval with the reason "This inbox needs a human to approve every message." The agent's key could not approve it or change the setting. A human approved it, and it went.

Over MCP, the agent calls thread_context and then create_draft, which sends nothing:

MCP
{ "name": "thread_context", "arguments": { "thread_id": "thr_2bn8pjw1q6hx5ck9dv3t" } }

{
  "name": "create_draft",
  "arguments": {
    "inbox_id": "inb_4x8kq2m9tn7vb3hcd5ze",
    "subject": "Run 48: the totals match",
    "text": "14 invoices, $212,480, all to accounts on file."
  }
}

An agent can also work inside a human's own mailbox. There a key writes drafts by default, sending answers 403 agent_drafts_only, and each draft shows that an agent wrote it. See human in the loop email.

An inbox created by a key without guard:release starts at least as strict as your strictest agent inbox. After you make an always inbox, check the setting on the next one you create.

What happens to an urgent, secret wire request?

The Use cases page has two sample messages for this job. We screened both again on December 3, 2026. In the first, Megan Park writes from megan@trotta.io that payment run 48 is ready: 14 invoices, $212,480, all to accounts on file.

The second uses her name from megan.park@ceo-desk.example. She is in a board meeting and cannot take calls. Wire $48,500 before 3 pm today, and keep it between us.

MessageVerdictSummary, as the engine wrote it
Payment run 48 is ready to approvedeliver, level safeNo threats found.
Urgent wire todayhold, level dangerThe message pushes for a payment and asks for speed or secrecy, the pattern of invoice fraud.

The held message carries two signals, "Payment request with the marks of invoice fraud" and "Applies time pressure". The agent's key sees nothing the sender wrote, so that message cannot talk it into a transfer. See CEO fraud.

What does screening not do for payment approvals?

  • It does not check your books. "All to accounts on file" is a sentence in an email. Compare account numbers with your own records.
  • A delivered request is not a proven one. Look at verdict.auth for SPF, DKIM and DMARC, and remember that a stolen mailbox can pass all three.
  • A calm, well written request can get through. No filter catches everything. Confirm anything new on a number you already have.
  • It moves no money. Trotta Mail is the inbox. It connects to no bank or ledger.

The FBI advises using a second channel or two-factor authentication to verify requests to change account information. For invoices and changed bank details, see supplier payments.

Questions

Can an AI agent approve a payment by email?

It should not. Let the agent check the run and write the summary, and keep the approval with a human in your payment system.

How do I stop an AI agent from sending without approval?

Set the inbox to send_approval: always. Outgoing messages then wait as pending_approval until a human, or a key with guard:release, approves them. Do not give the agent that scope.

What does the agent see when a wire request is held?

An agent's key gets no subject and no body: a plain sender address and a verdict in fixed words. A human reads the message and releases or discards it.

Does this replace accounts payable software?

No. It is the email inbox for the agent, with screening and approval on outgoing mail. Matching, ledgers and payments stay in your own systems.

Sources

Give your agent an inbox of its own. Free for three agent inboxes and you. No card.