https://retellai.com/?utm_source=discord&utm_medium=seo logo
How do I simulate a call from a specific number in...
# ❓・ai-evy-support
b
@AI Evy How do I simulate a call from a specific number in the test mode of the voice agent. I want the voice agent to be able to use information about the phone number that is calling but before I provide the functionality in production I would like to test it in the test mode.
a
Thanks for tagging me @borys0642. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I can see information about testing agents with dynamic variables, but I don't have specific documentation about simulating calls from specific phone numbers in test mode. The sources show that you can enter dynamic variables when sending a test call directly from the platform [(1) ]() , and that test calls will automatically pull in the dynamic variables you've set in the agent configuration . There's also a debugging mode where you can "Test LLM" to test the LLM without speaking and create, store, and edit conversations [(2) ]() . However, the specific functionality for simulating calls from particular phone numbers in test mode isn't detailed in the available documentation. For this specific testing scenario, I'd recommend checking out these potentially helpful resources: - [Automatically test your agent]() - Visit [Contact Sales]() - Visit [) Would you like me to provide a general answer based on my knowledge of how testing systems typically work instead?
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[2] SOC 2 Type 1, Debugging mode and more features](https://www.retellai.com/changelog/soc-2-type-1-debugging-mode-and-more-features) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy in what variable (name of the variable) is the phone number of an inboud call stored? Can I put a number under this variable name during tests to test how would a flow behave if it was triggered by a phone call
a
Thanks for the follow-up, @borys0642. I'll get back to you soon.
### Answer For inbound calls, the phone number is stored in the system default dynamic variable
{{user_number}}
[(1) ]() . This variable contains the user's phone number (from_number for inbound calls, to_number for outbound calls) . Yes, you can set this variable during tests to simulate how your flow would behave with a specific phone number . You can set default values for dynamic variables at the agent level, which serve as fallbacks and will be used when specific variables aren't included in the call request . To test with a specific phone number: 1. In your agent configuration, you can set default dynamic variables 2. Set
user_number
to the phone number you want to test with 3. Use this variable in your prompts or tool descriptions like:
{{user_number}}
The system also provides other phone call-specific variables : - `{{direction}}`: Call direction (inbound or outbound) - `{{agent_number}}`: Agent's phone number (to_number for inbound, from_number for outbound) These variables are automatically provided by Retell and require no configuration .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.