# Approvals

> The morning routine: a short summary of what waits on the person, deciding it in batches, and brain proposals.

## 2. Replies: hand them to Onbox

Onbox writes a reply from what it learned (the team's past replies, its skills, knowledge and rules), does what its tools allow around it (an action in the CRM, a ticket, a calendar event, a refund to approve) and asks the team at once when it lacks something, then remembers the answer. A reply you write from general knowledge skips all of that. So when the person wants replies prepared, delegate the conversations; write a draft yourself only when the person gives you the content or says you should write it.

1. **Pick the conversations, without asking.** "The last 10 messages" or "my emails" means the customers still waiting for a reply, newest first, not the answered history. Call `list_my_inbox` and take its items that wait on a reply and have no draft (`unhandled`, `customer_reply`, `escalation`), then the customers waiting unassigned in the person's shared inboxes: `summary.sharedInboxes.oldest` names only the oldest few, so when `waiting` is larger than what you need, list that inbox's open conversations with `search_conversations` (no query, its address as `scope`, `statuses: ["OPEN"]`) and take those where the customer wrote last and nobody took them; read them with `get_conversations` when you need to check. Leave out internal conversations, newsletters, notifications and anything with no customer. Items that already carry an Onbox draft are ready: show those instead of delegating them again. When you find fewer than they asked for, take what waits and say so.
2. **Check the send mode** with `list_inboxes`. On an inbox in review, delegating only prepares drafts and requests. On an inbox that sends on its own, Onbox may reply to the customer directly: say so and ask first.
3. **Say what Onbox will do.** In the message that tells the person you handed the conversations to Onbox, before any draft is back, say in one or two sentences, in their language, what it does with them, for example: "I've handed these 6 to Onbox: it drafts each reply from what it learned, does what its tools allow, and asks you if something is missing." It is how they learn the Onbox way, so never leave it out, even when you are about to show the drafts. The first time in a conversation, add once that each conversation Onbox works on counts toward the plan, which the trial covers (`get_billing` has the numbers; never state one from memory).
4. **Delegate** with `delegate_conversations`, up to 20 per call, without an `instruction` unless the person said how to answer (then pass their words, such as "offer a refund and apologise for the delay").
5. **Wait, then show what Onbox did.** Runs take a minute or a few. Wait between checks with what your host offers: a background command that wakes you when it ends (in Claude Code, a background `sleep 60`), a monitor, or a short foreground `sleep 30`. Never ask the person to type "check" or to come back later. Then read the conversations with `get_conversations`, and again until each has an outcome, for up to 10 minutes. Then your answer to the person shows, per conversation, in a line or two: the customer and their question, Onbox's draft (recipients and text, or its first lines when there are many), and what Onbox asks or proposes (a request, an action to approve). Put Onbox's questions together at the end with its proposal first. A count of drafts is not enough: the person decides from the drafts themselves.
6. **Offer the next step:** send the drafts the person approves (section 3), answer Onbox's questions, or change a draft. An answer to Onbox's question goes on that conversation with `create_comment`; Onbox records it and redrafts. A correction is taught, not only patched (section 4).

New conversations on an inbox where Onbox takes new conversations (`takesNewConversations` in `list_inboxes`) get a draft on their own; when the person asks for drafts on conversations Onbox already drafted, show those.

**Exceptions: you write the draft.** When the person dictates the content ("tell her we ship Monday") or explicitly wants you to write it, use `create_draft` with `mode: "reply"` and their content, or `update_draft` on Onbox's draft. Show the recipients and text and ask whether to send it.

## 3. The daily review

When the person asks what waits on them, or once the first conversations arrive, give them a short summary first, never a list of emails.

1. **Gather.** Call `list_my_inbox` with no filters (pass `since` as the time of your last summary when you know it) and `get_account_status`, together. The first page's `summary` counts the whole list; write from it, not from the items.
2. **Summarise** in one or two short paragraphs, numbers first, in this order, leaving out what is zero:
   - **Quick to clear:** drafts ready to send (`byReason.draft`), actions to approve (`pending_action`), invitations to answer.
   - **Needs their judgement:** Onbox's requests and escalations, mentions, failed sends and runs (`failed`), customers waiting over a day (`waitingOverADay`, the longest since `oldestWaitingSince`), customers who wrote again (`followedUp`). Name `important` only when it singles out fewer than all that wait.
   - **Waiting on the team,** from `summary.sharedInboxes` when present: the customers waiting unassigned in the person's shared inboxes, outside their My inbox, per inbox with its address and the longest wait ("9 customers waiting in support@acme.com, the oldest since Monday"), then the oldest few by customer and subject, with their `webUrl`. Nobody has taken these, so always say them, even when My inbox is clear; when `waiting` is 0, say the shared inboxes are clear. To go through them, assign each to a person or hand it to Onbox (section 2) as the person decides.
   - **What Onbox did on its own** since `handledByOnbox.since`: replies sent, conversations archived, in one sentence.
   - **What is broken,** from `get_account_status`: an inbox `NEEDS_AUTH` or `DISCONNECTED` to reconnect, a stuck brain build; a brain still building means Onbox is still learning, so it drafts more than it settles. For an admin, the brain proposals waiting (`openBrainProposals`).
   - Then the link, `[Open your inbox](<summary.webUrl>)`, and one question offering the quickest batch: "Want to go through the 4 drafts?"

   Plain words and real numbers only: never invent urgency or a reason the data does not give, and say times relative to now ("since Monday"). When nothing waits, say so in one sentence with what Onbox did. With hundreds, keep the same shape and offer the biggest quick batch, or one inbox (`inboxIds`). Never list conversations unless the person asks.

3. **Go through a batch when they say yes.** Call `list_my_inbox` with that batch's `types`, read the conversations with `get_conversations` in one call, and show each one in a line with its `webUrl`. For an action, show what it will run: recipient, first line, any amount, and why it waits. Then act on the person's decisions, each kind in one call:
   - `approve_pending_actions` for the actions the person has seen and confirmed, each with the version you showed. Tell the person each result's `outcome` as returned. An action that changed since comes back in `errors`: show the new version and ask again.
   - `discard_pending_actions` for the actions they reject.
   - **Sending.** To send a draft you did not just write, read it with `get_draft` and show the person its recipients and text; once they said to send it, `send_draft` with the `version` and the `to`, `cc` and `bcc` you showed. A draft that waits on someone else is not theirs to send: say who it waits on. `send_draft` queues the email: tell the person it is queued, never that it went out. A minute later, read it with `get_draft`: `SENT` means it went out; back to `DRAFT` or `FAILED` means it did not, so tell them and offer to try again. Never mention an undo window shorter than a minute. Each time you write or change a draft, show its recipients and text and ask whether to send it now or change it; never end on a link to review it in Onbox.
   - `update_conversations` to archive, snooze (with an optional `snoozeNote` saying what the snooze waits for) or assign conversations to a person; `delegate_conversations` to hand them to Onbox (section 2).
   - `respond_to_invitation` to answer a calendar invitation as the person decided.
   - `create_comment` to answer a teammate's mention or Onbox's request. For a request, look in the repository, the site or a connected source first, and reply with what you found and where, or with the person's answer. Never answer a request from memory or with a guess.
4. **Brain proposals, for an admin.** If the person wants to go through them, call `list_brain_proposals`, read each one's source conversation with `get_conversations` before you recommend a decision, then `accept_brain_proposals` or `decline_brain_proposals` with the ones they decided.

## Pending actions

A pending action is a call the Onbox agent wanted to make (send a reply, issue a refund, create a ticket) that waits for a person. Each one carries a reason; `reasonInWords` says it in plain words:

| Reason             | Meaning                                                        |
| ------------------ | -------------------------------------------------------------- |
| `ask`              | This tool is set to ask before it runs.                        |
| `auto_forbidden`   | A rule of the organisation forbids this call without a person. |
| `auto_not_covered` | No rule of the organisation covers this call, so it waits.     |
| `auto_unavailable` | The check that judges calls could not decide, so it waits.     |
| none               | The Onbox agent proposed it for approval on its own.           |

A person approves, changes or discards it. A failed one can be approved again to retry.

## Asking, escalating, my inbox

- **Asking**: the Onbox agent asks a teammate for an answer or an approval and keeps the conversation.
- **Escalating**: the Onbox agent gives the conversation to a person and stops working on it. The person named in the brain comes first, then the inbox's fallback.
- **Assigning**: a conversation has one assignee, the Onbox agent, a person, or nobody. Your agent assigns a person or nobody with `update_conversations`.
- **Delegating**: to have the Onbox agent handle conversations, delegate them with `delegate_conversations`, with an instruction or none. It is what a person does in the app by mentioning Onbox, and the outcome comes back in My inbox. It counts toward the plan, because Onbox works on it in a run; approving, editing or discarding what Onbox proposed does not.
- **My inbox**: the conversations that need this person, each with why it is there: a draft to send, an action to approve, an escalation, a request, a customer reply, something the Onbox agent has not handled, a mention by a teammate.
- **A comment**: an internal note on a conversation. It never reaches the customer.

Say "escalate" only for giving the conversation to a person. Asking a teammate is "asking", not escalating.

## Review tools

| Tool | Title | What it does | Access | Notes |
| --- | --- | --- | --- | --- |
| `update_pending_action` | Edit Pending Action | Edit the arguments of a pending action record before it is approved (recipient, amount, wording); its toolName stays fixed. | write, destructive |  |
| `discard_pending_actions` | Discard Pending Actions | Drop actions Onbox proposed that the person does not want. | write, destructive |  |
| `get_pending_actions` | Read Pending Actions | Read pending action records by ID. | read |  |
| `list_my_inbox` | My Inbox | Read only: what needs you in Onbox, in My inbox order; start here for daily review. | read |  |
| `approve_pending_actions` | Approve Pending Actions | Approve pending action records the person saw and confirmed. | write, destructive | reaches people outside Onbox |
| `list_brain_proposals` | List Brain Proposals | Proposed changes to your organisation's brain (skills, memories, triggers): open, merged, declined, with commits, files, the headSha to decide at and a webUrl. | read |  |
| `accept_brain_proposals` | Accept Brain Proposals | Accept changes proposed to your organisation's brain: each goes live from the agent's next conversation, at the headSha reviewed. | write, destructive | admins only |
| `decline_brain_proposals` | Decline Brain Proposals | Decline changes proposed to your organisation's brain: each is put aside, where the agent can bring it back later. | write, destructive | admins only |
