what other customer variables other than {{custome...
# support
r
Based on this documentation page (https://docs.vapi.ai/assistants/dynamic-variables#default-variables), there are other customer/caller related attributes that we get as variables for free. Where can I find a list of them? What I've attempted: - searched docs using global search tool - searched discord using global search tool
v
You can find the list of default customer variables in the [Vapi dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables#default-variables). The only default customer variable provided is
{{customer.number}}
. For any other customer property, you can use the syntax
{{customer.X}}
(e.g.,
{{customer.name}}
) if you supply that property in your API request:
Copy code
json
{
  "variableValues": {
    "customer.name": "John Doe"
  }
}
Refer to the documentation for more details and examples. Source: - [Dynamic Variables | Vapi Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
v
Message marked as helpful by @Rafa @Workingman's AI! 🎉
c
Hi servicepartner, If you are experiencing issues with the
{{customer.number}}
dynamic variable not being populated or incorrect, please verify the implementation of your phone call request setup. This includes ensuring that the customer's phone number is correctly included in the JSON payload sent to the
/call/phone
endpoint. Here is an example JSON payload format for setting dynamic variables:
Copy code
json
{
  "assistantId": "your-assistant-id",
  "assistantOverrides": {
    "variableValues": {
      "name": "John"
    }
  },
  "customer": {
    "number": "+1xxxxxxxxxx"
  },
  "phoneNumberId": "your-phone-id"
}
Make sure that the
number
field under
customer
is populated with the correct phone number in E.164 format. You can find more details on dynamic variables and how to implement them in calls [here](https://docs.vapi.ai/assistants/dynamic-variables). For any issues with
{{customer.number}}
, ensure your integration correctly fetches and sends this data during the call setup.
a
How do you verify the implementation of phone call request setup? That is, does my server have to Post this, or Vapi posts this when call begins?
2 Views