Analytics & Data
Connect PostHog to Your AI Agents
Let your Wkil agents track events, manage feature flags, and run surveys through PostHog.
Authentication: API key
What you can do
- Track custom analytics events and trends
- Manage feature flags and experiments
- Run in-product surveys and review session recordings
Available capabilities may vary by authentication and workspace configuration.
Actions supported by the connector
Capture Event
Record a custom analytics event.
Create Feature Flag
Create a new feature flag for gradual rollout.
Create project insights with customizable parameters
Build a new analytics insight with custom parameters.
Retrieve project trend insights
Retrieve trend data for a project's tracked metrics.
Create project surveys with questions and targets
Set up a new in-product survey with target audience rules.
Retrieve session recording details
Retrieve details of a recorded user session.
Practical agent use cases
- An agent captures a custom event when a user completes a key workflow step.
- An agent creates a feature flag to gradually roll out a new capability.
How it works with Wkil
- 1Choose the integrationAdd PostHog to your agent from inside the Wkil platform.
- 2Grant the permissions it needsDefine precisely what the agent can access and perform.
- 3Test, then run itTest actions before they go live, with human approval where needed.
Permissions always stay in your control — you can scope access and require human approval before any sensitive action.
Related integrations
FAQ
Does this use my own PostHog project?
Yes — the connection authenticates with an API key scoped to your PostHog project.

