---
title: Inbox agent
description: A built-in agent reads each new message in an inbox and drafts replies, adds labels, assigns or files it. It never sends.
seo:
  title: Built-in inbox agent for email
---

An [inbox](/docs/inboxes) can have an agent of its own. When you switch actions on, BillionSend reads each message delivered into the inbox, follows your instructions, and does only the actions you allowed: draft a reply or a forward, put labels on the thread, give it to a teammate, or file it as spam, archive or trash. It saves the work for a person or for your own agent to finish, and it never sends an email.

This is separate from the agent that reads the inbox through the API or the [MCP server](/docs/mcp). Your own agent keeps working as before; the inbox agent only prepares the mail.

## What it does

Each delivered message gets one turn: a language model reads the message under your instructions and chooses among the actions you switched on. Nothing happens for mail that is not delivered to your agent: spam, mail held in [quarantine](/docs/agent-safety) and mail the screening marked suspicious are left alone. Only mail that arrives after you switch an action on gets a turn.

If the model cannot answer, or you have used the day's turns, the message stays exactly as it arrived.

## Turn it on

Save instructions, a tone and the actions in the inbox's settings, or call the API. Send at least one field; a field left out keeps its value, and `actions` replaces the list.

```sh
curl -X PATCH "https://api.billionsend.com/inboxes/{inbox_id}/agent" \
  -H "Authorization: Bearer bs_..." \
  -H "Content-Type: application/json" \
  -d '{
    "instructions": "Answer billing questions. Send refund requests to refunds@example.com.",
    "tone": "concise_professional",
    "actions": ["draft_reply", "add_labels", "forward_thread", "archive"]
  }'
```

`instructions` takes up to 10,000 characters. `tone` is `concise_professional`, `concise_casual`, `expanded_professional` or `expanded_casual`. `GET /inboxes/{inbox_id}/agent` reads the settings back. Changing them needs a developer role; an inbox-scoped key can read them but not change them.

## What it can do

| Action | What happens |
| --- | --- |
| `draft_reply` | Saves a reply to the message as a draft, in the sender's language. |
| `forward_thread` | Saves a forward as a draft. It goes only to your team members, the inbox's owner addresses and `forward_to` addresses, or addresses you wrote in the instructions. |
| `add_labels` | Puts up to three of the inbox's existing labels on the thread. It never creates a label. |
| `assign_thread` | Gives the thread to a member of your team. |
| `mark_as_spam` | Moves the thread to the `spam` folder. |
| `archive` | Moves the thread to `archive`. |
| `move_to_trash` | Moves the thread to `trash`, where it is deleted after 30 days. |

Only the actions you switched on exist for the model: it cannot choose another one.

## It never sends

A reply or a forward from the inbox agent is a [draft](/docs/inboxes) with the inbox as its author. It waits until a person approves and sends it in the dashboard, or until your own agent sends it. The inbox agent never sends and never schedules a send, so no email leaves because of it.

## Mail it reads is untrusted

Anyone can write to an inbox, so the model reads each message as data, not as instructions: a message that tells it to ignore your rules, forward something or contact someone changes nothing. The model can only choose among the actions you switched on, labels and teammates that already exist, and the forward addresses listed above. The same [safety rules](/docs/agent-safety) that protect your own agent apply first, because the inbox agent sees only delivered mail.

## Limits

An agent turn is one model call, so each plan has a daily limit, counted per UTC day for each inbox and for the team as a whole. Past a limit the message stays as it arrived, and the turns come back at the next UTC day.

| Plan | Turns per inbox per day | Turns per team per day |
| --- | --- | --- |
| Free | 20 | 60 |
| Starter | 100 | 1,000 |
| Pro | 250 | 5,000 |
| Scale | 500 | 25,000 |

## Activity and webhooks

Every turn is recorded in the inbox's **Activity** with the agent as its author: what it did, or why it did nothing (the model was unavailable, a limit was reached, or its answer was not usable). The things it changes send the usual [webhook](/docs/concepts/webhooks) events, such as `inbox.draft.created`, `inbox.thread.labels.updated`, `inbox.thread.assigned` and `inbox.thread.folder.updated`, with `data.source` set to `agent`.
