# Test, publish and roll back (/docs/agent-builder/test-publish-and-roll-back)

> Run the builder test plan, read the launch check, publish with a clear diff and go back to an earlier version.

Type: how-to | Status: beta | Last reviewed: 2026-11-21 | Minimum role: builder

Testing, publishing and going back are the last stages of a build. The builder helps with each, and every step needs your approval.

## How do I test and publish an agent from the builder? [#how-do-i-test-and-publish-an-agent-from-the-builder]

Ask the builder to test, or open Test, and run its Questions to try. Read the launch check, then publish once you approve the changes it shows. If something goes wrong, roll back to an earlier version or switch the agent off. Every step needs your approval.

## Test plan [#test-plan]

Ask the builder to test, or open **Test**. It proposes **Questions to try**:

- Questions the agent **should answer**.
- Questions it **should decline**.
- A request that **asks for a person**.
- One that **tries to read its instructions**.

Use **Change questions** to edit, add (**Add a question**) or remove them. Each question needs a few words, and the same question twice is flagged. Save or cancel your edits before running.

Then select **I'll try these questions**. The builder runs them against your agent and shows **Test results**: what passed and what to fix. If you fix something, use **Check them again**; the builder re-checks the questions that failed. If the agent changes after a test, the report says **The agent has changed since this test.**

You need permission to run tests ("You don't have permission to run tests."). A test run has up to 8 questions by default. A conversation can run up to 12 tests by default.

You can also [test in Test chat](/docs/agents/test-your-agent) yourself.

## Launch check [#launch-check]

The **Launch check** panel says **Ready to go live** or **Not ready to go live yet** with what is missing, or **Not tested yet.** Use **Try again** if it could not load.

## Publish [#publish]

The publish card (**Publish vN**) shows:

- **Which version** is about to go live and **What changes**. A first version says "Everything is new." When nothing changed, it says "No changes since the last version."
- Any warnings from the [security check](/docs/agents/publish).
- An optional **Version note**.

Choose **Approve** to publish. You can also **Edit manually**. You need permission to publish ("You don't have permission to publish."), and the button is locked while the builder is working.

## Roll back or switch off [#roll-back-or-switch-off]

Open **Version history** and restore an earlier version ([Version history and rollback](/docs/agents/version-history-and-rollback)), or [pause or switch off](/docs/agents/pause-or-switch-off) the agent. Individual builder changes can be undone from their **change card**.

## After you publish [#after-you-publish]

Watch [Analytics](/docs/analytics) and the [Inbox](/docs/inbox), and use the overview's **Improvement queue** (suggestions once customers have asked things the agent could not handle) and **Weekly briefing**. Install the website chat on your site if you have not: [Install](/docs/channels/website-chat/install).
