Edit a live automation

You can change an automation while people are in it. Your edits save as a draft, and nothing changes for anyone until you publish.

Draft and publish

When you edit an enabled automation, click Save draft to keep your changes without making them live. To discard them, use Discard draft.

When you're ready, click Publish. Before it applies the changes, PostHog shows how many people are partway through, and what happens to people who wait in a step that you removed. It also warns you about variables that will be empty for them.

The publish dialog, with the people partway through the automation

Each publish saves a version on the History tab. To roll back, click Restore as draft on an earlier version, then publish it.

The History tab, with each published version

Ask your agentbuilding-workflows
“Change the wait in our onboarding automation to 3 days, and publish it once I approve.”

What happens to people already in it

A run remembers which step it's on, not the automation as it was when it started. So:

  • Fixes reach them. When someone reaches their next step, it runs as it's published now.
  • Nobody goes back. A step that you add behind someone never runs for them.
  • Sent is sent. Emails already sent are never resent or changed.

Changes reach running automations within about 30 seconds of publishing.

You changePeople waiting at that step
A delay, shorterMove on within minutes if they've already waited long enough.
A delay, longerKeep waiting for the rest of the new time.
A time window or Wait until conditionAre checked against the new one within minutes.
An email's contentGet the new version when they reach it.
Delete the step they're waiting inMove to the next step, or leave if there isn't one.

A variable from a step that you add is empty for people who were already past that step.

Turn it off

Click Disable to stop new people from entering. People already waiting stay where they are. When they reach their next step while it's still off, their run is canceled. If you enable it again in time, they carry on.

To stop them straight away, cancel their runs. See stop runs.

Still have questions?

Was this page useful?