https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> Inbound call webhook
# ❓・ai-evy-support
p
@AI Evy Inbound call webhook
a
Thanks for tagging me @panda_19545. I'll look through relevant sources and get back to you shortly.
### Answer The inbound call webhook allows you to dynamically configure calls when someone calls your Retell AI number [(1) ]() . It's designed to override agent IDs, set dynamic variables, and provide context based on the caller . ## How It Works The webhook receives a
POST
request with a payload containing : - `agent_id`: if the number has an inbound agent ID set - `from_number`: always present, helps identify the caller - `to_number`: always present, helps identify the receiver Sample request payload :
Copy code
json
{
  "event": "call_inbound",
  "call_inbound": {
    "agent_id": "agent_12345",
    "from_number": "+12137771234",
    "to_number": "+12137771235"
  }
}
## Response Format Your webhook should return a JSON response with fields grouped under
call_inbound
[(2) ]() : - `override_agent_id`: to override the agent ID - `override_agent_version`: to override the agent version - `dynamic_variables`: to set dynamic variables for the call - `metadata`: to set metadata for the call Sample response :
Copy code
json
{
  "call_inbound": {
    "override_agent_id": "agent_12345",
    "override_agent_version": 1,
    "dynamic_variables": {
        "customer_name": "John Doe"
    },
    "metadata": {
        "random_id": "12345"
    }
  }
}
## Key Details - Webhook timeout is 10 seconds with up to 3 retries [(3) ]() - Can be verified using your Retell API Key - If webhook fails and no inbound agent is set, the call will disconnect [(2) ]() - You can decline calls by leaving the
call_inbound
object empty when no inbound agent is configured
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[3] Inbound call 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.