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

# Drafts and versions: test changes before your leads see them

> Changes to a live agent go into a draft first. Your leads keep the published version while you test the draft in the Playground on every channel. Publish when it is ready, discard it, or restore a previous version to roll back. Covers the Live pill, Publish changes, version history, line-by-line changes and Nexor AI.

When you change an agent that is already working with leads, the change does not reach them right away. It goes into a **draft**: a private copy of the agent that you and your team can edit and test. Your leads keep talking to the **published version** until you publish the draft.

## How a draft starts

Your first change to a live agent opens its draft automatically. You don't need to create it. Every later change, yours or a teammate's, lands in that same draft.

* **One draft per agent.** The whole team shares it. Two people can edit at the same time, and both sets of changes end up in the same draft.
* **The draft covers the whole agent**: its tasks, stages, fields, instructions and prompts, tools, cadence, reminders, meeting types, knowledge and catalog selections, the files the agent can send, and inbound routing.
* **Agents still being set up save directly.** If none of the agent's tasks is live yet, there is nothing to protect: your changes apply right away, with no draft. The draft appears once at least one task is live.

## Read the pill

The pill at the top of the agent's chat shows where the agent stands.

| Pill | What it means |
| - | - |
| **Live** | The agent is working with leads and there are no pending changes. |
| **Live · Unpublished changes** | The agent is working with the published version and a draft is waiting. Hover the pill and it turns into **Publish changes**. |
| **Paused · Unpublished changes** | The same, for an agent whose tasks are paused. |
| **Draft saved** | Shows for a moment after each change, to confirm it went into the draft. |
| **Published** | Shows for a moment after you publish. |
| **Propagating…** | Only for some voice agents: calls switch to the new version within a few minutes. Chat channels use it right away. |

<Frame>
  <img src="https://mintcdn.com/nexor/btCyEHVDsamNZTjr/images/agent-drafts/pill-unpublished-es.png?fit=max&auto=format&n=btCyEHVDsamNZTjr&q=85&s=a16bb23c8a336fe51b2ef4544b01eabb" alt="The agent header with the pill reading Paused · Unpublished changes and the version history button next to it. Shown in the Spanish interface." width="984" height="52" data-path="images/agent-drafts/pill-unpublished-es.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/nexor/btCyEHVDsamNZTjr/images/agent-drafts/pill-publish-changes-es.png?fit=max&auto=format&n=btCyEHVDsamNZTjr&q=85&s=ae466c46e2f6f2e032ef3db605ef18a5" alt="The same pill on hover, now reading Publish changes. Shown in the Spanish interface." width="984" height="52" data-path="images/agent-drafts/pill-publish-changes-es.png" />
</Frame>

## Test the draft in the Playground

Open **Test this agent**. While a draft is open, the version selector in the Playground header reads **Draft**, and the Playground runs the draft, not the published version. Hover it to see the reminder: your leads still use the published version.

The draft works on every test channel:

* **Chat in Nexor** answers with the draft.
* **WhatsApp**, **iMessage**, **SMS** and **Email** send real messages from the agent's own number or address. Your replies come back to the draft, not to the published agent.
* **Call** places a call from the agent's number with the draft's instructions.

