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

# Experiments

> Try a new model or new instructions on real customers before you switch

An experiment is an A/B test on your live agent. It splits new conversations between your current setup and a proposed change: a different model, different instructions, or both. Then it shows both sides next to each other, so you can see which one answers better.

> [!NOTE]
>
> Experiments are turned on per workspace by Totebot support. If you don't see them under **Analytics → Experiments**, contact support to enable them.

## When to use one

Use an experiment when tests alone can't tell you if a change is better, and you want proof from real customers:

* You want to switch to a cheaper or newer model, and check that answers don't get worse.
* You rewrote the instructions (shorter, a different tone, a new sales rule) and want to see how customers react.
* The [AI Lab](https://docs.totebot.ai/dashboard/ai-lab.md) instructions check suggested edits and you want to try them on a small share first.

Test the change first with [test questions](https://docs.totebot.ai/dashboard/test-questions.md) and the draft in the live preview. An experiment is the last step before you save, not the first.

Experiments compare models and instructions. Knowledge is shared by both sides, so knowledge changes are not tested this way.

An experiment needs traffic. Plan for at least 100 conversations on each side, which can take days or weeks for a smaller shop.

## Start an experiment

**1. Open Analytics → Experiments**

Only team owners can start and stop experiments.

**2. Click New experiment**

Give it a name, choose the share of new conversations that get the change (1 to 50%), and set the model, the instructions, or both. At least one must differ from what is live.

**3. Click Start experiment**

From now on, each new conversation is assigned to one side at random. It keeps that side until it ends. Conversations that were already open, and your own preview chats, are not part of the experiment.

One experiment runs per agent at a time. Real customers get the change, so start with a small share, for example 10 to 20%.

Don't change the live agent's model or instructions while an experiment runs. The current side always uses what is live, so a change in the middle mixes two changes and the results stop being clear.

## Read the results

The report shows **Live (control)** and **Candidate** side by side:

| Metric | What it means | Better is |
| - | - | - |
| Conversations | New conversations on each side since the start | |
| Thumbs-down rate | Thumbs-down out of all rated replies | Lower |
| Handover rate | Conversations that asked for or reached a person | Lower |
| No-search rate | Customer messages answered without searching your knowledge | Usually lower: the agent should check facts |
| Empty-search rate | Knowledge searches that found nothing | Lower |
| AI cost per conversation | What the AI provider charged | Lower |
| Credits per conversation | Message credits billed to your team | Lower |

Totebot does not pick a winner for you. Look at quality first (thumbs-down and handovers), then cost. A cheaper candidate is a good switch only if its quality is about the same.

While either side has fewer than 100 conversations, the report warns you. Small differences on few conversations are usually chance, so wait for more traffic before you decide.

## Stop and decide

Click **Stop experiment** when you have enough data. New conversations go back to your current setup. Conversations already on the candidate keep it until they end. The results stay on the page.

Stopping does not save the candidate. If it won, save the new instructions or model in **Settings → AI**. Every saved change is kept in [History](https://docs.totebot.ai/dashboard/history.md), so you can roll it back.

## From the CLI or API

With the [Totebot CLI](https://docs.totebot.ai/cli/commands.md) you can run the same steps from Claude Code or a script: `totebot experiments start`, `report` and `stop`. They need the `experiments:read` and `experiments:write` scopes. See [Optimize your agents with Claude Code](https://docs.totebot.ai/cli/optimize-agents.md) and the [Public API](https://docs.totebot.ai/api/public-api.md#outcomes-usage-and-experiments).


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