Hamid
04/01/2025, 11:33 AMVapi Support Bot
04/01/2025, 11:35 AM{{customer.number}}
Dynamic Variable
The {{customer.number}}
dynamic variable is designed to access the caller's phone number. This variable returns the E.164 formatted number (with the + prefix).
For example, when setting up a call transfer, you can use:
json
{
"destination": {
"type": "number",
"number": "+*******",
"message": "",
"caller_id": "{{customer.number}}"
}
}
According to [documentation found](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341078918945439775), this is the correct variable to use for accessing the customer's number.
### 2. Using assistantOverrides
and variableValues
If you're using the Vapi SDK, you can pass data to the webhook using the assistantOverrides
parameter:
javascript
vapiInstance = vapiSDK.run({
apiKey: apiKey,
assistant: assistant,
config: buttonConfig,
assistantOverrides: {
variableValues: {
userId: "yourUserIdHere" // This can be adapted for customer number
}
}
});
This way, the customer number will be available when Vapi calls your webhook, as mentioned in [this source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339495894801711186).
### 3. Webhook Configuration Troubleshooting
Several issues could cause the customer number to return as "anonymous":
- **Check your webhook URL**: Ensure the Server URL in your Assistant settings is correctly pointing to your Make.com scenario URL.Vapi Support Bot
04/01/2025, 11:35 AMHamid
04/01/2025, 11:53 AMKings Big
04/01/2025, 8:59 PM