> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Edit a live automation Canonical URL: https://posthog.com/docs/workflows/automations/editing-live ## On this page - [Draft and publish](#draft-and-publish) - [What happens to people already in it](#what-happens-to-people-already-in-it) - [Turn it off](#turn-it-off) 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](https://res.cloudinary.com/dmukukwp6/image/upload/w_1600,c_limit,q_auto,f_auto/automation_publish_light_c5d47d6cfd.png) 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](https://res.cloudinary.com/dmukukwp6/image/upload/w_1600,c_limit,q_auto,f_auto/automation_history_light_27e22b8c20.png) Ask your agentwith the [PostHog MCP](https://posthog.com/docs/workflows/mcp.md)[building-workflows](https://posthog.com/docs/workflows/skills.md) “Change the wait in our onboarding automation to 3 days, and publish it once I approve.” Copy ## 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 change | People waiting at that step | | --- | --- | | A delay, shorter | Move on within minutes if they've already waited long enough. | | A delay, longer | Keep waiting for the rest of the new time. | | A time window or **Wait until** condition | Are checked against the new one within minutes. | | An email's content | Get the new version when they reach it. | | Delete the step they're waiting in | Move 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](https://posthog.com/docs/workflows/automations/debug.md#stop-runs).