P
Monitoring / Observability / Incident

PostHog AI Integration

Connect PostHog to BeforeQuery for grounded AI answers and agent actions across Monitoring / Observability / Incident.

What is it?

About PostHog

PostHog is one of the Monitoring / Observability / Incident platforms BeforeQuery connects to. Once linked, the platform's data becomes a first-class source for grounded AI answers and a target for policy-gated agent actions — the same identity, approval, and audit-log guarantees every other integration ships with.

Setup

How to connect PostHog

  1. Step 01

    In the BeforeQuery dashboard, go to Integrations → Monitoring / Observability / Incident and select PostHog.

  2. Step 02

    Sign in to PostHog with an account that has permissions to grant BeforeQuery the Monitoring / Observability / Incident scopes required.

  3. Step 03

    Confirm the connection. PostHog is now available as a source and action target for every playbook in your workspace.

How BeforeQuery uses PostHog

What the agent does with your PostHog connection

  • 01

    Read metrics, alerts, and incident state from PostHog to power incident-response playbooks.

  • 02

    Trigger playbooks on PostHog alerts — auto-create Jira tickets, page on-call, coordinate war-room channels.

  • 03

    Draft incident-status updates for stakeholders, grounded in the specific PostHog data driving the incident.

  • 04

    Answer "is X system healthy?" questions with live data straight from PostHog.

Use cases

What teams actually do with the PostHog integration

Auto-declared incident workflow

PostHog alert fires above sev-2 → BeforeQuery declares an incident, opens a Slack war-room, pages the correct on-call rotation, and starts a running timeline in the incident record. Zero manual coordination overhead.

Stakeholder status updates

During an ongoing incident, BeforeQuery drafts an every-15-minutes status update for the customer-facing channel, grounded in the latest PostHog data + engineer chat context. Comms lead approves; message goes out.

Retrospective draft from PostHog timeline

Post-incident, BeforeQuery reconstructs the timeline from PostHog events, Slack messages, and deploy logs. Draft retrospective has the timeline, contributing factors, and next steps ready for the retro meeting.

Answer questions grounded in PostHog

Employees and customers ask PostHog-related questions in Slack, Teams, or the widget — BeforeQuery answers with the exact PostHog record shown alongside the response. No context switching, no "log into Monitoring / Observability / Incident to check" round-trips.

PostHog — Frequently Asked Questions

Common questions about connecting BeforeQuery to PostHog.

Yes — both are writeable via approved playbooks. Acking is typically autopilot (playbook confirms the alert was received + triaged); resolving typically requires operator sign-off since it clears the on-call queue.
Standard OAuth 2.0 where PostHog supports it, otherwise API-key or bearer-token auth. Credentials are stored encrypted at rest (AES-256-GCM) per workspace, never shared across customers, and rotated on request. The connection is scoped to the least-privilege set of scopes each playbook needs — you approve the scope list on install.
No. Your PostHog data feeds only your workspace's own agents and answers. Nothing is used to train a shared model, and nothing crosses workspace boundaries. Bring-your-own-model is available on Enterprise if you want to pin inference to your own OpenAI / Anthropic / self-hosted deployment.
Yes. Every PostHog integration is scoped at install time — you pick which resources, users, or record types are visible. You can further restrict per-playbook: a single playbook only touches the specific PostHog objects it needs. Scope changes take effect on the next sync.
Every write is logged with the acting user, the playbook that fired it, the exact operation, the target entity IDs, and the timestamp — all in the immutable audit log. Writes are rehearsable in simulation mode against a copy of live data before they touch PostHog for real.

Ready to connect PostHog?

Start free. No credit card required. Connect your first integration in under 5 minutes.