Capture a PostHog event for each new conversation

A new customer email shows up in PostHog, next to what they did in the product.

Fernand fills in ${contact_name}, ${subject}, and ${url} when this runs.

When the next email arrives

support_conversation_created shows up next to the product events for that person, if the distinct id matches how you identify them in PostHog. The template uses the contact name Fernand has. Swap distinct_id for the email if that is your id.

The project key lives in the JSON body, which is how the capture endpoint works. EU projects should change the host to https://eu.i.posthog.com/capture/.

How to add this rule

  1. Paste your project API key into the JSON. Use the EU host if the project is in the EU.
  2. Set distinct_id to the same identifier you use in the product.
  3. Create a conversation and find the event in PostHog before you build a dashboard on it.

While you set this up

The whole library

Also in Webhook