mParticle
Capture customer data from AI conversations and sync it to mParticle CDP.
Automatically extract customer information from conversations and send it to mParticle as user profiles and events. Optionally fetch existing mParticle user data to personalize AI responses.
Prerequisites
An mParticle account
mParticle OAuth credentials (Client ID and Client Secret)
Getting Your Credentials
OAuth Credentials (required):
In mParticle, go to Settings > Credential Management
Create OAuth credentials and copy the Client ID and Client Secret
Platform API Credentials (for lead syncing):
In mParticle, go to Setup > Inputs
Create or select a Custom Feed input
Copy the API Key and API Secret
See mParticle's documentation for detailed instructions.
Setup
Step 1: Connect mParticle
In Alhena, go to Settings > Integrations
Find mParticle and click Enable
Enter your Client ID and Client Secret
Click Connect
Step 2: Add Platform API Credentials (for lead syncing)
To sync extracted leads to mParticle, add your Platform API credentials:
Click Show advanced options
Enter your API Key and API Secret
Select your Region (us1, us2, or eu1)
Click Connect again to save
Without these credentials, Alhena can extract lead attributes from conversations but won't sync them to mParticle.
Step 3: Configure Attributes to Extract
Define what information to extract from conversations and send to mParticle:
Click Add attribute
Enter the Attribute name (the mParticle user attribute key, e.g.,
email,$FirstName,company_size)Add a Description to help the AI identify this information in conversations
Optionally add Examples of values (up to 4)
Default attributes (pre-configured):
email- User's email address$FirstName- User's first name$LastName- User's last name
When a conversation ends, Alhena uses AI to extract these attributes from the chat and sends them to mParticle as a lead_generated event.
User Profile Personalization (Optional)
Fetch existing user data from mParticle to personalize AI responses.
Requirements
To enable personalization, you need:
Org ID, Account ID, and Workspace ID from mParticle
The user's MPID passed via the Alhena SDK
Setup
In the mParticle settings, click Show advanced options
Enter your Org ID, Account ID, and Workspace ID
Under User Attributes to Fetch, add the mParticle attributes you want to use for personalization (e.g.,
$FirstName,loyalty_tier,favorite_category)
Passing MPID via SDK
Include the user's mParticle ID in your widget configuration:
When an MPID is provided, Alhena fetches the configured user attributes from mParticle and includes them in the AI's context for personalized responses.
Enabled Agents
When you connect mParticle, lead capture is enabled for the lead generation agent:
Lead generation agent
Extracts configured attributes from conversations and syncs them to mParticle
You can configure this agent in AI Settings > Agents.
Credential Reference
Client ID / Secret
OAuth authentication (required to connect)
API Key / Secret
Lead syncing via Events API and user identification
Org / Account / Workspace ID
Fetching user profiles for personalization
Region
Your mParticle data region for Events API
Disconnecting
To disconnect mParticle:
Go to Settings > Integrations > mParticle
Click Disconnect
Confirm the disconnection
Last updated