How it works
An agent has two versions:- the published one, which every call uses: inbound calls, campaigns, the widget, calls from the API and from forms,
- the draft: what you saved in the editor and nobody has published yet.
Testing the draft
A test call from the editor (Test → browser call, phone call or chat) uses the draft. So you can try a change on yourself before a customer hears it. Without a draft the test uses the published version.Discarding the draft
Click the arrow in the Draft marker and confirm Discard draft. Changes nobody has published are lost, and the editor goes back to the published version.What the draft covers
Settings that change outside the editor, for example when you connect an
integration, go to the published version straight away. Publishing does not
undo them: it only changes the settings you changed in the draft.
Publish checks the draft again, as saving does. If the flow has errors or
a transfer to a person has no number, the panel refuses to publish and says
why.
API
PUT /api/v1/agents/{agent_id} without parameters changes the published
version at once, as before. With ?draft=true it saves into the draft, as
the editor does. POST /api/v1/agents/{agent_id}/publish publishes the draft,
DELETE /api/v1/agents/{agent_id}/draft discards it. GET /api/v1/agents/{agent_id} returns has_draft, draft_saved_at and
draft_changes.