https://retellai.com/?utm_source=discord&utm_medium=seo logo
can i extract the callers phone numebr as a variab...
# ❓・ai-evy-support
v
@AI Evy can i extract the callers phone numebr as a variable??
a
Thanks for tagging me @Vyyy. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can access the caller's phone number as a variable using the system dynamic variable
{{user_number}}
[(1) ]() . For phone calls,
{{user_number}}
represents the user's phone number—it's the
from_number
for inbound calls or the
to_number
for outbound calls . You can also access the caller's number through event webhooks, where you'll find
from_number
and
to_number
fields in the webhook payload [(2) ]() . If you need to capture and reuse the phone number throughout your conversation flow, you can use the Extract Dynamic Variable tool to store it as a custom variable [(3) ]() .
​ To learn more, see the sources I considered: [[1] {{user_number}} - system dynamic value is not working after chat transferred another agent](https://community.retellai.com/t/user-number-system-dynamic-value-is-not-working-after-chat-transferred-another-agent/730) [[2] there is no doumentation on when a inbound sip call is answered, how to find the callers number](https://discord.com/channels/1186424376300679209/1318909532008878121) [[3] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.