How to connect PostHog to Knock
Learn how to use PostHog webhooks to trigger notifications and automate actions in Knock.
The PostHog source enables you to receive PostHog webhook events in Knock and map them to actions like triggering workflows and identifying users. Knock provides a pre-built integration with webhook verification and event-to-action mappings ready to use.
PostHog can send webhooks when actions are performed, feature flags are changed, or other events occur in your product analytics pipeline.
Prerequisites
#- A PostHog account with access to the project settings
- A Knock account with at least one workflow configured
Getting started
#Pre-configured events
#The PostHog source comes with mappings for common PostHog webhook event types. You can enable or disable each mapping independently.
Customization
#You can modify any of the pre-configured mappings or create new ones for additional PostHog event types. When customizing field mappings, use dot notation to reference nested fields in the PostHog webhook payload (e.g. data.person.properties.email).
For details on building custom event-action mappings and field mapping, see the custom webhooks documentation.