> For the complete documentation index, see [llms.txt](https://notara-1.gitbook.io/notara-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notara-1.gitbook.io/notara-docs/connectors/email.md).

# Email (AgentMail)

The Email connector lets the agent send and receive email through an AgentMail inbox, with a Slack-based draft review flow built in.

## What It Enables

| Tool                    | Capability    | Description                                                        |
| ----------------------- | ------------- | ------------------------------------------------------------------ |
| `draft_email`           | `write`       | Create an email draft and post an Approve/Discard preview to Slack |
| `send_draft`            | `write`       | Send a previously approved draft                                   |
| `send_email`            | `write`       | Send an email directly (last resort — use `draft_email` instead)   |
| `discard_draft`         | `destructive` | Discard a pending draft                                            |
| `get_inbox_info`        | `read`        | Return info about the configured inbox                             |
| `check_emails`          | `read`        | List recent incoming emails with body and attachments              |
| `get_email_body`        | `read`        | Fetch the full body of a specific message                          |
| `save_email_attachment` | `write`       | Download an attachment and save it to the workspace Library        |

The default flow is always draft-first: the agent creates a draft, posts an interactive Block Kit preview to Slack with **Approve & Send** / **Discard** buttons, and waits. The email is never sent until a human clicks Approve.

## Setup

**Required:** AgentMail API key and inbox email address.

**Where to find it:** [app.agentmail.to](https://app.agentmail.to) → API Keys.

1. In the Notara dashboard, go to **Tools**.
2. Click the **Email** tile.
3. Sign up at [agentmail.to](https://agentmail.to) and create an inbox.
4. Copy your API key from the AgentMail dashboard.
5. Paste the API key and the inbox address into the credential fields and click **Verify & Save**.

Your API key is encrypted at rest with AES-256-GCM.

## Example Prompts

> "Draft an email to <jane@acme.com> with our Q3 update — let me review before sending."

> "Check our inbox for any replies from Acme since Monday."

> "Save the PDF attachment from the latest email from <contracts@vendor.com> to our Library."
