> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Best practices Canonical URL: https://posthog.com/docs/workflows/resources/best-practices ## On this page - [Sending](#sending) - [Automations](#automations) - [Staying tidy](#staying-tidy) - [Keep an eye on it](#keep-an-eye-on-it) What we've learned from teams sending with Workflows. ## Sending - **Start with transactional.** People expect it and open it, which builds a clean record for your domain. Add marketing once that's steady. - **Send to people who asked:** signups, customers, and opt-ins. Never a bought list. See [deliverability](https://posthog.com/docs/workflows/email/deliverability.md). - **Test on yourself first.** Send to your own inbox and a personal Gmail or Outlook account before anyone else gets it. - **Grow slowly.** Send a broadcast to your most active people first, then the rest. Check the **Reputation** tab between sends. - **Keep marketing and transactional apart.** Use a transactional category for emails people need, and a subdomain per stream once you send a lot. See [separate marketing from transactional](https://posthog.com/docs/workflows/email/deliverability.md#separate-marketing-from-transactional) and [marketing vs. transactional email](https://posthog.com/docs/workflows/concepts/marketing-vs-transactional.md). ## Automations - **One trigger, one job.** Two automations on the same event can send the same person two emails. Branch inside one automation instead. - **Keep it simple.** A few clear steps are easier to fix than a web of branches. - **Plan for missing data.** Add a `default` to every variable. On each step, set **Error handling** to continue to the next step or exit the workflow. - **Set a goal.** A [conversion goal](https://posthog.com/docs/workflows/automations/triggers.md#conversion-goal-and-exit) tells you whether it works, and can take people out once they convert. - **Watch for loops.** An automation that captures an event can trigger itself, or another automation that triggers it back. - **Use the trigger's frequency.** Use **One time per period** with **ever** for a welcome series, so nobody gets it twice. See [how often one person can enter](https://posthog.com/docs/workflows/automations/triggers.md#how-often-one-person-can-enter). ## Staying tidy - **Name things for what they do,** such as "Welcome series: new signups", not "Workflow 1". - **Write a description:** what starts it, what it does, and who owns it. - **Archive what's done.** An automation that's still on keeps sending, and each send costs money. - **Use categories.** One per kind of email, so people can leave your newsletter without leaving everything. See [message categories](https://posthog.com/docs/workflows/email/opt-outs.md#message-categories). ## Keep an eye on it - **Check metrics weekly:** sends, bounces, spam reports, and conversions for each broadcast and automation. See [metrics](https://posthog.com/docs/workflows/metrics.md). - **Turn on self-driving.** PostHog suggests a change when an email underperforms, such as a new subject line. See [self-driving](https://posthog.com/docs/workflows/self-driving.md). - **Read the logs** when something looks off. Every run shows each step it took. See [test and debug](https://posthog.com/docs/workflows/automations/debug.md).