> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Automations Canonical URL: https://posthog.com/docs/workflows/automations > **Cloud region:** This page uses US Cloud hosts. For an EU Cloud project, use `https://eu.posthog.com` instead of `https://app.posthog.com` (app host for links). ## On this page - [Pick a trigger](#pick-a-trigger) - [Add steps](#add-steps) - [Ask about the session with Replay Vision](#ask-about-the-session-with-replay-vision) - [Test and go live](#test-and-go-live) - [After it's live](#after-its-live) - [Build it with your agent](#build-it-with-your-agent) An automation starts when someone does something, then waits, branches, and sends email or push notifications. It can also send a Slack message or call a webhook. Use it for onboarding, win-backs, trial reminders, and alerts to your team. Go to [**Workflows**](https://app.posthog.com/workflows) and click **New workflow**. Start from a template or a blank canvas, and add one step at a time. For a step-by-step example, see [build your first automation](https://posthog.com/docs/workflows/automations/first-automation.md). ![An automation on the canvas, with the list of steps you can add](https://res.cloudinary.com/dmukukwp6/image/upload/w_1600,c_limit,q_auto,f_auto/workflows_canvas_light_01e804a2f8.png) ## Pick a trigger The trigger decides who enters the automation, and when. - **Event:** someone does something in your product, such as `signed_up`. - **Batch:** run once or on a schedule, for everyone in an audience. - **Schedule:** run once or on a schedule, with no person, such as for an AI task or a report. - **Webhook:** your own system starts it with an HTTP request. - **Survey response:** someone answers a [survey](https://posthog.com/docs/surveys.md). - **Slack, GitHub, and support tickets:** a message, GitHub activity, or a ticket starts it. Under **Frequency**, pick how often one person can enter, such as every time the trigger fires or once a day. See [triggers](https://posthog.com/docs/workflows/automations/triggers.md). ![The trigger panel with an event trigger](https://res.cloudinary.com/dmukukwp6/image/upload/w_1600,c_limit,q_auto,f_auto/workflows_trigger_panel_light_0ddffbeded.png) ## Add steps | Group | Steps | | --- | --- | | **Dispatch** | Send an email, SMS, Slack message, webhook, or push notification. Write emails in the [email editor](https://posthog.com/docs/workflows/email-editor.md). | | **AI** | Start an AI task or have [Replay Vision](#ask-about-the-session-with-replay-vision) watch the person's session. | | **Delays** | Wait a set time, wait until something happens, or wait for a time window, such as weekdays 9 to 5. | | **Audience split** | Branch on event or person properties, or split people at random by percentage to test two versions. | | **PostHog actions** | Capture an event, update a person property, or set a workflow variable. | On the trigger, set an optional **Conversion goal**, such as `subscription_started`, to count how many people convert. You can also take people out of the automation once they convert. See [steps](https://posthog.com/docs/workflows/automations/steps.md). ## Ask about the session with Replay Vision The **Replay Vision** step reads the session recording behind the trigger event and answers a question about it, such as "did they get stuck setting up?". It can also score, categorize, or summarize the session. Branch on the answer in the next step, so you email only the people who struggled. ![An automation that scores a signup's first session with Replay Vision, then branches on the score](https://res.cloudinary.com/dmukukwp6/image/upload/w_1600,c_limit,q_auto,f_auto/rv_workflow_canvas_light_98fdaa1d85.png) See [Replay Vision](https://posthog.com/docs/workflows/automations/ai-steps.md#replay-vision) for the settings. ## Test and go live Test a step on a sample person before anyone gets an email. Your work saves as a draft, and nothing sends until you click **Enable**. After that, changes to the live automation save as a draft until you click **Publish**. See [test and debug](https://posthog.com/docs/workflows/automations/debug.md) and [edit a live automation](https://posthog.com/docs/workflows/automations/editing-live.md). To stop it, click **Disable**. Nobody new enters. People already in it stop at their next step, unless you enable the automation again before they reach it. ## After it's live The **Overview** tab shows how many people entered and converted, how far they got, and how each email and push step did. See [automation metrics](https://posthog.com/docs/workflows/metrics.md#automations). Turn on [self-driving](https://posthog.com/docs/workflows/self-driving.md), and PostHog suggests changes to the steps that underperform. You approve them. ## Build it with your agent Your agent builds the automation as a draft for you to check. Ask your agentwith the [PostHog MCP](https://posthog.com/docs/workflows/mcp.md)[building-workflows](https://posthog.com/docs/workflows/skills.md) “Build an automation that emails new signups who haven't come back after 2 days.” Copy To create and manage automations from your own code, see the [automations API reference](https://posthog.com/docs/api/workflows.md).