PostHog integration for AI agent quality

Your AI agent's traces, turned into what to fix.

Connect PostHog, and Aide reads the conversations your own AI agent has, judges whether each answer served the customer, and groups the failures into issues with what would fix them.

Can Aide find where an AI agent fails from its PostHog traces?

Yes. Connect a PostHog project, and Aide imports the traces your own AI agent already sends there, judges whether each answer served the customer, and groups the bad responses into issues with what would fix them and eval cases to test the fix.Updated
Everything between a trace and a fix
Judged answersQuality issuesWhat would fix itFailing toolsEval casesBad-response rate
Spend and tokensTool error rateOrganizationsLinear issuesPrivacy mode
Agent analytics from PostHog

From the traces in PostHog to a fix

Instead of reading traces one by one, your team gets a short list of what the agent keeps getting wrong, what would fix it and the tests that prove it.

Aide reads the conversation and judges whether your agent served the customer. A random share is judged, so the bad-response rate is an honest estimate, and so is every conversation with a tool error, an error or negative feedback.
Your agent's answer
Yes, SSO is included on the Team plan. Open Settings > Security to turn it on.
Aide's judgement
Bad response. The customer asked whether their Team plan includes SSO, and nothing in the conversation supports the answer.
In the random sample · Counted in the bad-response rate

Bad responses that share a goal and a cause become one issue, with the conversations it touched, the share that failed and what they cost. Issues are rebuilt every week, and new conversations join them daily.
Quality issue
Says SSO is on the Team plan
Impact
18 bad responses in 7 days, across 15 conversations from 6 organizations.
Grouped by goal and cause · Counts, failure share and cost

Each issue says what would fix it: a tool to add and its inputs, a tool that keeps failing and its most common errors, or what the agent needed to know.
Quality issue
Says SSO is on the Team plan
What would fix it
What the agent needed to know: which plans include SSO.
Drawn from the 15 conversations behind the issue

Every tool your agent called, with its calls, errors, error rate and most common errors, linked to the conversations that called it.
Tool
get_subscription
Tools that fail most
412 calls · 37 errors · 9% error rate. Most common error: workspace not found.
Linked to the conversations that called it

Aide can't replay your agent, so it drafts the tests for you to run. Add an issue to evals and download its cases as JSON or CSV, with personal details removed.
Eval case
A customer on the Team plan asks whether they can turn on SSO.
Must and must not
Must say which plans include SSO and how to upgrade. Must not say the Team plan includes SSO.
Personal details removed · JSON or CSV
In PostHog and in Aide

Your agent keeps sending to PostHog. Aide reads it.

Nothing changes in your agent's code or in PostHog, and the reports sit in the same Quality pages as Aide's own agents.

Read-only access

Aide asks only to read queries, projects and AI observability data, and never writes to PostHog.

Nothing new to send

Aide reads the traces, generations, spans and feedback your agent already sends to PostHog.

Every 15 minutes

New conversations arrive every 15 minutes, and the first import goes back 30 days.

Conversations, not pipeline calls

A lone model call in a pipeline, such as a classification, is counted apart, never judged and never billed.

By your customers' organization

When your events name a PostHog group, each conversation shows its organization, and your own test organizations can be hidden.

Privacy mode, too

Traces sent without message content still report tools, errors, tokens and spend.
With Linear

File it in Linear. Linear resolves it.

An owner or admin files a quality issue in Linear with its impact, example conversations and what would fix it. Completing the Linear issue resolves the quality issue, and canceling it dismisses it.

If bad responses come back after it was resolved, Aide reopens the quality issue and comments on the Linear issue. Filing on its own is off by default: switch it on, and Aide files each new quality issue that reaches the number of bad responses you set.

Quality issue
Says SSO is on the Team plan. 18 bad responses in 7 days, across 15 conversations.
Linear issue
AGT-31 · Says SSO is on the Team plan. Filed with its impact, example conversations and what would fix it.
AGT-31 completed in Linear · Quality issue resolved
How to connect

Connect your PostHog project

Each connection reads one PostHog project, in the US or EU cloud. The setup guide covers every option.

Connect from Aide

An owner or admin opens Integrations > PostHog in Aide and selects Connect PostHog.

Approve in PostHog

Sign in to PostHog, approve Aide and choose the project that holds your agent's traces. A personal API key works too.

Pick your agent

Open AI Agent > Quality and pick your agent under From PostHog to see its reports.

Frequently asked questions

Aide is the AI-first customer service platform. Its self-improving AI agents resolve customer conversations and take action across orders, accounts and customer records, inside Zendesk, Gorgias or Front, or on their own with Aide Helpdesk and Aide Chat. They learn from your team's replies every night, and your team controls how far they go.

Any AI agent your team built that sends its traces to PostHog, whatever model or framework it runs on.

Conversation text for 90 days, and counts, issues and eval cases for longer. Your agent's system prompt is never stored.

Each conversation Aide judges counts once against your plan's AI replies, and a daily limit per connection keeps the cost bounded. Every plan includes it: plans start at $39 a month, and every plan starts with a 7-day free trial.

No. Linear is only for filing quality issues as Linear issues and letting Linear resolve them.

Find what your AI agent keeps getting wrong

Start a trial, connect PostHog, and see the issues your agent hits most.

Not ready yet? Get product updates by email