How to retrieve the caller id in an assistant work...
# support
b
I’d like to include the caller ID in the assistant’s prompt — for example, having the assistant mention the caller’s number during the conversation. However, I haven’t been able to achieve this. How can it be done?
v
To include the caller's phone number in your assistant's prompt, use the dynamic variable
{{customer.number}}
in your prompt or message text. For example:
Copy code
json
{
  "firstMessage": "Hello! Your caller ID is {{customer.number}}. How can I help you today?"
}
This will automatically insert the caller's number during the conversation. Make sure to use double curly braces as shown above for the variable to work properly. Reference: [Vapi Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables#prepare-your-request) Source: - [Vapi Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables#prepare-your-request)
c
Hey! To help track down this issue, could you share: \- The call ID \- When exactly this happened (the timestamp) \- What response you expected to get \- What response you actually got instead This would really help us figure out what went wrong!
2 Views