brilliant-orangeB
VAPIโ€ข7mo ago
brilliant-orange

Add custom attributes to CALL api objects e.g. email-address, name of the customer

I am trying to add more attributes to the assistant by adding them to the customer object. I want to use these attributes then in the assistant like {{customer.email}}.
it seems not to work, and I get an error message sending them. This is what the body looks like which I send to https://api.vapi.ai/call:

{
"customer": {
"name": "Felix",
"number": "+123132213",
"email": "felix@felix.com",
"company": "super duper company",
"referrer": "google"
},
"assistantId": "xxxxx",
"phoneNumberId": "xxxx"
}

What am I doing wrong? or is it not possible?
I asked the support bot on vapi.ai and it suggested to do it this way ๐Ÿ™‚

Thanks for any help!
Was this page helpful?