keenan
08/20/2025, 4:06 AMChiranjeet Mishra
08/21/2025, 11:38 PM{{customer.number}} variable and it defaults to "unknown", it often indicates that the variable isn't set at the call initiation. Here are a few checks and steps you can take:
1. **Ensure Proper Configuration**: Verify that the call setup includes the correct mapping for the caller's phone number. The {{customer.number}} variable should be automatically populated with the phone number of the incoming call if everything is configured correctly.
2. **Variable Usage**: Double-check that {{customer.number}} is included appropriately in both the prompt and the dynamic variable setup of your assistant. Make sure there are no syntax errors, and it's consistently applied using the double curly braces.
3. **Call Source Check**: If you're using a server to handle incoming calls, ensure that it correctly sends back the customer's phone number to Vapi. As suggested in similar cases, using your own server endpoint to fetch and validate incoming call details before responding to Vapi can help filter and set these variables properly.
For more details on handling such variables and ensuring they are dynamically populated, you might find the [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables) helpful.
Feel free to test these steps in the environment where the issue arises to see if it resolves the "unknown" value problem.