Ask questions of your PostHog data

Foundry syncs a PostHog project's people, groups and events, so product usage sits beside billing, CRM and support data in one ontology.

What Foundry reads from PostHog

One project's people and groups, and its events over the days you choose (30 by default, up to 365):

  • persons
  • person_distinct_ids
  • groups
  • events
  • daily_event_counts

Questions you can ask

  • “Which accounts were most active in the product last week?”
  • “Which paying customers have not used the product in 30 days?”
  • “How many people at each company used the product this month?”

From tables to a graph

How PostHog becomes part of your graph

People and groups become types, matched to your users and accounts on the IDs and emails they share, and each event links to the person who did it.

  1. Sync. Foundry keeps its copy of your data up to date, syncing more often on paid plans.
  2. Draft. The ontology agent drafts types, links and rules from your data and your goal. You review and edit it.
  3. Load. A load writes it into HelixDB, and every value keeps its source: a table row, or a quote in a document.
  4. Ask. The Analyst answers questions with the queries it ran and a source for every claim, and on Helix Cloud your agents can query it through the Helix MCP.

Setup

Connect PostHog

  1. In PostHog, open Settings, Personal API keys, and create a key with the Query and Project read scopes, limited to one project.
  2. In Foundry, open Data, click Add data and choose PostHog.
  3. Choose your region (US, EU or your own host), paste the phx_ key and, if the key sees several projects, the project ID.
  4. Choose how many days of events to read, test and connect.