vicious-gold
vicious-gold4h ago

How to pass lead list variables (name/email) from Voicerr into Vapi outbound calls?

I’m trying to figure out the best way to have Vapi pull in lead list variables (like user name and email) so my outbound agent can use those variables during the call. What’s the right way to pass those variables from Voicerr into Vapi at call start? Should this be done via assistant-request parameters, server messaging config, or another method? Setup: Outbound calls are being triggered/controlled through Voicerr. Lead list is uploaded in Voicerr with name, phone, and email. Agent is running on Vapi. Goal: When the call starts, I want the Vapi agent to already have the lead’s name and email passed in, so the agent can reference them in the conversation (instead of asking for info we already have). Thanks! Winnie
1 Reply
Vapi Support Bot
To pass lead variables (like name and email) from Voicerr into Vapi outbound calls, include them in the assistantOverrides.variableValues field of your call request payload. For example:
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"name": "John Doe",
"email": "john@example.com"
}
},
"customer": {
"number": "+1xxxxxxxxxx"
},
"phoneNumberId": "your-phone-id"
}
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"name": "John Doe",
"email": "john@example.com"
}
},
"customer": {
"number": "+1xxxxxxxxxx"
},
"phoneNumberId": "your-phone-id"
}
Reference these variables in your assistant prompts as {{name}} and {{email}} to personalize the conversation.
See documentation Source: - Dynamic Variables Documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥

Did you find this page helpful?