Create emails with PostHog AI

PostHog AI creates email templates for your Workflows using natural language. Describe the email you want to send – including the audience, tone, and goal – and PostHog AI generates the content and layout.

How it works

PostHog AI generates the email content based on your description, structures the layout with headings, body text, and calls to action, includes personalization using user properties (like name, plan, or activity), and adapts the tone to match your description (e.g. "friendly," "urgent," "professional").

You can also provide a URL as inspiration – PostHog AI reads the page content and uses it to inform the email's messaging and structure.

Email types PostHog AI can create

TypeGoalExample prompt
WelcomeIntroduce new users to your product"Create a welcome email for new signups"
OnboardingGuide users through setup steps"Create an onboarding drip series for trial users"
Re-engagementBring back inactive users"Write an email for users who haven't logged in for 30 days"
Feature announcementPromote new features"Announce our new dashboard builder"
UpgradeConvert free users to paid"Write an upgrade email highlighting pro features"
Churn preventionRetain users showing churn signals"Email users whose usage dropped 50% this month"

Personalization with user properties

PostHog AI can include dynamic content based on person properties in your project. When you mention personalization in your prompt, PostHog AI adds the right template variables.

For example, "mention their plan name and how many insights they've created" generates personalized content like:

Hi {first_name}, you've created {insight_count} insights on your {plan_name} plan this month...

Try it

Select a prompt to try it out in the PostHog app:

Tips for better results

  • Describe the audience – "for trial users who haven't activated" gives PostHog AI context to write relevant content
  • Specify the goal – "to drive feature adoption" or "to reduce churn" helps PostHog AI choose the right messaging
  • Include personalization hints – "mention their plan name and usage" tells PostHog AI which user properties to include
  • Provide a reference – Sharing a URL or describing an existing email helps PostHog AI match the style and tone
  • Ask for a series – "Create a 3-email onboarding drip" generates multiple emails with a logical progression

Create templates with MCP

If you use an AI coding assistant like Cursor or Claude, you can create email templates directly from your editor using the PostHog MCP server.

Unlike the natural language approach above, MCP tools give your AI assistant direct control over the template's design structure. Templates are authored using the same design format as PostHog's visual editor, so you can:

  • Create templates programmatically from your IDE
  • Edit templates created by your assistant in the visual builder
  • Round-trip between AI authoring and manual editing

Example prompts:

  • "Create a welcome email template with a hero image, greeting with the user's name, and a CTA button"
  • "Update the onboarding template to include their company name in the subject"
  • "Show me the current welcome email template"

See the MCP use cases for more examples, or the tools reference for the full list of email template tools.

Get started

To start creating emails with PostHog AI, set up PostHog AI.

Community questions

Was this page useful?

Questions about this page? or post a community question.