eli
11/14/2025, 3:18 PMAI Evy
11/14/2025, 3:18 PMAI Evy
11/14/2025, 3:19 PMinbound_webhook_url on a phone number, Retell will send a webhook for inbound calls to that number, allowing you to override agent settings and set dynamic variables specific to that call .
Here's how it works:
1. Configure each phone number with an inbound_webhook_url
2. When a call comes in, Retell sends a webhook to that URL where you can identify which number was called
3. In your webhook response, you can set retell_llm_dynamic_variables with values specific to that phone number [(3) ]()
The webhook allows you to override the agent id and set dynamic variables for each specific call [(1) ]() [(2) ]() , so you can differentiate between multiple phone numbers routing to the same agent.AI Evy
11/14/2025, 3:19 PMAI Evy
11/14/2025, 3:19 PMeli
11/14/2025, 3:19 PMAI Evy
11/14/2025, 3:19 PMAI Evy
11/14/2025, 3:20 PMinbound_agent_id to bind a specific agent to each number [(2) ]() , but dynamic variables work differently. You can configure agent-level default dynamic variables [(3) ]() , but these would apply to all calls for that agent regardless of which phone number was called.
The system variable {{agent_number}} is automatically available and contains the agent's phone number (the to_number for inbound calls) , so you could potentially use this in your agent prompt to handle different numbers differently. However, this requires logic in your prompt rather than pre-set dynamic variables.
For truly phone-number-specific dynamic variables, the inbound webhook is the designed solution [(1) ]() [(2) ]() . The webhook receives the to_number field in its payload, allowing you to identify which number was called and return appropriate dynamic variables in your response [(1) ]() .AI Evy
11/14/2025, 3:20 PMAI Evy
11/14/2025, 3:20 PM