# AI booking and shopping agents: email confirmations

> How an AI agent that books travel or shops reads confirmations and invitations in its own inbox, and why a program posing as a receipt is refused.

Source: https://trotta.email/use-cases/bookings-and-purchases

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 November 20, 2026

## 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:

```json
{
  "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](https://trotta.email/docs/concepts) 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.

| Message | Verdict | Summary, as the engine wrote it |
| --- | --- | --- |
| Booking confirmed: December 12 to 14 | `deliver`, level `safe` | No threats found. |
| Your receipt from Alder Hotel | `reject`, level `danger` | The 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](https://trotta.email/threats/disguised-programs) 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](https://trotta.email/learn/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.

## Related

- [Use cases](https://trotta.email/use-cases)
- [Disguised programs](https://trotta.email/threats/disguised-programs) Threat library
- [Malicious attachments](https://trotta.email/threats/malicious-attachments) Threat library
- [Give an AI agent an email address](https://trotta.email/learn/give-an-ai-agent-an-email-address) Guides
- [Send later, invites, files](https://trotta.email/docs/mail-features) Docs
- [ChatGPT](https://trotta.email/integrations/chatgpt) Integrations

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

[Get an inbox](https://trotta.email/signup) [See every use case](https://trotta.email/use-cases)
