Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt

Use this file to discover all available pages before exploring further.

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 Data pipelines (under the Tools section in the sidebar).
    • Click New destination.
    • Select HTTP Webhook and click Create.
    • Paste the webhook URL you copied from Morf into the Webhook URL field.
    • Click Create and enable.
Webhooks must be created for each event type in each environment.