> For the complete documentation index, see [llms.txt](https://notara.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.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."


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://notara.gitbook.io/notara-docs/connectors/email.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
