PostHog AI Employee

Leina connects to PostHog to help you compare product activity, explain insights, and clarify event descriptions. Ask in your team chat. Leina does the work and brings back the result.

Connect PostHog, choose what to share, and hand off your first task.

Leina + PostHog Example Result

You

In our Launch project in PostHog, compare unique users who triggered signup_completed on October 1–7 with September 24–30. Show both counts and the percentage change.

Leina

The count rose from 800 to 1,000, an increase of 25%. These are unique users who triggered signup_completed in each period.

PostHog · Activity comparison

signup_completed · Unique users

1,000 versus 800 unique users; 25% increase between the two weeks.

September 24–30
800 unique users
October 1–7
1,000 unique users
A product question answered with counts and a clear comparison.

What Is a PostHog AI Agent?

A PostHog AI agent reads tracking definitions and runs queries in your connected project. Ask it to compare activity over two periods, explain a saved insight, or document what an event means using your team’s agreed definition.

You specify the source and the destination. Leina uses the content available to your connection and returns the result for you to review.

PostHog

PostHog organizes captured product events, analytics queries, and saved insights.

  1. Describe the task

    Name the project, event, and two periods to compare.

  2. AI prepares the work

    Sets the event, unique-user measure, and two date windows.

  3. AI works in PostHog

    Runs the query and waits for the available results.

  4. Review the result

    Check the counts and percentage change without inferring a cause.

What to Ask Leina to Do with PostHog

Copy a prompt, add your details, and send it to Leina in your connected team chat.

Review your event dictionary

Review the event definitions in PostHog project [project ID]. List events with missing descriptions and summarize what the documented events mean. Do not infer meanings for undocumented events.

PostHog

Clarify a tracked event

In PostHog project [project ID], find the event [exact event name]. Update its description to [agreed meaning and when it fires], keeping other metadata unchanged.

PostHog

Compare product activity

In PostHog project [project ID], compare the number of unique users who triggered [event name] in [date range] with the previous equal-length period. Show both counts and the change; if the query runs in the background, check it until the result is ready.

PostHog

Explain a saved insight

Read PostHog insight [insight ID] in project [project ID]. Explain its filters, measured events, and returned results. Identify questions the data does not answer.

PostHog

Your next PostHog task can start with a message.

Connect. Ask. Get the Result.

Tell Leina what you need in your team chat. Include the source, destination, and expected result.

  1. Connect Your Account

    Connect the tools involved and give Leina access to the content it needs.

  2. Try a Task

    Share the source material, say where the result belongs, and describe what you need.

  3. Check the Result

    Review the result and any changes in the connected app.

Put Leina to Work in PostHog

Hand off these everyday tasks to your AI employee.

Get Current User

Get the current user associated with the PostHog personal API key.

List Projects

List PostHog projects for the current or specified organization.

Get Project

Get a PostHog project from the current or specified organization.

List Event Definitions

List event definitions for a PostHog project.

Get Event Definition

Get a PostHog event definition by ID.

Create Event Definition

Create an event definition for a PostHog project.

Update Event Definition

Partially update a PostHog event definition by ID.

Delete Event Definition

Delete a PostHog event definition by ID.

Get Event Definition By Name

Get a PostHog event definition by exact event name.

Get Event Definition Primary Properties

Get primary properties configured for PostHog event definitions.

Bulk Update Event Definition Tags

Bulk add, remove, or set tags on PostHog event definitions.

List Property Definitions

List property definitions for a PostHog project.

Get Property Definition

Get a PostHog property definition by ID.

Update Property Definition

Partially update a PostHog property definition by ID.

Delete Property Definition

Delete a PostHog property definition by ID.

Bulk Update Property Definition Tags

Bulk add, remove, or set tags on PostHog property definitions.

List Annotations

List annotations for a PostHog project.

Get Annotation

Get a PostHog annotation by ID.

Create Annotation

Create an annotation in a PostHog project.

Update Annotation

Partially update a PostHog annotation by ID.

Delete Annotation

Mark a PostHog annotation as deleted using the official soft-delete contract.

List Cohorts

List cohorts for a PostHog project.

Get Cohort

Get a PostHog cohort by ID.

Create Cohort

Create a cohort in a PostHog project.

Update Cohort

Partially update a PostHog cohort by ID.

Delete Cohort

Mark a PostHog cohort as deleted using the official soft-delete contract.

Add Persons To Static Cohort

Add person UUIDs to a static PostHog cohort.

Get Cohort Persons

List persons that belong to a PostHog cohort.

Get Cohort Calculation History

Get the raw calculation history payload for a PostHog cohort.

List Insights

List insights for a PostHog project.

Get Insight

Get a PostHog insight by ID with a stable top-level connector shape.

Run Query

Run a PostHog query and return a stable top-level query result shape.

Get Async Query Status

Retrieve the status and available result payload for a PostHog async query.

Cancel Query

Cancel a PostHog async query by project ID and query ID.

Create Insight

Create a saved PostHog insight in a project.

Update Insight

Update a saved PostHog insight by ID.

Delete Insight

Delete a saved PostHog insight by ID.

List Dashboards

List dashboards for a PostHog project.

Get Dashboard

Get a PostHog dashboard by ID with a stable top-level connector shape.

Create Dashboard

Create a PostHog dashboard in a project.

Update Dashboard

Partially update a PostHog dashboard by ID.

Delete Dashboard

Mark a PostHog dashboard as deleted using the official soft-delete contract.

Run Dashboard Insights

Run all insights on a PostHog dashboard and return their results.

Copy Dashboard Tile

Copy an existing PostHog dashboard tile to another dashboard.

Move Dashboard Tile

Move a PostHog dashboard tile to another dashboard.

Reorder Dashboard Tiles

Reorder tiles on a PostHog dashboard.

List Dashboard Collaborators

List collaborators for a PostHog dashboard.

Add Dashboard Collaborator

Add a collaborator to a PostHog dashboard.

Remove Dashboard Collaborator

Remove a collaborator from a PostHog dashboard.

List Feature Flags

List feature flags for a PostHog project.

Get Feature Flag

Get a PostHog feature flag by ID.

Create Feature Flag

Create a feature flag in a PostHog project.

Update Feature Flag

Partially update a PostHog feature flag by ID.

Delete Feature Flag

Soft delete a PostHog feature flag by setting deleted to true.

Get Feature Flag Status

Get the computed status for a PostHog feature flag.

Get Feature Flag Dependent Flags

List the feature flags that depend on a PostHog feature flag.

Get Feature Flags Local Evaluation

Get the local evaluation payload for PostHog feature flags.

More Tools for Your AI Employee

Connect the Apps your work depends on, and give Leina the context to carry the task forward.

Keep the Conversation Moving. Let Leina Pick Up the Work.

Hand off a task while your team is discussing it. Leina uses your connected tools and brings the result back to the conversation.

See How Leina Works in Slack
LeinaExample Result

The count rose from 800 to 1,000, an increase of 25%. These are unique users who triggered signup_completed in each period.

signup_completed · Unique users

PostHog + Leina: Your Questions, Answered

Does editing an event description change the collected data?

It changes the event’s metadata, such as its description. It does not create captured events or rewrite historical event rows.

Can I connect without a personal API key?

OAuth authorization is supported as an alternative to a personal API key.

Can I compare product usage over two periods?

Yes. Specify the project, event, dates, and whether you want event counts or unique users. The assistant can run a query and explain the returned results; a change in usage alone does not establish its cause.

Make Leina Your PostHog AI Employee

Start with one task you already need to do. Tell Leina what a finished result should look like.

Connect PostHog, choose what to share, and hand off your first task.