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 Integrations from the sidebar
  2. Select Mixpanel from the catalog
  3. Click Add Integration Config
  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 config

Using in Your Agent

  1. Open your agent in Agent Studio and select an Agent Step
  2. Under Attached Integration Configurations, click Attach configuration and choose your config
  3. Attach Mixpanel tools from the tools panel
  4. 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