Tool Guides 2 min read Updated Sep 23, 2026

Use PostHog with Sam

Connect PostHog and Sam can answer product questions from your real usage data: recent events, your saved insights and dashboards, cohorts, and which feature flags are on. The connection is read-only.

What Sam can look up in PostHog

  • Recent events, filtered by event name
  • Your saved insights and dashboards, with their results
  • People, cohorts and annotations
  • Your feature flags

What Sam can't do in PostHog yet

  • Turn feature flags on or off yet.
  • Create insights, dashboards or cohorts yet.

Connect PostHog

Step 1 - Create a personal API key in PostHog

  1. In PostHog, go to Settings > Personal API Keys and create a key.
  2. Find your project ID under Settings > Project.
  3. Note your host: us.posthog.com for PostHog Cloud US, or eu.posthog.com for EU Cloud.

Step 2 - Open the integrations marketplace

Select Connect your tools at the bottom of the left sidebar, above your profile. Search for PostHog or find it under Browse Integrations.

Step 3 - Paste it in and connect

Select PostHog, paste what you copied into the fields Sam shows, and select Connect. Once it succeeds, it moves to your Connected tab.

Leave every permission ticked

When you connect, you may see a screen of checkboxes, and some are easy to scroll past. Sam can only do what you allow. If you untick one, the matching actions in the list above will fail with a permission error.

If Sam says it can't reach PostHog later on, see When Sam can't reach one of your tools.

Frequently Asked Questions

Which host do I enter?
Use us.posthog.com if your PostHog is on US Cloud and eu.posthog.com if it's on EU Cloud. The address you log in at tells you which.

Can Sam build me a new funnel in PostHog?
Not yet. Sam can read and explain the insights you've saved, including funnels.

Was this helpful? Yes Not really

Still stuck? Tell us what you are trying to set up and a human will walk you through it.

Contact support