Drafts and published flows

Learn why every automation keeps two copies of its flow, and what changes when you publish.

An automation that's doing real work can't be edited in place. You'd break live runs halfway through, and a half-finished change would go out to customers. So every automation keeps two copies of its flow: the draft you edit and the published flow that actually runs. Knowing which one you're looking at explains most of what the app does when you press a button.

The draft is what you edit

The Builder tab always shows the draft. Adding a step, changing a field, moving things around: all of it stays in the draft, and none of it reaches a single run. The draft saves itself as you work, so there's no Save button for the flow as a whole. A step's own inspector has a Save button, which writes that step's settings into the draft.

Because nothing in the draft is live, you can leave it half-finished for days, no problem. The published flow keeps running as it was.

The Builder tab with the Publish button and the Production and Versions tabs

Publishing copies the draft over

Publish checks the draft and, if it passes, makes it the live flow. The check covers three things: there's a trigger, every required field is filled, and the shape of the flow is valid (see How a flow is shaped). If some steps were never tested, the app asks you to confirm before going ahead.

The Production tab shows what's live right now, read-only. It's the honest answer to "what is actually running", which the Builder can't give you while you have unsaved ideas in the draft.

The Production tab showing the live flow

Note: A run keeps the flow it started with. If you publish while a run is in the middle of a Wait step, that run finishes on the old flow, and only runs starting after the publish use the new one.

Every publish is kept

Each publish is stored as a version on the Versions tab, with the date it went live and the Current pill on the one that's running. If a change turns out badly, don't panic: restore an earlier version into the draft and publish again. See Go back to an earlier version.

The Versions tab with the current version

Published is not the same as on

Two separate things decide whether work actually happens:

StateSet byMeaning
Published or notPublishWhether there is a live flow at all. An automation with no published flow never runs, whatever its trigger.
Active or disabledMore > Disable automationWhether the live flow is allowed to start runs. A disabled automation turns incoming calls away.

So an automation can be Active and still do nothing, because nothing has been published yet 💡 See Rename, move or turn off an automation.