Publishing changes
Overview
Changes you make in the Router are saved as a draft first. Saving an application, channel, flow, state, state name or pipeline does not change how conversations are routed. The Router keeps routing by the live configuration until someone publishes the draft, and then every saved change goes live at once.
This lets you prepare a larger change, such as a new flow with its applications and pipelines, over several saves without customers seeing a half-finished setup. Everyone working on the account edits the same draft, so a publish takes all saved changes live, not only your own.
Conversations that start after a publish are routed by the new configuration. A conversation that is already running keeps the flow and state configuration it started with.
Saving a change
After a save, a Saved as draft notification tells you the change is not live yet. Its Review changes button opens the publish panel. When a save puts the configuration back to what is live, for example when you undo your only change, the notification says there is nothing to publish.
Lists show what is not live yet:
- Unpublished: the item was added and does not exist in the live configuration.
- Unpublished changes: the item exists and has saved changes that are not live yet.
The tags appear on the Flows, Applications, Channels, Pipelines and state name lists.
A deleted item stays live until you publish, and the delete dialog says so. Deleting a flow or channel that conversations are routed through only stops routing once the delete is published.
Publish
The Publish option in the side menu shows how many changes are waiting. Click it to open the Publish changes panel. It shows:
- when the configuration was last published and by whom, and who made the last edit. The last edit is highlighted when it is more than an hour old, as a reminder that saved changes are still waiting.
- the changes, grouped by applications, state names, flows, states, links and pipelines, each marked Added, Changed or Removed, with the settings that changed.
- Fix these before publishing: problems that block the publish, for example a state that uses a state name that no longer exists. Publish stays unavailable while there is one.
- Worth checking: things that likely need attention but do not block the publish, for example an application that no enabled flow routes to yet.
- Also happens on publish: changes the publish makes outside the Router. Connecting a WhatsApp, SMS, RCS, Facebook Messenger or Instagram channel switches its inbound messages on to the Router in the CM.com Channels app, and deleting one switches them off. Connecting or deleting an Email channel adds or removes the Router's inbound webhook for its domain. Installing the CXP signals preset for the account is listed here too.
Click Publish to take every change live. If setting up a channel fails, nothing is published and the panel names the channel; try again. If the draft or the live configuration changed while the panel was open, for example because a colleague saved or published at the same time, the publish is refused and the panel shows the latest changes to check again.
When there is nothing to publish, the panel says the draft matches the live release.
Discard changes
Discard changes in the publish panel removes every unpublished change and puts the configuration back to what is live. You confirm it in a dialog, and it cannot be undone. Added items are removed, and changed or deleted items are restored as they are live. An open flow or pipeline editor reloads and loses its unsaved edits; if the flow or pipeline you were editing only existed in the draft, you return to the overview.
Who can publish
Publishing needs the publish permission for the Router, which account admins have. Users who may edit the configuration but not publish it can save, discard and review changes in the same panel. Instead of the Publish button, the panel tells them an admin needs to publish the changes before they go live.
Enabling and disabling flows
Because publishing applies to the whole configuration, a flow is switched on and off with Enable and Disable. Enabling or disabling a flow is a saved change like any other: it goes live when you publish. See Flows.
Onboarding
Onboarding publishes the configuration it creates straight away when you have the publish permission, so the Router routes messages without a further step. Otherwise the created channels, applications and flow are saved as a draft for an admin to publish. See Onboarding.
Publishing through the API
The draft, the preview of what a publish changes, publishing, discarding and the list of earlier releases are also available through the Configuration API. See Publishing changes.