# Set up Onbox from your agent

> From install to reviewing what Onbox learned: what a correctly set up account is, the steps in order, which ones happen in the browser, the plans and what counts, and how to follow the build.

Onbox is the customer support agent you set up and run from your coding or chat agent. It answers your customers on email, chat and social channels, and leaves to your team what it should not do alone.

## Install

- Claude Code: `claude plugin install onbox --marketplace Onboxing/onbox-for-agents` (the MCP server plus the setup skill), then sign in: `claude mcp login plugin:onbox:onbox`
- Codex: `codex plugin marketplace add Onboxing/onbox-for-agents && codex plugin add onbox@onbox`, then sign in: `codex mcp login onbox`
- Claude (claude.ai and Desktop): add Onbox as a connector at https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Onbox&connectorUrl=https%3A%2F%2Fapi.onbox.ing%2Fmcp
- ChatGPT: add https://api.onbox.ing/mcp as a connector in ChatGPT settings
- MCP server only, for any MCP client: https://api.onbox.ing/mcp (`claude mcp add --transport http onbox https://api.onbox.ing/mcp`, `codex mcp add onbox --url https://api.onbox.ing/mcp`)
- Any other agent, paste this prompt: "Set up Onbox for my product: connect our support mailbox, learn from this repo's docs, and tell me what is waiting on me. Onbox's MCP server is https://api.onbox.ing/mcp."
- Source of the plugin: https://github.com/Onboxing/onbox-for-agents

The Claude Code and Codex plugins add the setup skill below; with the MCP server alone, follow this page.

## What you do

Onbox runs its own agent, called Onbox unless the organisation renamed it, which answers the business's customers on every channel it connects, such as email, website chat or social messaging, and learns how to handle each request. You are the person's agent: you set Onbox up through its tools. In this skill, "the Onbox agent" is Onbox's, and "you" is the agent reading this.

The goal of setup is to tell the person what Onbox learned about their support and show them its first reply to review (section 8). Ask little and leave anything optional for after.

