Hi @Vercel It looks like I got it fixed! When the assistant calls a contact from the Google sheet i.e. Justin, it now actually asks for "Justin". I needed to revise the payload that the HTTP Request node sends to VAPi. Here's the revised payload:
{
"assistantId": "6280b84f-1c70-4a53-ade4-5ec401faf520",
"phoneNumberId": "e479ed0b-d385-4c28-8c89-af193be6e761",
"customer": {
"number": "{{ $('If').first().json['CLEAN PHONE'].trim() }}",
"name": "{{ $('If').first().json['FIRST NAME'] }} {{ $('If').first().json['LAST NAME'] }}"
},
"metadata": {
"dealership": "{{ $('If').first().json.DEALERSHIP }}",
"firstName": "{{ $('If').first().json['FIRST NAME'] }}",
"lastName": "{{ $('If').first().json['LAST NAME'] }}",
"prospectId": "{{ $('If').first().json['PROSPECT ID'] }}",
"extension": "{{ $('If').first().json.EXTENSION || '' }}",
"email": "{{ $('If').first().json.EMAIL || '' }}"
},
"assistantOverrides": {
"variableValues": {
"firstName": "{{ $('If').first().json['FIRST NAME'] }}",
"lastName": "{{ $('If').first().json['LAST NAME'] }}",
"prospectId": "{{ $('If').first().json['PROSPECT ID'] }}",
"email": "{{ $('If').first().json.EMAIL || '' }}",
"extension": "{{ $('If').first().json.EXTENSION || '' }}"
}
}
}
The trick was adding the assisantOverrides block to the JSON payload!!