Setup your PostHog integration
Generate and connect PostHog API keys
- Follow PostHog’s documentation on generating API keys and personal access tokens in your PostHog project settings.
- To connect your API credentials to Morf, navigate to the integrations page of your Morf admin dashboard. Click the + Integration button in the top right corner.
- Select the PostHog API Key integration that corresponds to your Morf environment. Click Continue.
- Configure your API credentials, project settings, and click connect.
Create webhooks
- Create your workflow in Morf.
- In the workflow viewer, click on the trigger node and navigate to the Connect tab. Copy the Morf webhook URL. This will start with
https://api.morf.healthcare/webhooks/ - Configure webhooks in your PostHog environment:
- Navigate to your PostHog project settings and find the Webhooks section
- Enter the Morf webhook URL as the destination URL
- Select the event type that triggers your workflow. If more than one event type triggers your workflow, create a webhook for each event type.
- Enable the webhook to start receiving events.
