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
- In PostHog, go to Settings > Personal API Keys and create a key.
- Find your project ID under Settings > Project.
- 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.
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.