Mixpanel
Mixpanel product analytics integration for querying events, funnels, retention, user profiles, and cohorts
The Mixpanel integration lets your agents query analytics data — events, funnels, retention, user profiles, and cohorts.
Prerequisites
You need:
- Service Account credentials — Create a service account in your Mixpanel project under Settings → Service Accounts. Note the username and secret.
- Project ID — Found in your Mixpanel project settings.
Setup
- Open Integrations from the sidebar
- Select Mixpanel from the catalog
- Click Add Integration Config
- Give the config a display name (e.g., "Mixpanel - Product Analytics")
- Enter your Project ID
- Enter your service account username and secret (Basic Auth)
- Save the config
Using in Your Agent
- Open your agent in Agent Studio. Under Model & capabilities → Tools, click Add tool and add the Mixpanel tools you need
- On a tool's card, choose your config under Set default credentials. It applies to every Mixpanel tool in the agent; click Override on one tool's card to give it a different config
- Tools are referenced as
mixpanel.top_events,mixpanel.query_funnel, etc.
Available Tools
| Tool | Description | Action Type |
|---|---|---|
top_events | Get top events | ReadOnly |
aggregate_events | Aggregate event counts | ReadOnly |
query_segmentation | Query event segmentation | ReadOnly |
query_funnel | Query funnel analysis | ReadOnly |
query_retention | Query retention analysis | ReadOnly |
query_profiles | Query user profiles | ReadOnly |
list_cohorts | List cohorts | ReadOnly |
query_insights_report | Query a saved insights report | ReadOnly |