> For a complete page index, fetch https://docs.synthflow.ai/llms.txt. For full documentation content, fetch https://docs.synthflow.ai/llms-full.txt.

# Version Control

> Learn how to publish, compare, and restore versions of your Synthflow agents.

![Version History panel listing four agent versions, with V4 (ElevenLabs v3) marked as Published and V3, V2, and V1 marked as Archive](https://storage.googleapis.com/granular-changelog/doc-images/version_control_1.png)

Every time you publish an agent, Synthflow saves a new version. From the version history you can compare any two versions, restore an earlier one when a change goes wrong, export any version to JSON, and delete versions you no longer need. It works the same way for Prompt Builder and [Flow Designer](/flow-designer) agents.

> **Note**
>
> Changes made in the Synthflow UI, through the REST API, through the [MCP server](/mcp-server), or by [Aurora](/aurora) are saved to a draft and versioned. [Actions](/actions-overview) are not included in version history.

## Publish a new version

Changes you make to an agent are saved to a draft version automatically, and the draft stays unpublished until you publish it. To make it live, select the purple **Publish** button in the [agent editor](/the-agent-editor). Before you confirm, Synthflow shows what the draft adds and removes compared with the live version. New calls then route to the latest published version, while calls already in progress finish on the version they started with.

### Publishing a Flow Designer agent

![Flow Designer publish button and issue checklist](https://storage.googleapis.com/granular-changelog/doc-images/flow_designer_publish.png)

[Flow Designer](/flow-designer) agents can only be published once every item in the **issue checklist** is resolved: missing required nodes, invalid connections, variables that are referenced but never collected, and node configuration errors. Select **Publish** in the Flow Designer and confirm. Sub-agents in a [Multi-Agent System](/multi-agent-system) are published together with the main flow.

## Draft changes

![Changes panel next to the agent editor, opened from the Draft · 1 change tag, showing a one-line prompt edit](https://storage.googleapis.com/granular-changelog/doc-images/changelog_changes_drawer.png)

While a draft exists, the version tag in the agent editor header reads **Draft · N changes**, or **Draft** with no count when the draft has no changes yet. Select it to open the **Changes** panel, which lists what the draft changes compared with the published version, in the same layout as [Compare changes](#compare-changes). Select a setting's name to open its section in [Global Settings](/the-agent-editor#global-settings). The panel closes when the draft is published or discarded.

## Manage previous versions

Select **Versions** in the agent editor header to open the version history. It lists every version, with the live one marked **Published** and older ones marked **Archive**. Open the menu next to any version to restore it, compare it with another version, export it, or delete it.

## Restore this version

![Revert Version menu offering Revert, which loads the version into the draft, and Revert and publish, which makes it live as a new version](https://storage.googleapis.com/granular-changelog/doc-images/changelog_revert.png)

**Restore this version** opens **Revert version**, which shows how that version differs from your current draft. Select **Revert Version** and choose how to apply it:

* **Revert** loads the version into your draft. Nothing goes live and no new version is created until you [publish](#publish-a-new-version), so you can test the draft or keep part of the newer configuration first.
* **Revert and publish** loads the version and publishes it right away. Restoring V2 this way creates a new version named `Rolled back to version 2`.

If the version matches the live one, **Revert** clears the draft and **Revert and publish** creates no new version.

> **Warning**
>
> Reverting replaces your current draft. Any unpublished edits are lost.

## Compare changes

![Compare changes dialog comparing V2 with the live V4, showing a one-line prompt edit with the removed text in red and the added text in green](https://storage.googleapis.com/granular-changelog/doc-images/changelog_versioning_compare_changes.png)

**Compare changes** shows what changed between any two versions, including the draft. Pick them in **From** and **To**.

Changes are grouped by the settings section they belong to, such as **Voice** or **Call Configuration**, with each field's old and new value. Prompt and greeting changes come first and show line by line. Fields without a section are listed under **Technical settings**.

## Export to JSON

**Export to JSON** downloads that version's configuration as a `.json` file. Use [Import from JSON](/create-an-agent#import-from-json) to create a new agent from it, in the same workspace or another one.

> **Warning**
>
> Exports do not include actions or knowledge bases. Re-add them to the new agent after importing.

## Delete version

**Delete Version** removes the version from the version history. You cannot delete the published version.

> **Warning**
>
> Deleting a version is permanent. A deleted version cannot be restored, viewed, or exported.

## FAQ

#### Are changes made through the API versioned?

Yes. Updating an agent through the REST API saves the changes to a draft, the same as editing in the UI. The REST API can list versions with [List agent versions](/api-reference/platform-api/agents/list-agent-versions). To compare, publish, or restore versions outside the UI, use the [MCP server](/mcp-server). Restoring a version through the MCP server publishes it right away.

#### Are actions versioned?

No. Changes to actions do not appear in version history.

#### What happens to active calls when I publish?

They finish on the version that was live when they started. Only new calls use the newly published version.

#### Do I need to publish sub-agents separately?

No. Sub-agents in a Flow Designer agent are published together with the main flow.