How to pass lead list variables (name/email) from ...
# support
w
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
v
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:
Copy code
json
{
  "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](https://docs.vapi.ai/assistants/dynamic-variables#using-dynamic-variables-in-a-phone-call) Source: - [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables#using-dynamic-variables-in-a-phone-call)
v
Message marked as helpful by @Winnie! 🎉
c
Hello, Thanks for reaching out to us. We are sorry for the inconvenience. Can you give more details about your concern? Your Org ID, email address and other details that will help us pinpoint your account and to look further into it? We will investigate further and we appreciate your kind understanding and patience.
4 Views