> ## 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.

# History and rollback

> See every change to your agent's settings and put an earlier version back

The **Notebook** in [AI Lab](https://docs.totebot.ai/dashboard/ai-lab.md) keeps every change to your agent's instructions and settings, and lets you put back the settings the agent had before any of them. Use it when a change made answers worse and you want the old setup back quickly.

Open it from **AI Lab → Notebook**. Only team owners see it. The old **Settings → History** link opens it too.

## What is kept

A change is kept whenever someone changes one of these, whichever way they did it:

* the **instructions**, **model**, **temperature** and **language** (Settings → AI),
* **AI settings** such as **Check knowledge before every answer**,
* **Security**, **Email capture** and **Chat Interface** settings.

Changes from the dashboard, the [Public API](https://docs.totebot.ai/api/public-api.md#revisions-and-rollback), the [CLI](https://docs.totebot.ai/cli/commands.md#agents), the [AI copilot](https://docs.totebot.ai/dashboard/ai-copilot.md), a template, or Totebot support all show up. Each line shows a one-line summary of what changed, when, where it came from (**Dashboard**, **API**, **Sidekick**, **Template**, **Restore**, **Totebot support** or **Automatic**) and who made it: a team member's name, or `API key "<name>"` for a change made with a key.

A change saved from AI Lab's Experiment tab after a test run is marked **Saved from AI Lab** and shows its result, for example **Tests: live 6/7 → your change 7/7 · Better**.

The last 50 changes per agent are kept. Use **Newer** and **Older** to page through them.

> [!NOTE]
>
> The Notebook covers settings, not knowledge. To undo a knowledge change, edit or delete the entry in [Knowledge](https://docs.totebot.ai/dashboard/knowledge.md) and train the agent.

## Roll back a change

**1. Find the change**

In **AI Lab → Notebook**, find the change that made things worse.

**2. Click Undo**

Totebot asks **Restore earlier settings?** Confirm with **Restore**.

**3. Check the agent**

The agent goes back to the settings it had just before that change, from its next message. Ask a few questions in the live preview, or run your [test questions](https://docs.totebot.ai/dashboard/test-questions.md).

A restore is a change too, so it shows up at the top of the Notebook with the source **Restore**. If you undid the wrong one, undo that line too. Restoring settings the agent already has changes nothing.

## What a restore leaves alone

Some settings are never changed by a restore. Totebot keeps the current value and tells you why:

* **AI features that only Totebot support switches on.** These stay as they are.
* **Automatic retraining** and **knowledge gap digest emails** are never switched back on by a restore. Turn them on again in the agent settings if you want them.
* **Anything your plan no longer includes**, such as a model that is no longer on your plan or a widget feature from a higher plan.

## Related

* [Audit log](https://docs.totebot.ai/dashboard/audit-log.md): who changed what across your agent, including knowledge and integrations.
* [Optimize your agent](https://docs.totebot.ai/dashboard/optimize-your-agent.md): the full loop of finding, testing, applying and rolling back changes.


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