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
a
Thanks for tagging me @Goopa Snoops. I'll look through relevant sources and get back to you shortly.
### Answer To retrieve the caller's phone number for an inbound call, you need to set up an inbound webhook on your Retell phone number. [(1) ]() When an inbound call comes in, Retell will POST a payload to your webhook endpoint that includes the
from_number
field, which contains the caller's phone number. Here's the payload structure you'll receive:
Copy code
json
{
  "event": "call_inbound",
  "call_inbound": {
    "agent_id": "agent_12345",
    "agent_version": 1,
    "from_number": "+12137771234",
    "to_number": "+12137771235"
  }
}
To set this up: 1. Configure your n8n workflow to receive webhooks [(2) ]() 2. Set the
inbound_webhook_url
on your Retell phone number to point to your n8n webhook URL [(3) ]() 3. In n8n, parse the incoming payload and extract the
from_number
field You can also respond from your webhook with
dynamic_variables
to pass the caller's number to your agent for use during the conversation. [(1) ]()
​ To learn more, see the sources I considered: [[1] Inbound webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Connect AI call agent to n8n](https://www.retellai.com/integrations/n8n) [[3] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
g
@User Unfortunately, I am using the inbound_Webhooks for both the phone number and agents for Voice AI Wrapper. Is it still possible?