> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guidinghand.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Email

> Give an agent its own email address: each email thread becomes a conversation, and its replies wait for your team to send them.

Every agent has an email address of its own, like `billing.acme@agents.eager.ai` (the agent's id, then your org's). It's off until your team turns it on, in the agent's **Email** tab under Channels, or with the API.

Once it's on:

* Each email to the address is a conversation (`channel` `email` in its [variables](https://docs.guidinghand.ai/concepts/conversations.md), with the sender's name and address). A reply in the same email thread carries on that conversation; a new email starts a new one.
* The agent's **published** version writes the reply, with its procedures, tools and rules, as in any conversation. It reads only what the person wrote, not the earlier emails quoted under it. Attachments aren't opened yet: the agent is told their names.
* **Each reply waits for your team** in the Email tab, where someone reads it, changes it if they like, and sends it. Owners and admins are emailed when one is waiting. Turn **Check each reply first** off and replies go out at once.
* Replies come from the agent's address, in the person's thread (`In-Reply-To` and `References`).
* It's charged like any conversation.

## What isn't answered

Each of these is kept in the Email tab with the reason, and the agent never sees it:

* Automatic mail: out-of-office replies and anything marked `Auto-Submitted`, mailing lists and bulk mail, bounces, and mail from another agent's address. Two bots answering each other never stop.
* Mail that fails DMARC, so may not be from who it says.
* Senders outside **Only from**, when you list domains there (like `acme.com`, which covers its subdomains too).
* More than 10 emails from one sender in an hour, or 200 to one agent in a day.

## With the API

```bash theme={null}
curl -X PATCH https://guidinghand.ai/v1/agents/billing/email \
  -H "Authorization: Bearer $EAGER_API_KEY" -H "Content-Type: application/json" \
  -d '{ "enabled": true, "review": true, "allow_from": ["acme.com"] }'
```

`GET /v1/agents/{agent_id}/email` gives the address, the settings and the last 40 emails, replies waiting first. Send one with `POST …/email/messages/{id}/send` (with `text` to send it as you changed it), or drop it with `POST …/email/messages/{id}/discard`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.