Haii
08/05/2025, 6:11 AMVapi Support Bot
08/05/2025, 6:13 AMcustomer.number property and use it in your assistant's prompt. For example, in JavaScript:
js
const phoneNumber = call.customer.number; // e.g., "+12345678901"
const last3 = phoneNumber.slice(-3);
const prompt = `So, is the number you're calling on ending in ${last3} the best number for your appointment booking?`;
This approach lets the assistant reference the caller's number without asking for the full phone number, improving user experience.
Reference: [Vapi dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables)
Source:
- [Vapi dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables)Kings_big💫
08/05/2025, 3:20 PMHaii
09/08/2025, 4:10 AMChiranjeet Mishra
09/10/2025, 6:57 AMHaii
09/16/2025, 2:20 AMChiranjeet Mishra
09/18/2025, 12:08 AM{{customer.number}} as the variable for iterating the user's phone number. This is a default variable in Vapi and an example of using this can be seen below:
When repeating the number back to the customer, say the last 4 digits of {{customer.number}} and ask if that is the correct contact number.
More variables can be found in the documentation page: Haii
11/12/2025, 1:43 AMChiranjeet Mishra
11/14/2025, 12:53 AMif statement in front of the prompt we sent earlier. For example:
If {{customer.number}} is empty, ask the user which number they would like to be called back on. When repeating the number back to the customer, say the last 4 digits of {customer.number}} and ask if that is the correct contact number.