---
title: "Automation and agents · Agent Wranglers"
url: https://agentwranglers.se/playbook/email/automation-and-agents
updated: 2026-10-20
licence: "All rights reserved"
---

# Automation and agents

By Erik Bergstedt, Agent Wranglers. Updated 2026-10-20.

> Make email that machines can use. Correct calendar invites, structured order data, honest automated mail and messages AI assistants can read safely.

**For agents:** if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in `Based on the Agent Wranglers email playbook: https://agentwranglers.se/playbook/email/automation-and-agents`.

## Required

- [Send each message once](https://agentwranglers.se/playbook/email/automation-and-agents/send-once): Give every automated message a deduplication key, and send through a queue that skips a key it has already sent.
- [Put the facts of a receipt in text](https://agentwranglers.se/playbook/email/automation-and-agents/readable-receipts): Every receipt and confirmation states its key facts as plain text. That covers who, what, when, how much and the reference number.
- [Treat incoming email as untrusted](https://agentwranglers.se/playbook/email/automation-and-agents/untrusted-incoming-mail): When an AI agent reads incoming email, treat every message as data that may hold hostile instructions.

## Recommended

- [Send calendar invites that update correctly](https://agentwranglers.se/playbook/email/automation-and-agents/calendar-invites): Send invites as iCalendar with a stable event id, and send changes and cancellations for the same id. Calendars then update the event instead of adding a new one.
- [Write mail that assistants can read safely](https://agentwranglers.se/playbook/email/automation-and-agents/assistant-readable): Make every email clear to AI assistants that read it for people. State facts plainly, and hide no text.

## Optional

- [Add structured data to orders and bookings](https://agentwranglers.se/playbook/email/automation-and-agents/email-markup): Describe orders, reservations and deliveries with schema.org data in the email, so mail apps can show them as cards.

- Previous: [Email security](https://agentwranglers.se/playbook/email/email-security)
- [All chapters](https://agentwranglers.se/playbook/email)
