Marv
03/28/2025, 1:50 AMVapi Support Bot
03/28/2025, 1:52 AM{{ $json['Phone number'] }}
). You'll need to add the assistantOverrides
object with variableValues
to your JSON payload:
json
{
"phoneNumberId": "your_phone_number_id",
"assistantId": "your_assistant_id",
"customer": {
"number": "{{ $json['Phone number'] }}"
},
"assistantOverrides": {
"variableValues": {
"name": "{{ $json['Name'] }}"
}
}
}
Replace 'Name'
with the actual column name in your Google Sheet that contains the lead's name.
### 2. Configure Your Agent's Initial Message
Make sure your agent's initial message includes the variable in the format you mentioned: "Hi, I'm Alex. Is this {{name}}?"
According to the [Vapi documentation on dynamic variables](https://docs.vapi.ai/assistants/dynamic-variables), these templates are defined using double curly braces {{variableName}}
, which you're already using correctly.
### 3. Test Your Configuration
After setting up the dynamic variable, test your agent to ensure it correctly uses the name from your Google Sheet during calls.
Is there anything specific about this implementation you'd like me to clarify further?
Sources:
- [Vapi documentation on dynamic variables](https://docs.vapi.ai/assistants/dynamic-variables)
- [Discord thread on using dynamic variables](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335054553250533439)Marv
03/28/2025, 10:17 PMVapi Support Bot
03/28/2025, 10:17 PMShubham Bajaj
03/30/2025, 7:39 AMMarv
03/30/2025, 6:02 PMShubham Bajaj
03/31/2025, 1:13 PM