https://retellai.com/?utm_source=discord&utm_medium=seo logo
How would I retrieve the phone number of the perso...
# ❓・ai-evy-support
g
@AI Evy How would I retrieve the phone number of the person calling for an inbound agent for N8N. Unfortunately, I am using the inbound Webhooks for both the phone number and agents for Voice AI Wrapper. Is it still possible?
a
Thanks for tagging me @Goopa Snoops. I'll look through relevant sources and get back to you shortly.
### Answer --- Yes, it's still possible. The inbound webhook payload includes the
from_number
field, which contains the caller's phone number. [(1) ]() When Retell sends the
call_inbound
event to your n8n webhook, the payload will look like this:
Copy code
json
{
  "event": "call_inbound",
  "call_inbound": {
    "agent_id": "agent_12345",
    "agent_version": 1,
    "from_number": "+12137771234",
    "to_number": "+12137771235"
  }
}
In your n8n workflow, you can extract
from_number
from the webhook payload and then pass it back as a dynamic variable in your response so the agent can reference it during the call. Your webhook response would look something like:
Copy code
json
{
  "call_inbound": {
    "dynamic_variables": {
      "caller_number": "+12137771234"
    }
  }
}
This way, you can use
{{caller_number}}
in your agent's prompt or first message to personalize the conversation with the caller's number.
​ To learn more, see the sources I considered: [[1] Inbound webhook](https://docs.retellai.com/features/inbound-call-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.