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

> ## Agent Instructions
> Nash exposes two MCP servers. The docs MCP server at https://docs.usenash.com/mcp searches this documentation and needs no credentials. The Nash MCP server at https://mcp.usenash.com/mcp operates an organization's deliveries and needs a Nash API key. See https://docs.usenash.com/reference/build-with-ai.
> Use the Sandbox environment (https://api.sandbox.usenash.com/v1) for anything that creates or dispatches deliveries during development.

# Give an agent an inbox

> Give a custom agent its own email address, so mail sent or forwarded to it starts or continues the agent's work, and see what it did with each email on its Inbox tab.

A custom agent can have its own email address. Mail sent or forwarded to it starts the agent working on that thread, and a reply in the thread continues the same work. The agent's **Inbox** tab lists every email it received and every reply it sent, with what it did about each one.

## When to use this

Use an inbox when the work already arrives by email and someone would otherwise copy it into a chat by hand:

* Store teams or customers who write in with a question the agent can look into, such as "where is order 4417?"
* Notices from providers or partners that should be checked against your Nash data as they arrive.
* Mail someone forwards from their own inbox for the agent to pick up.

An agent's inbox is an address Nash gives it. It doesn't read a mailbox you already have, such as a team address in Gmail or Microsoft 365: forward mail from that mailbox, or set a forwarding rule. The agent also can't start a new email to anyone. It answers only in a thread it received, and only when you let it. To reach a customer or driver directly, see [Channels](https://docs.usenash.com/nash-agent/channels.md).

## How it works

### One thread, one session

Each email thread is one session of the agent. The first email starts it, and a later email in the same thread continues it with the earlier messages in view. When an email arrives while the agent is still working on its thread, it waits and runs next, so nothing in the thread is skipped.

The agent reads an email as information to work on, not as instructions it has to follow.

### Attached files

The agent reads the text of attached PDF, Word (`.docx`), Excel (`.xlsx` and `.xls`), CSV, and text files, but only the start of a long one. It can also open attached data files, so it can work through every row of a long invoice or export.

It opens CSV, TSV, Excel (`.xlsx`, `.xls`, and `.xlsb`), JSON, ZIP, and gzip files, up to five per email and 15 per thread. Files you upload in the thread's session count toward the 15. Opening files needs all of these:

* Every email in the thread comes from a [trusted sender](#who-can-email-it) and passes verification. Once one doesn't, the agent can't open any of the thread's files, including earlier ones.
* Code execution is on for your organization. It's on by default.
* The agent doesn't run on the OpenAI model option.

When the agent can't open a file, it still reads the text of the types it can read. Other attachments, such as images, are listed for it by name.

### Who can email it

**Who can email this agent** has two settings:

| Setting | What happens |
| - | - |
| **Anyone** (the default) | Mail from every sender reaches the agent. Mail from a sender you haven't trusted runs report-only: every action waits for your approval. |
| **Only trusted senders** | Mail from anyone else is turned away and recorded as **Sender not allowed**. |

**Trusted senders** are email addresses or whole domains, such as `ops@acme.com` or `acme.com`. A trusted sender's mail runs in the agent's own [execution mode](https://docs.usenash.com/nash-agent/scheduling-and-execution.md#report-only-vs-auto-execute), so an auto-execute agent can act on it, but only when the sender's domain vouches for the message. Mail that claims a trusted address and can't be verified runs report-only, like a stranger's.

Report-only for an email is stricter than an ordinary report-only run. The agent can look things up and draft, but it can't use the web or your connected systems, and every change it proposes, a reply included, waits for a person. Once a stranger's email is in a thread's session, the session stays that way, including when you chat in it.

### Replies

The agent doesn't reply until you turn on **Let the agent reply**. Then:

* A reply goes only to the sender of the thread's latest email. A Reply-To address and anyone copied on the thread are left out.
* A reply to anyone but a trusted, verified sender waits for your approval.
* Replies are plain text, with no attachments.

### Mail that doesn't reach the agent

Some mail is recorded on the Inbox tab without starting the agent:

| Label | Why |
| - | - |
| **Failed verification**, **Spam**, **Blocked** | The sender's domain didn't vouch for the email, it was marked as spam, or the email provider blocked it. |
| **Auto-reply** | It looked like an automatic reply, a mailing list, or a bounce. Skipping these keeps two automated mailboxes from answering each other. |
| **Held** | Phishing protection held it. Nash support can release it. |
| **Rate limited** | Too much mail came from one sender or thread in a short time. |
| **Agent paused** | The agent was paused or archived when it arrived. It isn't worked on after you resume. |
| **Over quota** | Your organization had reached its weekly agent usage limit. |

## Set it up

You need to be able to edit the agent (see [Edit access](https://docs.usenash.com/nash-agent/custom-agents.md#edit-access)). Nash's global agents can't have an inbox: duplicate one first.

**1. Save the agent**

An inbox belongs to a saved custom agent. On a new agent, save it first.

**2. Add the inbox**

In the agent builder, add a trigger and choose **Give your agent an inbox**, then **Create address**. Nash makes an address from the agent's name and a short random code, such as `refund-receipts-q4x9tm@mailbox.usenash.com`. Organizations in Australia get an address at `mailbox-au.usenash.com`.

**3. Choose who can email it**

Leave **Anyone**, or choose **Only trusted senders**. Add the addresses or domains you trust under **Trusted senders**. Only trusted senders needs at least one.

**4. Decide whether it can reply**

Turn on **Let the agent reply** if the agent should answer in the thread.

**5. Send it mail**

Copy the address from the card and send or forward mail to it.

## Read the Inbox tab

Once the agent has an address, its page has an **Inbox** tab: every thread the address received and everything the agent sent, newest activity first. Anyone who can view the agent can read it.

* **Folders.** **All**, **Needs you** (replies waiting for approval), **Sent**, and **Skipped** (mail that never reached the agent).
* **What the agent did.** Each email is marked **Handled** (a trusted, verified sender, run in the agent's own mode), **Report-only**, or the reason it was skipped.
* **Where each reply stands.** Waiting for approval, sending, sent, bounced, or declined. **Review in session** takes you to a reply that's waiting.
* **Trust sender.** On a verified sender's email that ran report-only or was turned away, **Trust sender** adds them to the trusted senders, so their next verified email runs in the agent's own mode. A thread that already ran report-only stays report-only.
* **Open session.** Opens the thread's session, which shows each email and reply with the agent's work.

The tab shows the text the agent read, with quoted history folded under **Show quoted text**, and lists attachments by name and size. It never shows an email's HTML.

## Turn it off

**Turn off inbox**, in the inbox card's menu, stops the address receiving mail and deletes its mail. The address is never given to anyone else, so it can't be turned back on.

Archiving or deleting the agent turns its inbox off too. A duplicate of the agent doesn't get an inbox, and restoring an earlier [version](https://docs.usenash.com/nash-agent/custom-agents.md#version-history) of the agent leaves its inbox as it is.

## FAQ

> [accordion] Can the agent email someone who didn't write to it?
>
> No. It can only reply in a thread it received, to the sender of the thread's latest email, and only once you turn on **Let the agent reply**.

> [accordion] Will the agent do what an email tells it to?
>
> It treats an email as information. A trusted, verified sender's mail runs in the agent's own execution mode, the same as any other run of that agent. Anyone else's runs report-only, so nothing changes until a person approves it.

> [accordion] Where do I approve a reply?
>
> In the thread's session. The Inbox tab's **Needs you** folder lists the replies waiting, and **Review in session** opens each one.

> [accordion] An email I expected isn't in Needs you or Sent. Where is it?
>
> Look in **Skipped**. The email says why it didn't reach the agent, such as **Failed verification** or **Held**. Ask Nash support to release held mail.

## Related

> [card] [Custom agents](https://docs.usenash.com/nash-agent/custom-agents.md)
>
> Set up the agent the inbox belongs to: its instructions, scope, and execution mode.

> [card] [Scheduling & execution](https://docs.usenash.com/nash-agent/scheduling-and-execution.md)
>
> The other ways an agent's work starts: a schedule, an alert, or a webhook.

> [card] [Guardrails & confirmations](https://docs.usenash.com/nash-agent/guardrails.md)
>
> Which actions run on their own and which wait for your approval.

> [card] [Chat with a custom agent](https://docs.usenash.com/nash-agent/chat-with-a-custom-agent.md)
>
> Talk to the agent directly, under its own brief and permissions.


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