# Versions and publishing

> How agents and flows keep every version, when a change reaches your customers, and how to roll back.

Nothing you change is ever lost: agents and flows both keep their history. They differ in **when** a change reaches your customers.

| | Agents | Flows |
| --- | --- | --- |
| You edit | The agent itself. | A draft that saves as you go. |
| A version is made when | You press **Save changes**. | You press **Publish**. |
| Customers see the change | Right away, from the next reply. | Only once you publish. |
| Going back | **Restore** an older version: it is saved as a new one. | **Restore** into the draft, or **Make live** in one click. |

## Agent versions

Each save of an agent's configuration (instructions, guardrails, greeting, model, skills, tools, limits, website embed) creates a version, with an optional **Change note**. The **Versions** tab lists them with what changed, how each came to be (created, from a template, edited, restored) and how many conversations each one answered.



**Restore** brings an older configuration back as a **new** version, so the one you leave stays in the history too. Knowledge documents aren't part of versions: they change when you add or remove them.

## Flow drafts, versions and what's live

A flow has one **draft**, where you build, and any number of published **versions**. The draft saves itself a moment after each change (the toolbar says **Saved**). Customers only ever talk to the live version.

### Publishing

**Publish** first checks the draft: errors block publishing, warnings don't. The dialog shows what changes compared with the live version (steps added, edited or removed, connections, variables, triggers, settings) and takes an optional note for the history. **Show the changes on the canvas** marks the changes on the canvas.



- Conversations that start after publishing use the new version.
- Conversations already in the middle of the flow **finish on the version they started with**, so publishing never breaks a conversation halfway.

### History, restore and rollback

The history button in the toolbar opens **Version history**: every published version, who published it and when, with its note.



- **Compare** shows that version's differences from the draft on the canvas.
- **Restore** copies that version into the draft. What's live doesn't change until you publish, and **Undo** brings your previous draft back.
- **Make live** publishes that version again at once, as a new version: the quickest rollback.

### Pausing a flow

**Pause**, in the history panel, stops a live flow from answering its triggers and its channels. Conversations already in the flow continue. **Resume** turns it back on.
