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 your agent in Agent Studio
- In the Integrations panel, click Add Integration Config
- Select Mixpanel from the integration list
- 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 agent revision
Using in Your Agent
- In an Agent Step, attach Mixpanel tools from the tools panel
- The agent uses your integration config for all Mixpanel API calls
- 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 |