What happens when you publish
Until your first publish, nothing is split: prod is the draft, so every save goes live. Your first publish takes a numbered snapshot and points prod at it. From then on a save, in the portal or over the API, only changes the draft. Publish again and prod moves to the new number. Inbound calls, share links and embeds always run prod. Outbound calls, web sessions and campaigns run prod too, unless you pick another version. I recommend publishing once before you put the assistant on a campaign or a share link. After that, your edits stay off real calls until you decide otherwise.Try the draft before anyone else hears it
In the portal, Test in Browser and Test by Phone run the draft. Unsaved edits are saved first. Over the API, passassistantVersion: "draft" on a call or a web session. The session and every call webhook carry assistantAlias, which reads draft on a test call — see session details.
Publish it
In the portal, open the ⋯ menu, click Publish Agent, and write a short release summary. Version History shows the versions you published before. Publish takes the last saved draft. Over the API, publish withversion: "draft" and an optional message:
Go back to an older version
Publish an older number, for example"version": 11. Prod moves back and the draft stays as it is. Rollback is API only for now.
Hold a call on one version
PassassistantVersion: 12 on a call, or set config.assistantVersion on a campaign, and it’s pinned: it stays on that version while prod moves on.
Campaigns follow prod by default, so a publish reaches them on their next dial — see campaigns.
The edge cases we already handle
- A prod or pinned call keeps the version it started on. Prompt, tools and scorecard all come from that version. Publishing mid-call changes nothing on that call. Campaign calls grade with the campaign’s own scorecard.
- Public and private follow the published version. Once you’ve published, turning a share link public or private needs a publish. Before the first publish a save is enough.
- A fresh publish can take a moment to reach every region. A launch on prod may return a 503 in that window, so retry. Campaigns wait it out on their own.
Tech details for techies
- Get the assistant returns the draft. Add
?version=prodor a number to read a published one. - The versions list and the publish state show where draft and prod point.
- A publish 409 means the assistant was changing, so retry. A 404 means a number that was never published.
- A rollback’s message isn’t stored.
?assistantAlias=drafton the sessions list finds your test calls.
