Automations

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 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.

An automation on the canvas, with the list of steps you can add

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.
  • 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.

The trigger panel with an event trigger

Add steps

GroupSteps
DispatchSend an email, SMS, Slack message, webhook, or push notification. Write emails in the email editor.
AIStart an AI task or have Replay Vision watch the person's session.
DelaysWait a set time, wait until something happens, or wait for a time window, such as weekdays 9 to 5.
Audience splitBranch on event or person properties, or split people at random by percentage to test two versions.
PostHog actionsCapture 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.

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

See 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 and edit a live automation.

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.

Turn on self-driving, 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 agentbuilding-workflows
“Build an automation that emails new signups who haven't come back after 2 days.”

To create and manage automations from your own code, see the automations API reference.

Still have questions?

Was this page useful?