PostHog source
Receive PostHog webhook events in Knock to trigger workflows and automate actions based on product analytics events.
The PostHog source enables you to receive PostHog webhook events directly in Knock. PostHog sends webhook callbacks when actions fire in your product analytics, such as a user completing a key funnel step, a feature flag change, or a custom event you define. Knock verifies each payload, identifies the event type, and executes the actions you configure.
This integration is useful for building notifications triggered by product behavior: reaching out to users who complete onboarding milestones, alerting your team when a feature flag is changed, or triggering re-engagement workflows based on usage patterns.
Prerequisites
#- A Knock account with at least one environment configured.
- A PostHog project with access to the Webhooks settings in the PostHog app.
Getting started
#Once configured, PostHog sends webhook events to Knock when the specified actions or events fire. You can verify that events are arriving by checking the event logs on the source environment page.
Pre-configured events
#PostHog webhook events are driven by the actions and events you configure in your PostHog project. Common scenarios include:
The exact event types depend on how you configure your PostHog actions and webhook destinations. See the PostHog webhooks documentation for more details on available triggers and payload formats.
Customization
#You can modify the default action mappings or add new ones for any event type Knock receives from PostHog. For details on how field mapping works with dot-notation paths, see the HTTP source page.
If you need to map PostHog events to actions beyond triggering workflows, see the full list of available actions in the sources overview.