Edit the draft
Prompt, voice, and conversation settings, all autosaved.
Test before publishing
Preview calls talk to the draft, not the live version.
Automate via API
Manage drafts, publishing, and version history programmatically.
Draft vs. published
An agent that has never been published cannot take production sessions:
session creation returns
409 until the first publish.Publish the draft
- Console
- API
1
Edit: changes autosave
Every change is written to the draft automatically; the Saving… / Draft
saved indicator in the top bar shows the current state.
2
Watch the unpublished-changes indicator
When the draft differs from the live version, the Publish button becomes
active with an unpublished-changes hint next to it. When there is nothing
new to publish, the button is disabled. An agent that has never been
published always counts as having changes.
3
Publish
Click Publish. Any pending edits are saved first, then the draft is
snapshotted as the next version. A confirmation shows the new version
number, and the agent shows as Live in your agents list.
Version history
List published versions, or fetch the complete configuration snapshot of any one of them, including the version currently serving production:List versions
Get one version's snapshot
The live version is not always the highest
version_number: after a rollback an older version is live. Check is_live to see which version is serving production.
Fetching a single version returns the full configuration as it was published. Because GET .../config always shows the draft, the snapshot endpoint is how you read back what is actually running in production.
Edit a version title and description
The title and description of a published version can be changed at any time, including on the version that is live. Only the labels change: the frozen configuration and itsconfig_hash stay as they were.
Change a version's labels
- A string sets the label.
- An explicit
nullclears it. - An omitted field keeps its current value, so
{}changes nothing.
Roll back the live version
A rollback switches the live version to any published version, older or newer than the current one. It changes only which version is live: no version is created, and your draft keeps its current content, including edits you have not published. New sessions and incoming calls use the target version at once; sessions already in progress keep the version they started on.Switch the live version to version 1
The response describes the switch:
Response
GET .../versions/{version_number}.
When the target is already the live version, the call changes nothing and returns changed: false. No deployment record is written either.
The draft is not touched, so it can differ from the version that is now live. Compare the config_hash from Get Draft Config with the live version’s to see whether it does. If the draft still carries the change that caused the problem, fix it before you publish again.
Switch only if nobody else has
Read the live version from the version list and pass its number asexpected_live_version. If someone has published or rolled back in the meantime, the call fails with 409 and reason: "live_changed", returns the version that is live now, and writes nothing.
409 live_changed
When the target version needs something that is gone
A version is a frozen snapshot, so a rollback runs it exactly as it was published. If that snapshot points at a resource that no longer exists, the call fails with409 and reason: "missing_references", and the live version stays as it is. missing lists what could not be found:
409 missing_references
409.
Rolling back from the console’s version history works the same way: it moves the live version without creating a version or changing the draft.
Publishing after a rollback
Publishing always starts from the draft. After a rollback the draft usually differs from the live version, so the next publish creates a new version with the next number and makes it live. Edit the draft first if it still contains the change you rolled back from. If the draft happens to match the live version, nothing is created and the response hascreated: false.
Example: switch back, then forward again
Version 2 added a booking tool, but your backend is not ready for it and the tool returns404 on live calls. Version 1 is fine.
1
Find the live version
List the versions and look for
is_live. Here it is version 2.2
Switch back to version 1
Call the rollback endpoint with
expected_live_version: 2 and a reason
as above. The response has changed: true. New calls use version 1. Your
draft still has the booking tool, so you can keep working on it.3
Fix the problem
Fix the backend, or change the configuration in the draft and test it with
a preview call.
4
Go forward again
If the fix was in the backend, switch to version 2 with the same call,
now against version 2. No new version is created.If you fixed it by changing the configuration instead,
publish the draft: that creates version 3 and makes
it live.
Switch the live version back to version 2
GET .../versions/{version_number} and PATCH just those sections into the draft config. That updates the draft without publishing: preview it, then publish. Because snapshots never echo secrets, credential fields keep their current draft values unless you set them again.
Deployment history
Every change of the live version is recorded: each publish that creates a version, and each rollback that moves the live version. A publish that finds nothing new and a rollback to the version that is already live are not recorded. Read the history to see what was live when, and who or what moved it:List deployments
Response
Page through the list with
page_size (1 to 100, default 30) and either cursor (the next_cursor of the previous page) or page (starting at 1). The two are mutually exclusive and sending both returns 400. The response also has has_more; total is included in page mode, or when you send include_total=true.
Clone an agent
Cloning creates a new agent from an existing one’s draft configuration. In the console, open the agents list and choose Clone from the agent’s row menu. Over the API, send aPOST. The body is optional; send name to name the copy:
Clone an agent
201. It keeps the source’s description; only the name differs.
Without a
name, or with no body or {}, the copy is named <source name> copy. If the source name is too long to fit, it is cut first so the copy’s name stays within 120 characters and still ends in copy. If that would give exactly the source’s own name (a 120-character name that already ends in copy), the copy ends in copy 2 instead, so a copy never has the same name as its source. Any field other than name, or a name outside 1 to 120 characters, returns 422 and creates nothing. Rename the copy later with Update Agent.
The clone is created in the same workspace as the source, so the workspace-level tools, knowledge sources, and connections it references stay valid. An archived agent cannot be cloned and returns
404.
The new agent is unpublished: its publication_state is draft, and it cannot take production sessions until you publish it. Use clones to template a base configuration across many agents, or to experiment without risking an agent that is already live.
Going further
Agent configuration
Everything that lives in the draft: prompt, voice, conversation settings.
Preview calls
Talk to the draft before it ships.
Agent tests
Run regression tests against the draft, then publish with confidence.
Integration overview
Connect published agents to your product via SDK and API.

