Hi guys,
I am trying to send a custom value (company name) using {{customer.X}}
This is my json:
{
"assistantId": "xxx",
"assistantOverrides": {
"variableValues": {
"custom_json": {{17.json}}
}
},
"customer": {
"number": "{{20.phone}}",
"name": "{{20.full_name}}",
"company_name": "{{20.company_name}}"
},
"phoneNumberId": "xxx"
}
However getting an API error:
Error: 400 Bad Request
{"message":["customer.property company_name should not exist"],"error":"Bad Request","statusCode":400}
This is my variable in VAPI script:
Hello is this {{customer.name}} from {{customer.company_name}}?
Please could you advise what the issue is and how to fix it?
Thanks a lot!