Skip to main content

Scenario

Your product has 10 features, but only 3 are widely adopted. You pull feature usage metrics from Mixpanel, identify underused features with high retention correlation, then run a Focus Group asking “Are you aware of ?” (dichotomous yes/no + open-ended follow-up) and generate feature awareness campaigns for the gaps.

Architecture

Code

Example Output

Error Handling

The Insights API requires specific params structure with type (unique, general, average), events, and date range. Test queries in Mixpanel’s Insights UI first, then export the API call from the UI’s “API” button.
Features must correspond to tracked Mixpanel events. If your events are named differently (e.g. report.created instead of Report Create), update the FEATURES dict to match your event names exactly.
This job chains two Mavera calls — Focus Group then Generate. Budget 2–4 minutes total. The Focus Group must complete before generating campaigns, since the results inform messaging strategy.

What’s Next

Mixpanel Integration

Back to Mixpanel integration overview

Event-Based Persona Enrichment

Enrich personas with raw event patterns

Focus Groups API

Full reference for POST /api/v1/focus-groups

Generate API

Full reference for POST /api/v1/generations