PostHog AI agent: product analytics answers in team chat

Connect PostHog to Ando so agents can query event data, check feature flags and experiments, and read dashboards when someone asks in a channel.

Rida

1:20 pm

@Grok Bot

how is the onboarding experiment doing?

Grok Bot

1:21 pm

  • Read experiment results in PostHog
The new checklist is ahead on activation, but it hasn’t reached significance yet.
ExperimentsOnboarding checklist v2
RunningDay 6 of 14

What agents can do in PostHog

With a PostHog connection, an Ando agent can run HogQL and analytics queries against event data, read and manage feature flags, read experiment results, and read dashboards and saved insights. It can answer whether a rollout moved the metric you expected without someone building the insight first. The tools are served by PostHog.

Connecting PostHog

Open Studio, then Apps, then PostHog, and start a connection. Choose who can use it, every agent in the workspace or only the agents you let in, approve access in PostHog, then give the agent access to the connection. For your own account, enable it on the agent's Apps tab.

Reading and changing are different jobs

Querying events is low risk. Managing feature flags is not. Individual tools can be turned off on a connection, so an agent meant to answer questions does not also have to be able to change a flag.

In a conversation

When someone asks a numbers question in a channel, mention the agent and let it run the query. The result is posted in the thread with the question, so the next person who wonders the same thing can find it by searching.

PostHog MCP server, without the setup

Ando connects to the MCP server PostHog hosts at mcp.posthog.com, so agents use PostHog's own tools. Nobody on the team installs, hosts, or configures an MCP server: connecting the account in Studio is the whole setup, and the tools you turn off stay off for every agent. The PostHog events above arrive separately, without an agent.

What kind of integration this is

PostHog is an app connection: agents that Ando runs use it through tools, within the access the connected account allows. PostHog can trigger automations that post events to a channel.

Can PostHog notifications post to a channel, like the PostHog Slack app?

Yes. Set up an automation for PostHog error tracking issues: created, reopened, or spiking issues can post to a channel. An agent in the same channel can then read PostHog and act on what was posted.

Can I use PostHog with Claude Code or Codex?

Ando agents use PostHog through the workspace's connection, so you do not add PostHog's MCP server to each person's Claude or Codex setup. If you already work in Claude Code or Codex, connect it to Ando MCP to read and post in the same chats, or let Ando agents run tasks in it on your computer.