Receive Customer's Phone number
# support
y
Is there a way to get the customer’s phone number in the assistant’s built-in analysis prompt? I tried using
{{phoneNumber}}
but it didn't work.
v
You can't use
{{phoneNumber}}
directly in the assistant's built-in analysis prompt. However, you can access the customer's phone number in your server webhook like this:
Copy code
js
const incomingNumber = req.body?.call?.from?.phoneNumber;
Use this value in your server logic to filter or route calls as needed. Reference: [Vapi documentation – Spam call rejection](https://docs.vapi.ai/server-url/spam-call-rejection) Source: - [Vapi documentation – Spam call rejection](https://docs.vapi.ai/server-url/spam-call-rejection)
c
you can use {{customer.number}}