eric_64818
09/14/2025, 1:31 AMAI Evy
09/14/2025, 1:31 AMAI Evy
09/14/2025, 1:31 AMuser_number variable is a default system variable that Retell automatically provides for phone calls [(1) ]() . According to the documentation, {{user_number}} represents the user's phone number (from_number for inbound calls, to_number for outbound calls) .
When you clear the default dynamic variable, the system variable should still be available automatically . If you're seeing "undefined" instead of the actual phone number, this suggests the issue might be with how you're referencing it in your custom function.
For custom functions, when Retell sends the request to your endpoint, the body includes the call object which contains real-time information about the call [(2) ]() . The phone number information should be accessible through this call object rather than needing to be set as a default dynamic variable.
The {{user_number}} system variable should work without any configuration in your Default Dynamic Variables section [(1) ]() . If it's not working as expected, you might want to:
1. Verify you're using the correct syntax: {{user_number}}
2. Check that this is indeed a phone call (not a chat session, where this variable wouldn't be available)
3. Ensure you're accessing the phone number from the call object in your custom function responseAI Evy
09/14/2025, 1:31 AMAI Evy
09/14/2025, 1:31 AM