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

# Your agent's context

> The documents your agent runs on, how to teach it a new skill, how to protect a change with a test, and how a change goes live.

Your agent's behavior comes from a set of documents we call its **context**:
who it is, how it speaks, its rules, the situations it knows how to handle, and
the facts about your business. You change them in **Agent Studio**, or from an AI
tool connected over [MCP](https://docs.useboom.ai/use-mcp.md). Either way, a change goes to a **draft**
first and reaches your customers only after it is reviewed and approved (or, if
your organization has [promoting](#from-draft-to-live) turned on, after you put
it live yourself).

> [!NOTE]
>
> Editing the context from an AI tool is being enabled per organization. If the
> tools answer that it isn't available for you yet, ask your Boom contact.

## What the context is made of

| Area | What it governs | Example change |
| - | - | - |
| **Persona** | Who the agent is: its name, role, what it represents | "Introduce yourself as Sofi, from Aromante's team" |
| **Voice and tone** | How it writes: formality, length, emojis | "Shorter replies, no exclamation marks" |
| **Policies** | What it can promise, must refuse, or has to hand to a person | "Never promise a delivery date" |
| **Glossary** | Your terms and what they mean | "MSI means meses sin intereses" |
| **Knowledge** | Facts about your business: products, prices, hours, shipping | "Free shipping from \$1,198" |
| **Procedures** | How it handles a situation, start to finish | "When a customer asks to return an order..." |
| **Channels** | Differences per channel, such as WhatsApp vs email | "On email, sign with the team name" |
| **Skills** | Step-by-step tasks the agent performs, such as looking up an order | Adjust a step of the order lookup |

The areas are fixed: you change and add to what is inside them, but you can't
create a new area.

### When the agent reads each document

Not every document is read on every message:

* **Every turn**: usually persona, voice and tone, policies and the core
  knowledge. A rule that must always hold belongs in one of these.
* **Only when it applies**: each procedure is read when a customer's message
  matches its trigger ("when a customer asks for a refund"). This keeps the
  agent focused, but a rule written inside a procedure only applies in that
  situation.

Agent Studio and the MCP tools show which documents are read every turn and
which only when their procedure fires.

## Teach your agent a new skill

To make the agent handle something new, add a **procedure**: a situation, what
triggers it, and the steps to follow. Procedures are how you give your agent a
new skill.

1. **Describe the situation** as something the customer does: "a customer wants
   to return an order", not "process returns".
2. **Write the trigger** in your customers' own words, including what it is
   *not* for if another procedure could be confused with it. A vague trigger
   never fires.
3. **Write the steps** as actions the agent takes ("ask for the order number",
   "if it was more than 30 days ago, offer store credit"), not goals.
4. **Add a test** (below), then send it for review.

Ask Agent Studio to add it ("when a customer asks to return an order, ..."), or
an AI tool connected over MCP (`org_context_add_procedure`).

## Protect a change with a test

A **test** is a short, invented conversation plus the points the agent's reply
must meet, such as "offers store credit" or "does NOT promise a refund". When a
change is sent for review, your agent's tests run against it and the reviewer
sees the results before approving. That's how a change that would break an
earlier rule gets caught.

* Add a test for **every new procedure and every rule** you add or change.
* **Invent the conversation.** Never paste a real one or use real names, phone
  numbers or emails.
* Test what the reply must do, not its exact words. One situation per test.

Ask Agent Studio to add one ("add a test: a customer asks for the welcome gift,
and the agent says it is suspended"). It shows you the conversation and the
points the reply must meet, and adds the test only when you approve. From an AI
tool connected over MCP, use `org_context_add_eval`. A test can't be changed
once added, so when a rule changes, add a new test for the new rule and say
which old behavior it replaces. That note is saved with the test, so the
reviewer can update or remove the old test that still checks it. Reviewers expect a test with every new
procedure.

## From draft to live

1. **Change**: each edit is saved to your organization's draft. Nothing your
   customers see changes yet.
2. **Send for review**: in Agent Studio, open the unpublished-changes indicator
   and choose **Send for review**; from an AI tool, `org_context_publish`. Your
   tests run against the draft.
3. **Approve**: a reviewer approves the change, and your agent is rebuilt with
   it. Agent Studio shows when it's live.

You can look at or throw away an unsent draft at any time.

### If promoting is turned on for your organization

Ask your Boom contact to turn it on. Then nobody at Boom reviews your changes:
you put them live yourself, from an AI tool.

1. **Change** and **publish** as above. Instead of going to a reviewer, the draft
   is validated: your tests run and it is checked against the live agent.
2. **Wait for ready**: `org_context_draft_get` shows whether it is still
   validating, failed validation (and what failed: fix the draft and publish
   again) or is ready.
3. **Promote**: `org_context_promote` puts the validated change live for real
   customers. Your AI tool asks you to confirm first.

Your organization owns what it promotes. New conversations get the change right
away; conversations already in progress may keep the old behavior for up to about
two days. You can promote with no tests, but add one for each new skill (a new skill
needs one that names it). If publishing says the live agent changed the same
documents, discard the draft and redo the change, or contact Boom. A change that
touches something only Boom can put live is not promoted, and Boom is told; contact
Boom if it's urgent.

## From an AI tool (MCP)

Connected over [MCP](https://docs.useboom.ai/use-mcp.md), an AI tool such as Claude can do all of the above:

| Tool | Does |
| - | - |
| `org_context_guide` | Returns the guide to changing the agent. Every other change tool requires reading it first. |
| `org_context_list`, `org_context_read` | List the documents and read one |
| `org_context_edit`, `org_context_edit_batch`, `org_context_setting_set` | Change text or a setting, saved to the draft |
| `org_context_add_procedure` | Add a new skill (procedure) |
| `org_context_add_eval` | Add a test |
| `org_context_draft_get`, `org_context_publish`, `org_context_discard` | See the draft and how it did on your automatic tests, send it for review, or throw it away |
| `org_context_promote` | Put a validated change live yourself (only when promoting is turned on) |
| `conversations_list`, `conversations_transcripts_list` | Find conversations by date, channel, label, campaign or text, and read the most recent messages of many of them (up to 400 per conversation; `truncated: true` marks a cut thread), to spot a pattern before deciding what to change |
| `conversations_get`, `agent_session_get` | Read a conversation and what the agent did on each turn (including which of your documents it opened), before deciding what to change |

The same rules apply as in Agent Studio. Changing the context takes the
**Owner**, **Admin** or **Developer** role. Reading conversations and the agent's
trace from an AI tool takes the **Owner** or **Admin** role. The [Boom skills](https://docs.useboom.ai/skills.md) for Claude include
`edit-your-agent`, which teaches it this whole process.

## Related

> [card] [The Agent](https://docs.useboom.ai/the-agent.md)
>
> What answers your customers, and how it improves from your corrections.

> [card] [Use Boom from an AI tool](https://docs.useboom.ai/use-mcp.md)
>
> Connect Claude or another AI tool to your organization.


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