Bookings and purchases by email with an AI agent

An AI agent that books travel or buys something gives its own email address at checkout, then reads the confirmation, the receipt and the calendar invitation that come back. The risk is a fake receipt: a program named to look like a document, sent to an address that expects receipts.

Updated

How an AI agent handles booking and order email

A booking or shopping agent uses email after the purchase: the seller sends a confirmation, and the agent reads it and files it.

  1. Give the agent an address of its own and tell it to use that address whenever it books or buys.
  2. After checkout, wait for mail from the seller's domain.
  3. Read what was parsed on arrival. Calendar invitations, inline or as .ics files, are in extracted.events, and times keep their zone.
  4. Pass the dates and the confirmation number to whatever keeps the plan: a calendar, a trip record, a note to the human.
TypeScript
const msg = await mail.inboxes.wait(riley.id, { from: "alder-hotel.example", timeout: 60 });
const [stay] = msg?.extracted.events ?? []; // from stay.ics. The .exe never arrives.
MCP
{
  "name": "wait_for_message",
  "arguments": { "inbox_id": "inb_4x8kq2m9tn7vb3hcd5ze", "from": "alder-hotel.example", "timeout": 60 }
}

Here mail is the client from the trotta-mail package and riley is the agent's inbox. The wait returns the next delivered message, or times out after up to 60 seconds.

The booking confirmation and the fake receipt

The job has two sample messages: a hotel booking confirmation, which got a deliver verdict, and a receipt with a program attached, which got reject. The verdicts below are the ones the live engine gave on November 20, 2026.

The confirmation comes from Alder Hotel at reservations@alder-hotel.example, with the subject "Booking confirmed: December 12 to 14". It is addressed to Jordan, confirms a king room with confirmation number AH-58214, gives the check-in time, and attaches a calendar invitation, stay.ics.

The receipt also says Alder Hotel, but it comes from billing@alder-hotel-receipts.example, a different domain. The body is one line: "Your receipt is attached." The attachment is Receipt_Alder_Hotel.pdf.exe. It is named like a PDF and ends as a program.

MessageVerdictSummary, as the engine wrote it
Booking confirmed: December 12 to 14deliver, level safeNo threats found.
Your receipt from Alder Hotelreject, level dangerThe attachment Receipt_Alder_Hotel.pdf.exe is a program disguised as a document.

The confirmation carries one note at the info level, "Calendar invitation", and the engine read AH-58214 out of it as a code. A reject verdict means the message is refused while the sending server is still connected. The sender gets an error and nothing is delivered.

In an inbox that accepts first and checks after

An inbox that accepts mail first and checks after takes the fake receipt in and puts it beside the real booking. The agent expects a receipt from this hotel, so fetching the attachment and passing it to a tool, or to the human who asked for the trip, is the natural next step. Whatever check comes later runs after the file has been handed on.

In a Trotta Mail inbox a disguised program is refused at the door. A copy waits in Blocked for a human to check in case it was a mistake. It never reaches an inbox.

Setting up a booking or shopping agent well

A booking agent needs its own address, a wait filtered by sender, and a human for what was stopped.

  • An address of its own. Receipts, confirmations and seller marketing land in the agent's inbox, not in a human's mailbox. See give an AI agent an email address.
  • A wait filtered by sender. from narrows the wait to the seller's domain. On a timeout, call it again.
  • Parsed fields, not raw files. Read dates from extracted.events. In the safe view, an invitation field that carried an instruction is null.
  • A human for held and refused mail. Held mail waits in the Held folder, and refused mail keeps a copy in Blocked.
  • Payment stays with a human. Trotta Mail screens the mail around a purchase. It does not approve the purchase, so keep spending approval with the human the agent buys for.

No filter catches everything. A convincing message with no technical tell can still be delivered, which is why uncertain mail is held for a human.

Questions

Can an AI agent book travel with its own email address?

Yes. The agent gives its inbox address at checkout and waits for the confirmation. Calendar invitations in the message are parsed on arrival into extracted.events.

How does a shopping agent read an order confirmation email?

The agent waits for mail from the seller's domain and reads the safe view of the message. In the saved sample the confirmation number AH-58214 was read out as a code.

What is a program disguised as a receipt?

It is an attachment named to look like a document, such as a file ending in .pdf.exe. In the saved sample it got a reject verdict with level danger, which means it is refused and nothing is delivered.

Can the agent accept a calendar invitation for a booking?

Yes. POST /v1/messages/{id}/rsvp or the answer_invitation MCP tool accepts, declines or tentatively accepts. The answer goes to the organizer through the normal send path, screened like any mail.

Give your agent an inbox of its own. Free for two inboxes. No card.