> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polymet.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# PostHog connector

> Let the agent read your PostHog insights, dashboards, feature flags and error tracking while it generates.

The PostHog connector lets the agent read your product analytics. Use it to build on real numbers, or to wire your feature flags into what it generates.

![PostHog in the Agent connectors window, with the Connect button, the Agent access switch and the access Polymet asks for](https://mintcdn.com/polymet/TfIzLh80_L4bW9xQ/images/docs/connectors/posthog-card.png?fit=max\&auto=format\&n=TfIzLh80_L4bW9xQ\&q=85\&s=ff891eb6d0b96656699da2026274b1b1)

## What the agent can do

* Read your insights and dashboards, and run read-only queries
* Read your feature flags
* Read error tracking

It cannot change anything in PostHog. Polymet asks for read access only.

## Before you connect

The connector works with PostHog's US cloud. Accounts on PostHog's EU cloud cannot connect yet.

## Connect

1. Click **Agent connectors** in the generation input.
2. Find **PostHog** and click **Connect**.
3. Sign in to PostHog in the popup and approve the access.

## Try it

```text theme={null}
Read our "Activation" dashboard in PostHog and build an internal metrics
page with the same charts.
```

```text theme={null}
List our PostHog feature flags and add a settings screen where each one
is shown with its rollout percentage.
```

## Related

* [Agent connectors](https://docs.polymet.ai/connectors/agent-connectors.md) — approving calls, accept-all, turning a connector off, disconnecting


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.