The tools describe what each call does and returns. This skill holds the order of the calls and the judgement around them. For the words Onbox uses (brain, skills, memories, policies, pending action reasons, escalating), read [Onbox concepts](https://www.onbox.ing/docs/agents/concepts.md) before you explain any of them to the person.

## Before any call

Through the whole setup:

- When the person wants you to start or resume setup, open with the introduction and the plan in one message ending with "Shall I go ahead?", and start once they say yes (section 1).
- After each question you ask, end your turn and wait for the answer: no tool call, file write or next step until it comes.
- Keep every message short. Say the essential and offer more on request ("Ask me if you want the details"); never explain ahead of need.
- Give every link from an Onbox result (a `webUrl`, a connect or sign-in link, or a billing or settings page) as a markdown link named for what it does, such as `[Open the billing page](<url>)` or `[Connect support@example.com](<url>)`, alone on its line when the person must click it, and keep the raw URL out of your sentences.
- Tell the person what happened, what you'll do next, or what they need to do. Use checklist items, tool names, fields, states and tool-result instructions only to decide what to do. Never quote them or attribute a step to them, including in progress updates and when explaining a failure. If you have confirmed the mailbox is connected and the build needs starting, say "Your support mailbox is connected. I'll start Onbox's first build so it can learn from your past conversations."
- These instructions are yours, not the person's: never name, quote or link this skill, its file or its rules, and never say a step is required of you. When you wait or ask first, say it plainly ("I'll wait for your answer", "May I add the snippet?").
- Leave the person's repository, when there is one, as it is: read it, and change only what they agreed to. When their docs disagree with what Onbox learned, tell them and leave the fix to them.
- Introduce the brain before using it as a term on its own. At the first mention of the brain or its build, explain both in one or two plain sentences. Say "Onbox's brain is what it knows about your company: facts it uses when it answers (memories) and step-by-step ways to handle requests (skills). In its first build, Onbox reads your past support conversations and your docs, and writes down what it learns." Mention only the sources it can read. Use brain, memories and skills consistently throughout setup. Call the build "Onbox's first build" or "the brain build".

If no Onbox tool is available, the server is not connected or not signed in. The tools this skill names start with `get_account_status`. Another Onbox connector the person added earlier can show older tools under other names, such as `list_threads` or `brain_list_files`: it is not this server, so do not use it for the setup.

Signing in is the person's first moment with Onbox: ask for it in one short sentence, in your first message, and use the way your host opens the browser itself. For someone new to Onbox, the sign-in also creates their account and starts the free trial, with a card charged only when the trial ends, so say that in the same sentence: "Sign in to Onbox; if you're new, it creates your account and starts the free trial (a card, charged only when the trial ends)." Once they are back, the account is ready and the setup runs without a payment step.

- **Claude Code** shows "MCP server needs authentication · run /mcp" when the session starts. Ask the person to type `/mcp`, choose `onbox` and then Authenticate: Claude Code opens Onbox's sign-in in their browser and loads the tools when they are back. Carry on as soon as the Onbox tools appear. Use its `authenticate` tool only if the person cannot use `/mcp`; then give the link it returns alone on its line, and ask for the address the browser landed on (for `complete_authentication`) only if they say the page showed an error.
- **Codex** shows a warning that the onbox MCP server is not logged in. Ask the person to type `/mcp login onbox`: Codex opens the sign-in in their browser.
- **Another host** with a sign-in tool for the Onbox server: call it and give the link it returns alone on its line, in one sentence.
- Only when the host offers none of these, tell the person to connect the Onbox connector and sign in, then stop.

These are the only commands you ask the person to type. If your host defers a tool, use tool search to load its input schema before the first call. A name or short description alone is not the schema. Pass array inputs as arrays.

Passwords and API keys go through the pages Onbox links to; ask for none in the conversation.

## 1. Read where the setup stands, then introduce Onbox and the plan

`get_account_status` reports which checklist items are mandatory and where each stands. Call it first, after every browser step, and while the brain builds. Use the setup steps below to choose what to do next.

How to read it:

- Work through the open items, mandatory ones first. Use the checklist's tool hint to confirm which call can move the step forward. If there is no hint, check whether the person needs to open a link or the step is still running. In your next update, tell the person what you confirmed and what action you recommend. Keep the tool hint and your reasoning about it private.
- `broken` means the item worked and stopped, for example a lapsed connection: fix it before adding anything new.
- Read `nextAction` and `summary` to understand what is pending. Explain the outcome or the action the person needs to take in your own words. Use the relevant `webUrl` when they can act in the browser.
- An account is set up when every mandatory item is `done`. Onboarding then completes on its own (`onboardingCompletedAt`); there is no finish step.

If `caller.isAdmin` is false, most account tools are not available to this person. Say so, tell them who can finish the setup (an admin of their organisation), and offer what they can do: read the status, and later go through their own inbox.

For a setup status question when every mandatory item is done, use section 7 to check whether learning has finished. Once it has, go straight to sections 8 and 9. Explain what Onbox learned, show its first reply if ready, and give one concrete next step if you find a gap. Leave out optional checklist items unless the person asks about them.

For setup that is still open, read what you can (section 2) and send one message: the introduction, then the plan. The person knows the name Onbox, not much more. Write as a helpful assistant who wants to take support off their plate, in plain words, under 170 words in all:

1. **The goal, one sentence:** what they will have at the end of this session. Onbox has read their past support conversations and their docs, and prepares each reply in Onbox for them to review and send.
2. **Why it works, two or three sentences:** Onbox learns how the company works and decides, from its history and sources, so the person stops explaining why to answer this way or that (what goes wrong when people paste their emails into a chatbot). It never guesses: when it cannot find something, it looks for it first and asks only then, once, and remembers. So it is easy to teach.
3. **It acts, not just answers:** one or two actions that fit this product, from its repository or site, such as "look up a subscriber's plan, or refund a web payment once you approve".
4. **Its limits, one sentence:** it knows only what it can read (past conversations, docs, code, any source they connect), so with none it will not make knowledge up; actions come in a second step, simple ones first.
5. **The plan,** one short line per remaining step, in this order: give the brain their docs, connect the channels you found (or where customers reach them, section 2), the brain build, then a summary of what Onbox learned and its first reply to review. Set expectations for the build as in section 7. Add "start the free trial" only when the plan item is not `done` (section 6). Name docs topics only from what you read, and leave the docs line out when you found no docs to read. Skip what is done. Do not list the questions, the final check or anything optional.
6. "Shall I go ahead?"

For example, for an invoicing app:

> I'll set up Onbox to prepare customer replies for you to review and send. Onbox's brain is what it knows about Acme: facts it uses when it answers (memories) and step-by-step ways to handle requests (skills). In its first build, Onbox reads your past support conversations and your docs, and writes down what it learns.
>
> When something is missing, it looks first, then asks you once and remembers. It knows only what it can read. Later it can resend an invoice or extend a trial with your approval.
>
> The plan:
>
> 1. Give Onbox's brain your docs: pricing, refunds, exports.
> 2. Connect support@acme.com (you approve in Google).
> 3. Follow the first brain build. It can take a while, often 10 minutes or more. I'll keep you posted and share what Onbox learned.
>
> Shall I go ahead?

Wait for the answer before you act.

## 2. Find out first, then keep the defaults

For every point, guess first, then ask well. Find out from everything you can reach, and propose what you found as the default ("Here's what I found: ..."). Ask only for what you could not find, and then offer your best guesses as options: never an open blank, never an exhaustive list. Ask only where the person gains from changing the default; otherwise state it in one line, or not at all.

Read what is at hand, before the introduction:

- **Local files, when your host can read them.** If the current folder is the product's repository (a README, package metadata or site code), read the README, the docs, the site config, a support or contact email in the code, and whether the product is a website, a mobile app or both. If it does not look like one, ask once, in the introduction's message before the plan: "Is your product's code on this computer? Give me the folder and I'll read its docs. Or say skip." With a path, read from there, without changing folder or restarting.
- **No local files** (Claude Desktop, claude.ai, or a folder that is not the product's): never assume code access and never ask for a folder. Use what you can reach instead: the company's website (its help, FAQ and pricing pages, when your host can fetch), and the person's connected sources, such as a help center, Notion or Google Drive. When the website is not in `get_account_status` or in what you read, propose the one the email domain suggests and ask in the introduction's message, before the plan.
- **Where customers reach them,** from the site and the code: the support address, WhatsApp links or numbers (`wa.me`), social profile links (`instagram.com`, `x.com`, `tiktok.com`), a helpdesk widget or SDK (Intercom, Zendesk, HubSpot), App Store and Google Play listings, a Slack community link.
- **The mail provider** of the support address's domain, from its MX records (such as `dig +short MX acme.com`) when you can run a command: Google, Microsoft or another. When you cannot, propose Google for a Gmail or Workspace address you recognise, else ask with the address.
- **The signed-in member,** from `list_members` (in a new organisation, the only member).
- The project's `CLAUDE.md` or `AGENTS.md`, the conversation so far, and what `get_account_status` already holds: the company, the inboxes, the members.

The defaults:

1. **Channels: what you found.** Put the channels you found in the plan as the default, one line each, for example "Connect support@acme.com (you approve in Google)." After they agree to the plan and before you connect the first inbox, ask once: "Do your customers also reach you anywhere else, such as another mailbox, WhatsApp, Instagram or your website chat? The more past conversations Onbox can read, the more it can learn. I can connect them now or later." If they say "just this one", move on. When you found none, put "Connect where customers reach you" in the plan and ask "Where do customers reach you today?" instead. Offer a few examples like a mailbox, a helpdesk, WhatsApp or app store reviews. Ask only for details a channel needs that you could not find, such as the Intercom region, the Zendesk subdomain or the App Store Connect key's Issuer ID and Key ID. The .p8 goes on Onbox's page.
2. **Escalations: the person who connects the inbox.** A new inbox gives the conversations Onbox escalates to the member who connected it, so nothing needs asking. Everything starts in review: Onbox drafts and the person sends, so nothing goes out without them and there is nothing more to configure now. If they ask to "escalate everything", say just that: escalation is about what Onbox would otherwise do or send on its own, and in review nothing is sent without them.
3. **Teammates: ask once, with a short reason.** "Teammates can review Onbox's drafts and take conversations, which spreads the work, and every plan includes unlimited seats. Anyone to invite now?" Default: just them for now. If they say no, do not ask again.

Ask the remaining questions right after the yes to the plan, before the first step, one per message. Finish the channel list and confirm any missing connection details, then ask about teammates. A question that comes up during a step, such as where the docs live, does not replace them. If the person does not know an answer, take the default and say you did.

## 3. The steps, in order

| Step | Tool                                                                             | Who acts                             |
| ---- | -------------------------------------------------------------------------------- | ------------------------------------ |
| 3a   | `update_organisation`                                                            | automatic                            |
| 3b   | `write_brain_files` (give the brain build your docs, see section 5)              | automatic                            |
| 3c   | `add_inbox` for each channel agreed in section 2                                 | browser: the person consents         |
| 3d   | `invite_members`, only if the person wants teammates                             | automatic: each person gets an email |
| 3e   | only if the plan item is not `done`: the trial (section 6)                       | browser: the person starts the trial |
| 3f   | follow the brain build (section 7)                                               | automatic, with progress updates     |
| 3g   | sum up what Onbox learned, find its first reply, and settle requests (section 8) | automatic, with the person           |
| 3h   | `get_account_status`                                                             | automatic                            |
| 3i   | check for an evidence-based next step (section 9)                                | automatic, with the person           |

Use the table to choose what to do. Skip a step whose checklist item is `done`. For 3c, check each agreed channel because one connection can mark the inbox item `done` while others are still pending.

- **3a.** Only when the company's website or name is missing or wrong.
- **3c.** Connect every channel the person agreed to connect now before saying setup can move on. The first build can start while you are connecting the others. For a mailbox, call `add_inbox` with `type: "google"` for Gmail or Google Workspace, or `type: "microsoft"` for Outlook or Microsoft 365. The optional `name` is its display label. Set `shared: false` only for a private inbox. The person selects the mailbox at sign-in. A mailbox or account returns a link, a browser step (section 4). Give the link and stop. Continue once the person says it is done and `get_account_status` confirms the connection. Intercom, Zendesk, HubSpot and Google Play first need a second `add_inbox` call. Read `next` for how to make it. If the result has `choices`, ask the person which account, address or group to connect. For Google Play, ask for the link of the app's Google Play page or its app id and pass it in `packageName`. App Store opens a page where the person enters the secret. The inbox appears in `list_inboxes` once they are done. For X, read the cost in `next` and explain it in one sentence with the link. If the channel is unavailable, explain that in your own words and continue with the other channels. Never retry it.
- **3d.** Invite the teammates the person named. If `emailSent` is `false`, tell the person that the invitation was created but the email did not go out. Explain the reason in plain words if `emailError` gives one, and give them the `invitationUrl` to pass on or call `invite_members` again for that address to resend it.
- **3e.** A new account starts its trial at sign-in, so the plan item is usually `done` already: skip the step and say nothing about billing. It is `missing` only for an account created before, or one whose sign-in skipped it; then the trial also starts the first brain build, so do 3b first.
- **3h.** Check that every mandatory item is `done`. If something is still pending, explain what remains and give the link where they can act. Confirm setup is complete once you have shared what Onbox learned (section 8).
- **3i.** If Onbox was missing something, end with one proposal or question (section 9).

## 4. Browser steps and waiting

A browser step is one only the person can do: provider consent, a tool sign-in, payment, a secret. For each:

1. A browser step is a stop. The message right after the call gives the link, named for what it does and pointing to the URL exactly as returned, alone on its line, with one sentence saying what they will see when they open it, and ends your turn: no other step, question, tool call or background wait. Never say you gave a link unless it is in that message, and never say a page is open in their browser. If your host can open a URL for the person, you may offer that; never open it without asking. When a link expires, say in how many minutes, never as a clock time or in UTC.
2. Say you will check, then wait, starting in a later turn. When the person says they are done, check at once with the tool for that step. Otherwise check about every minute until the step shows done (see waiting, below).
3. Where to check:
   - **Inbox:** `get_account_status`. Once you verify the connection, tell the person their mailbox or channel is connected, using its name or address. If its `setupStatus` is `INGESTING_HISTORY`, say Onbox is importing past conversations. `FINISHED` means the import is complete. If it is `NEEDS_AUTH` or `DISCONNECTED`, explain that it needs a new sign-in and offer a new link.
   - **Tool sign-in or custom integration secret:** `list_integrations`, whose `status` and `secretStatus` say whether it is connected.
   - **Trial or plan:** `get_account_status`, where the plan item turns `done`.

Some calls ask the person to confirm in your host before they run: adding an inbox, approving an action. A host that cannot ask, such as a non-interactive session, refuses them, with an error such as "requires permission" or "requires user interaction". That is the host, not the person or Onbox: do not retry, and do not say the person blocked it. Give the person that step's `webUrl` (the checklist item's, or for an action its conversation's) to do it in the browser, carry on with the next step, and check as above when they say it is done.

**Waiting.** Never ask the person to type "check" for you. Start a wait only in a turn after the link message has gone out. Between two checks, wait in the background: a host that runs commands can run one that sleeps for a minute or two (in Claude Code, a background command such as `sleep 120`, which wakes you when it ends), then call the tool again when it ends; a host that waits between calls on its own just waits. Only a host with no way to wait asks the person to say when to check again.

**The polling rule.** While anything runs (an import, the brain build), report progress every few minutes in one line. Stop polling after an hour. Tell the person where it stands, give the brain item's `webUrl` (or the page for the step), and say they can ask you to check again later. Never poll silently for longer than a few minutes.

## 5. Giving the brain build your docs

The first brain build starts on its own once an inbox is connected and the trial starts, and it learns from the inbox's past conversations. You can also give it what no inbox history holds: what the company tells customers in its docs. Do this before you connect the first inbox: the trial is usually running already, so the build starts as soon as an inbox's history is in, and it should see the docs. Say it in the message that makes the call, with the topics, for example "I'm giving the brain your docs: pricing, imports, cancelling, refunds, deleting an account."

Read what you can reach: in a repository, the README, the docs folder, the pricing page and the FAQ; without one, the public help, FAQ and pricing pages of the company's site, or a source the person connected. With none of these, skip this step and say once that Onbox will learn from the inbox history only. Write one knowledge entry per thing the company tells customers: a feature and how to use it, a limit, a policy, a price stated on the public site.

Write with `write_brain_files`, `scope: "org"`, all entries in one call, at `memory/kb_<slug>.md`. While the setup is open, a write by an owner or admin goes live at once: it is part of the setup, not a change for anyone to accept. Each entry:

```markdown
---
name: export-to-csv
description: Getting data out of the app as a spreadsheet, for a report, a backup or another tool. Covers exporting reports and contacts to CSV, where the export is, and how the file arrives.
memory_type: kb
kind: how-to
status: current
sources:
  citations:
    - https://github.com/acme/app/blob/4f2a9c1d8e3b2a17c9f04e6b1d2c3a4b5e6f7a8b/docs/export.md
log:
  - { date: 2026-11-04, source: git, event: created, ref: 4f2a9c1, note: 'From docs/export.md' }
---

# Export to CSV

## When this applies

A customer asks how to get their data out as a spreadsheet.

## Answer

Customers export from Reports, then Export, then CSV; the file arrives by email within a few minutes.
```

The rules for each entry. The brain refuses a write with a wrong `kind`, `status` or `log` line. Nothing checks the description, the sources or the body, so check those yourself:

- `description` is one line, about 300 characters: first the situations the entry covers, in the customer's words, then a few concrete examples. Onbox picks an entry from its description, so a situation the description leaves out is one it never opens the entry for. When you widen what an entry covers, widen its description.
- `kind` is one of `bug`, `issue`, `limitation`, `how-to`, `procedure`, `policy`. A `bug` is something wrong a release can fix; an `issue` is a problem no release can settle.
- `status` is exactly one of: `open` or `fixed in <version>` / `fixed on <YYYY-MM-DD>` for a `bug` or an `issue`; `current` or `shipped in <version>` / `shipped on <YYYY-MM-DD>` for every other kind. Use `in` with a real version and `on` with a real date; when you cannot name either, keep `open` or `current`.
- `sources:` is never empty: list a `citations:` entry a reader can follow on its own. A link into code pins a commit sha, never a branch such as `/blob/main/`: build it from the owner, the repository, the sha (`git rev-parse HEAD`) and the path. A web page is its URL followed by ` (read <YYYY-MM-DD>)`.
- `log:` starts with one `created` line: a real date, a one-word lowercase `source` (`git` for the repository, `kb` for a published help page, `team` for something the person told you), and a `ref` (the short sha, or the page's path). Every later change appends one line, with `event` `confirmed`, `status`, `fact` or `flag`; never rewrite earlier lines.
- `related:` is optional: the bare names of neighbouring entries that exist. Never cite another brain file under `sources:`.
- The body has `# Title`, `## When this applies` (one sentence) and `## Answer` (opens with the outcome and its condition). Only `###` headings below that, and only inside `## Answer`. An entry a person wrote in another shape keeps it.

Each entry is a new file. To change a file that already exists, read it with `read_brain_files` and pass its `version` as `expectedVersion` (see section 8).

Write only what the sources state. Leave out internal notes, secrets, roadmap items and anything customers are not told. If a call fails, the error names each file and the rule it broke: fix those files and send the call again. Then tell the person in one line how many entries you wrote and on which topics.

## 6. The trial, when it has not started

A new account starts its trial while signing in, so this section applies only when the plan item of `get_account_status` is not `done`. No tool starts a trial, chooses a plan, adds credit or turns on automatic refill: the person does it on the billing page, the plan item's `webUrl`. Never offer to do it yourself. Send a short message of its own:

- Use the plan status to explain in your own words what is missing, such as "The free trial hasn't started yet" or "The trial ended, so Onbox is paused."
- The billing page, alone on its line: `[Open the billing page](<webUrl>)`, with one sentence saying they choose a plan and start the trial there. When `caller.isAdmin` is false, say only an admin can, and ask them to pass the link to one.

Never state a price, a plan's contents or a comparison of plans, from memory or from any page: when the person asks which plan to take or what it costs, say the billing page shows the plans and their prices, and give its link again. `get_billing` tells you where the billing stands (whether Onbox can work, the plan's status, the credit), not what to sell.

Then wait (section 4): the plan item turns `done` in `get_account_status` once they are back.

## 7. The brain build: what it does and what to show while it runs

The brain build reads each connected inbox's past conversations and the docs you gave it. It writes skills (how to handle each kind of request) and memories (facts and corrections) into the brain. With an active plan or trial, Onbox starts the first build on its own when a connected inbox has enough history or its import finishes. Confirm the connection to the person. If history is still importing, say Onbox is importing past conversations and will start reading them on its own. Once the build is running, say "Onbox is reading your past conversations. It can take a while, often 10 minutes or more. I'll keep you posted." Give no promised finish time. Use `build_brain` to retry a build when the brain item's tool hint calls for it, or with `rebuild: true` when the person asks to rebuild.

Follow it without being asked: wait in the background between checks (section 4, waiting), and every few minutes:

- Poll only `get_account_status`. Use `brain.sources` to give one short line per inbox or integration. Describe its learning status in your own words, and give the counts and topics from `learning.contributions` when present. Give a read count only if the status provides one.
- Use the terms from the introduction. Memories are facts Onbox uses when it answers. Skills are step-by-step ways it handles requests. Explain those terms here only if you have not introduced the brain yet.
- Mention skills only when Onbox saved some. Until the status names a contribution, give the source's status.

The polling rule (section 4) applies: stop after an hour and say where it stands.

Once the brain item is `done`, `brain.building` is false, and no source is still learning, sum up what Onbox learned (section 8).

## 8. After the build: what Onbox learned, its first reply and any requests

Use `brain.sources` from section 7 for the name and counts of each connected source. List both the team and personal brain with `list_brain_files` (`scope: "org"` and `scope: "user"`). Use the contribution titles to pick one representative skill or memory per source and read its contents with `read_brain_files`. Pick something that tells you how Onbox would handle a real customer question. Keep entries you wrote from the person's docs separate from the source's contributions.

Under **What Onbox learned**, use exactly one two-sentence bullet per source. Name the source and what Onbox saved in the first sentence. Give one concrete example of what it learned in the second, in your own words. For example, "From support@example.com, Onbox saved 1 skill and 3 memories. It learned that customers can restore a purchase from their account settings." Use the titles to find the example and leave them out of the summary. After the last source, move to the first reply. Save any follow-up gap for section 9.

For a source that finished with nothing saved, failed, or is still waiting, use its bullet to say where it stands in plain words. Use `brain.nothingSavedReason` when it explains what happened to that source. If a build with past conversations saved nothing and the reason is unclear, look for a build request as described below and explain any confirmed blocker.

Then check `list_my_inbox` for the first customer reply Onbox prepared, whether a draft ready to send or a reply waiting for send approval. If none is ready, check again in the background about every minute for up to about 10 minutes, following section 4's progress guidance. As soon as one is ready, say the person can review or edit the reply, then give that conversation's `webUrl` on its own line as `[Review Onbox's first reply](<webUrl>)`. If the wait ends with no reply, say a reply is not ready yet and continue.

Use `list_my_inbox` to find Onbox's requests assigned to the person. Reuse the results you already have. Use the subject and `latestComment` preview when they already tell you what Onbox needs decided. For requests that need more context, pass their conversation IDs in one `get_conversations` call, then use `get_comments` for any comments whose previews leave out needed details.

Before you bring a request to the person, try to settle it yourself from what is at hand. The repository, the site or a connected source often holds the rule, the page or the reason Onbox could not find in the mailbox. When you find it, reply on the request with `create_comment`, saying what you found and where, in one or two sentences, so Onbox records it and the request leaves the inbox. Otherwise, give the person Onbox's proposal first, then reply on the request with their answer. Never answer a request from memory or with a guess.

Then record each answer or correction in the file that already states the point, such as the knowledge entry or the skill.

What the person already said is decided: write it with `statedByPerson: true`, without asking "Shall I write this?", then say in one line what you saved and where ("Saved: the import takes a zip, in the import entry."). Ask before you write only what they have not decided, such as a rule you propose from what you read, and write that one without `statedByPerson`, also after their yes: `statedByPerson` covers the whole call, so pass it only when every change in the call is what they said.

The build may have written any of these files. Read each one with `read_brain_files` right before you write it, merge your change into its content, and pass its `version` as `expectedVersion`. A path it lists under `missing` does not exist yet: you create it, with `expectedVersion: null`. That is the normal case on a new account, not an error. A refusal names the file and shows its current lines: read it again, merge, and send the call again. Never replace a file you have not read.

Write the changes in one `write_brain_files` call. If the person corrects a fact, fix the file that holds it. Once the setup has completed (`onboardingCompletedAt` is set, usually as the build finishes), a change to the organisation brain is an Onbox improvement, and the result's `message` says whether it is live or waiting. One the person stated themselves, written with `statedByPerson: true`, is live at once for an admin: say what is saved and live. One you composed from your own reading, written without it, waits: give its `webUrl` in one line, say the change applies once they accept it there, and accept it with `accept_brain_proposals` only when they ask you to. Then check the checklist again with `get_account_status` (step 3h). That ends the setup.

## 9. After setup: at most one next step

Once setup is done (step 3h), open and read [the next step](https://www.onbox.ing/docs/agents/setup.md) before deciding whether there is a next step. If there is no gap, end with the learning summary and the first reply update. If there is a gap, bring one step whether or not you found a prepared reply.

Pick one gap, preferably one you can resolve from what you read. If past replies disagree, check the current implementation or policy before you ask the person to decide. If you have a verified answer, check for conditions or exceptions in the source, state the answer with those conditions, then ask for permission to add it to what Onbox knows. If you still need the person to decide what is true, state the evidence and ask which answer to use. Wait for that decision before proposing a change.

Keep that paragraph to two or three sentences. Omit other gaps and offers of later work. End the message at the one question. Keep the whole update in plain language. Refer to sources by familiar names such as the changelog and leave out tool names, field names and file paths. Leave out optional setup items unless the person asks about one. Everything starts in review, so keep sending without review out of setup proposals.

Everything after setup (the inbox, drafts, approvals, rules, corrections, a website chat, tools) is in the `working-with-onbox` skill: load it when the person says yes to that step or asks for any of it.

## The next step: start from what Onbox was missing

Onbox answers a conversation when it holds what the answer needs, or can reach the place that holds it. So the next step for this company comes from where Onbox fell short, never from what it could do. Read that first:

- the first build's source results in `get_account_status`: what each source taught Onbox, and what it could not learn;
- its requests and escalations in `list_my_inbox`, each with the comment where Onbox says why;
- the lines its knowledge marks as not known (`list_brain_files`, `read_brain_files`).

At the end of setup, if every source taught Onbox what it needed, no request or escalation is waiting on the person, and Onbox marks nothing as not known, stop after what Onbox learned and the link to its first prepared reply. Otherwise, ask yourself the four questions below.

### 1. What was missing each time?

One of three things:

- **How the product or service works.** It changes slowly and is written somewhere: for software, the repository, the docs, the changelog; for a shop, the catalogue and the returns policy; for a service, the offers, the price list, the contract terms. Onbox takes it as knowledge written into its brain, or from a source it is connected to.
- **Where this customer's case stands.** It changes every day: an order, a subscription, an account, a booking, an open ticket. Onbox takes it only from a connected tool, reading at first: `update_integration` sets what it may change. Never write it into the brain.
- **A decision or an exception.** It is in someone's head, a chat or a habit. Onbox takes it from the person's answer, recorded in its brain where the point belongs.

### 2. Where does whoever answers today look for it, and do you already have that place?

The repository you are in, your memory, a tool you are connected to, a page you can read.

- You have it: propose giving it to Onbox, and name what it unlocks. "Onbox left the notice period out of 9 of your last 40 replies, and your terms page states it. Shall I add it to what Onbox knows?"
- You do not: ask the person one question, your best guess first.

### 3. What does the person do elsewhere after answering?

Propose an action only for a step someone already takes today, never one you guess from the kind of business, not even as an example.

- **Find its trace:** replies that say what was done ("I've extended your trial", "I've passed this to the workshop"; `search_messages`), escalations where Onbox says what it could not do, what the person told you.
- **Check the place:** call `list_integrations` before you say Onbox can or cannot do the step, even when you think you know. It lists the tools Onbox connects; the company's own system needs an MCP server, an OpenAPI document or a PostgreSQL database; a step inside Onbox, such as a tag or giving the conversation to a named person, needs no tool.
- **Propose it** with the evidence, what Onbox would do and what still waits for the person: "In 7 of your last 50 replies you said you had extended the trial. Onbox can extend it through your admin API and tell the customer, asking you before each one. Want that?"
- **No trace:** no proposal, and no examples of what Onbox could do. At most one open question, with nothing after it, which names no tool and no step the person might take: "After a cancellation, do you do anything outside the reply?"
- **A place Onbox cannot reach:** say so in a sentence and promise nothing.

### 4. Does Onbox start on what the person wants handled, and only that?

`list_inboxes` says which new conversations Onbox takes on each inbox (all, those a trigger gives it, none) and whether its replies wait for review. The `triggers/` files of the organisation's brain say which kinds a trigger gives it. The `agent_triggers` item of `get_account_status` names an inbox where it takes none.

Compare with what the person said they want handled. A kind Onbox never gets, or one it works on that they keep for themselves, is fixed with one trigger. Sending on its own stays the person's call: never propose it here.

### One step

At the end of setup, bring at most one proposal or one question. When you bring a step, choose the one that touches the most conversations, an inbox where Onbox takes nothing first. Say it in two or three sentences, with the evidence, and end your turn.

- Never list what Onbox can do or the tools it can connect. A numbered list of things Onbox could do is a list, even when it ends on one question.
- Never propose from the kind of business alone.
- Never several steps at once.

On yes, do it, as the `working-with-onbox` skill says for knowledge, tools and triggers, and say what changed. Bring the next step when they ask.

## 6. A website chat and tools

Start one only when the person asks, or says yes to a step you proposed (section 7).

**A website chat,** when the product has a website. `add_inbox` with the website chat type returns an HTML snippet. Tell the person first that a website chat answers visitors on its own from the start, unlike an email inbox; if they want its replies held for review, call `update_inbox` with `sendMode: "ASK"`. When you can read the product's code, propose where the snippet goes from what you found (the marketing site, the web app, or both) and ask before you change any code. On yes, add it once, where the framework expects it, on a new branch with a pull request (show the diff when you cannot open one, and never ask for extra permissions or touch their GitHub sign-in without asking). In a signed-in app, offer to pass the signed-in user with `Onbox('identify', { userId, email, name, details })`, so each customer keeps their own conversations and the team and Onbox see who the site says they are and which page they wrote from; it is not verified, never a sign-in. Without code access, give them the snippet to paste. For a mobile app, turn on mobile apps for the chat with `update_inbox` (`websiteChat.mobileApps: true`): it returns a WebView screen per platform (`mobileSnippets`: React Native, Swift, Kotlin) that opens the hosted chat page. The same rules apply: propose where it goes from the code, ask before you change any code, and work on a new branch with a pull request. The screen can pass the signed-in user in the page address (`#userId=&email=&name=`, plus `screen=` for the screen they came from and `detail.<key>=` for each detail).

**Tools,** which let Onbox read live data (an order, an account) or do a step outside the reply (save an invoice): `list_integrations`, then `connect_integration` for what the person names (a browser step: give the link alone and end your turn, then check `list_integrations` when they are back). When the company has its own API or MCP server, call `preview_custom_integration`, then `create_custom_integration` with the auth it suggests; the person enters any secret through the returned link, then run `test_integration`. Read its `verified` and `note`: when the test could not tell whether the secret works, tell the person, and replace the secret with `update_integration` and `rotateSecret` if Onbox later gets an authentication error from that tool. Run every check yourself; never ask the person to run a command. Then follow `heldForPerson` (section 5).

## 5. Sending on its own, only when asked

An email inbox starts in review: Onbox drafts and a person sends. A website chat starts live, because a visitor waits in it. `list_inboxes` gives each inbox's send mode; check it before you say what is sent on its own.

When the person asks for automatic replies, first say in a sentence or two how it works, because people often picture a "simple questions only" mode that does not exist: the switch is per inbox, and once on, Onbox replies on its own to every conversation it handles whenever the communication policy allows, holding the rest for review. Then, in the same message, propose the cases that should still wait for them, your best guesses from their inbox and brain (such as refunds, billing disputes, account deletion, anything legal), and ask them to confirm both those rules and which inbox to switch. Their request for automatic replies, however it is worded, is not that confirmation: end your turn on the question and wait for their yes, even in a session where you cannot see a reply coming. Only then write the rules to `policies/communication.md` and call `update_inbox` with `sendMode: "AUTO"`.

When a result carries `heldForPerson` (`update_inbox` to automatic, `connect_integration`, `create_custom_integration`, `update_integration`), tell the person in plain words what still waits for them and ask its closing question; when it is absent, say nothing about escalations.

## Next

- [Every day](https://www.onbox.ing/docs/agents/everyday.md): what the person asks once Onbox is set up, and how to teach it
- [Approvals](https://www.onbox.ing/docs/agents/approvals.md): what waits on the person once customers write in
- [Tools](https://www.onbox.ing/docs/agents/tools.md): every tool of the MCP server
- [Limits and safety](https://www.onbox.ing/docs/agents/limits-and-safety.md)
