FruxonDocs

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

  1. Open your agent in Agent Studio
  2. In the Integrations panel, click Add Integration Config
  3. Select Mixpanel from the integration list
  4. Give the config a display name (e.g., "Mixpanel - Product Analytics")
  5. Enter your Project ID
  6. Enter your service account username and secret (Basic Auth)
  7. Save the agent revision

Using in Your Agent

  1. In an Agent Step, attach Mixpanel tools from the tools panel
  2. The agent uses your integration config for all Mixpanel API calls
  3. Tools are referenced as mixpanel.top_events, mixpanel.query_funnel, etc.

Available Tools

ToolDescriptionAction Type
top_eventsGet top eventsReadOnly
aggregate_eventsAggregate event countsReadOnly
query_segmentationQuery event segmentationReadOnly
query_funnelQuery funnel analysisReadOnly
query_retentionQuery retention analysisReadOnly
query_profilesQuery user profilesReadOnly
list_cohortsList cohortsReadOnly
query_insights_reportQuery a saved insights reportReadOnly

On this page