If no draft is open, the selector shows the version your leads are using, for example **v3 (Current)**. Choosing an older version from the same selector loads it into the draft so you can test it. See [Go back to a previous version](#go-back-to-a-previous-version).

<Frame>
  <img src="https://mintcdn.com/nexor/btCyEHVDsamNZTjr/images/agent-drafts/playground-version-selector-es.png?fit=max&auto=format&n=btCyEHVDsamNZTjr&q=85&s=594317122b9fc0cdfee3821e17a014b0" alt="The Playground version selector reading Draft with its menu open: Draft selected, v2 (Current) and v1. Test inbound call appears below the channel options. Shown in the Spanish interface." width="764" height="536" data-path="images/agent-drafts/playground-version-selector-es.png" />
</Frame>

### Test an inbound call

To check how the draft answers when a lead calls in:

1. In the Playground, choose **Test inbound call**, below the channel options. It only appears while you test a draft.
2. Enter the phone you will call from and choose **Get the number**.
3. Call the number shown, which is the agent's real number, from that phone within 15 minutes. The draft answers, and the conversation opens in the Playground.

<Frame>
  <img src="https://mintcdn.com/nexor/btCyEHVDsamNZTjr/images/agent-drafts/playground-inbound-call-test-es.png?fit=max&auto=format&n=btCyEHVDsamNZTjr&q=85&s=356139eb44710e420bb1851d91cb641f" alt="The inbound call test form asking which phone you will call from, with Get the number and Cancel. Shown in the Spanish interface." width="382" height="200" data-path="images/agent-drafts/playground-inbound-call-test-es.png" />
</Frame>

The agent needs a number with AI answering turned on. If that number forwards calls to a phone, turn call forwarding off before testing.

### Prepare the draft's voice

Some voice agents need their own test voice before you can test calls on a draft. When the Playground asks for it, choose **Prepare draft voice**. It can take a few minutes. If you change the draft again, prepare the voice again before the next call test.

## Publish the draft

1. Hover the pill and choose **Publish changes**.
2. Review the **Publish draft** dialog. It groups the changes by section (**Tasks**, **Stages**, **Fields**, **Tools**, **Prompts and settings**, **Inbound routing**) and counts what was added, changed and removed. Choose **View changes** to see each change line by line.
3. Choose **Publish**. Your leads start using the new version right away, and it becomes the next version in the history.

What the dialog can tell you:

| Message | What to do |
| - | - |
| **Fix these before publishing** | Something in the draft can't go live yet. For example, you removed a stage or a task that still has active leads. Move those leads first, or keep the stage, then publish. |
| **The published agent changed after this draft was created** | Someone changed the live agent directly while the draft was open. Publishing replaces those changes with the draft. Review them and choose **Publish anyway** only if that is what you want. |
| **The draft changed while you were reviewing it** | A teammate or Nexor AI edited the draft after you opened the dialog. Nothing was published. Review the changes again and publish. |
| **This draft has no changes yet** | There is nothing to publish. |

Publishing never turns an agent on. A paused agent stays paused with the new version. Tasks you created in the draft are published paused: turn them on when they are ready.

## Discard the draft

Open the version history next to the pill. On **Draft in progress**, choose **Discard**, then **Discard changes**. The draft is thrown away and the agent stays on the published version. Leads are not affected.

## Version history

Every publish creates a new version: v1, v2, v3 and so on. Open the history with the clock button next to the pill. Each row shows the version, the date and who published it. A check marks the version your leads are using now.

<Frame>
  <img src="https://mintcdn.com/nexor/btCyEHVDsamNZTjr/images/agent-drafts/versions-popover-es.png?fit=max&auto=format&n=btCyEHVDsamNZTjr&q=85&s=f51d7286e3d0da2277e2b5a8be9fda3b" alt="The version history open below the pill: a draft in progress with Discard, and version 1.0 marked as current. Shown in the Spanish interface." width="984" height="130" data-path="images/agent-drafts/versions-popover-es.png" />
</Frame>

Choose a row to open the full list, with the draft in progress and every published version. Discarded drafts are hidden; choose **Show discarded** to see them.

<Frame>
  <img src="https://mintcdn.com/nexor/btCyEHVDsamNZTjr/images/agent-drafts/versions-list-es.png?fit=max&auto=format&n=btCyEHVDsamNZTjr&q=85&s=62874cad9f28eceeb3f1b0d0cf97e55b" alt="The Versions panel with a draft in progress marked Not published and version 1 marked Current. Shown in the Spanish interface." width="768" height="240" data-path="images/agent-drafts/versions-list-es.png" />
</Frame>

Open a version to see its timeline: who created the draft, who edited which section and in which task, who tested it in the Playground, who reviewed it and who published it. If it was published over changes made to the live agent in the meantime, the timeline says so. Choose **View changes** to compare line by line: removed text in red, added text in green, unchanged lines collapsed.

<Frame>
  <img src="https://mintcdn.com/nexor/btCyEHVDsamNZTjr/images/agent-drafts/version-diff-es.png?fit=max&auto=format&n=btCyEHVDsamNZTjr&q=85&s=10bf0ef035de28162b8b5b8a93176e08" alt="A published version opened with its changes shown line by line: the removed instruction in red and the new one in green. Shown in the Spanish interface." width="750" height="432" data-path="images/agent-drafts/version-diff-es.png" />
</Frame>

## Go back to a previous version

1. Open the version history and choose **Restore** on the version you want. You can also pick it in the Playground's **Version** selector.
2. If a draft is already open, confirm **Replace draft**. Its unpublished changes are lost.
3. The version is loaded into the draft. Nothing changes for your leads yet.
4. Test it in the Playground, then publish it. That publish creates a new version with the old content.

Versions published before the full history was kept can't be restored. In that case, make the changes again by hand in the draft.

## What is not part of the draft

These changes apply right away, even when a draft is open:

* Turning a task on or off (**Set live** / **Pause**).
* Phone numbers, WhatsApp and iMessage lines, and other channel connections.
* Turning incoming call answering on or off, and call forwarding.
* CRM connections and CRM flows.
* Webhooks.
* Deleting the agent.

## With Nexor AI

When you ask Nexor AI to change a live agent, the change goes into the same draft as your own edits, and Nexor AI tells you so. It also offers a link to test the draft in the Playground.

* **Publishing:** Nexor AI writes a short summary of what will change for your leads and asks before publishing. It publishes only after you answer yes.
* **Versions:** ask it to list the agent's versions, compare them, discard the draft, or go back to a previous version. Going back follows the same steps: it loads the version into the draft, you test it, and Nexor AI asks before publishing.
* If someone changed the draft or the live agent while you were talking, Nexor AI explains what changed and asks again.

## Frequently asked questions

### Will my leads see my changes while I test?

No. Leads keep using the published version until you publish. Tests in the Playground use the draft, on every channel.

### Can two people edit at once?

Yes. The agent has one draft for the whole team, and every change lands in it. The version timeline shows who changed what.

### How do I go back to a previous version?

Open the version history, choose **Restore** on that version, test the draft and publish it. See [Go back to a previous version](#go-back-to-a-previous-version).

### I published by mistake. What now?

Restore the version that was current before and publish it. Your leads switch back as soon as you publish.

### Does publishing turn my agent on?

No. Publishing only changes the configuration. To start a paused task, use **Set live**.

### Why didn't my change open a draft?

Either the agent has no live task yet, so changes apply directly, or the change is one of the settings that are not part of the draft, such as turning a task on or connecting a number.

### Why do calls still sound like the old version?

Some voice agents take a few minutes to switch. The pill shows **Propagating…** until they do. A call already in progress keeps the version it started with.

## Next

<CardGroup cols={2}>
  <Card title="Test your agent" icon="flask-conical" href="/docs/en/guides/getting-started/test-in-playground">
    Talk to the draft as a lead on any channel before you publish.
  </Card>

  <Card title="Agent settings" icon="settings" href="/docs/en/guides/agents/settings">
    Every setting you can change in an agent and its tasks.
  </Card>
</CardGroup>


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