Skip to main content
PostHog logo Automate your healthcare workflows with PostHog integrations and Morf. PostHog is an open-source product analytics platform that helps you understand user behavior and build better products. The following PostHog events can be used to trigger a Morf workflow.

Setup your PostHog integration

Generate and connect PostHog API keys

  1. Follow PostHog’s documentation on generating API keys and personal access tokens in your PostHog project settings.
  2. 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.
  3. Select the PostHog API Key integration that corresponds to your Morf environment. Click Continue.
  4. Configure your API credentials, project settings, and click connect.

Create webhooks

  1. Create your workflow in Morf.
  2. 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/
  3. 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.
Webhooks must be created for each event type in each environment.