https://retellai.com/?utm_source=discord&utm_medium=seo logo
what is an inbound webhook for the agent and is it...
# ❓・ai-evy-support
a
@AI Evy what is an inbound webhook for the agent and is it necessary
a
Thanks for tagging me @anthonylovatt_26757. I'll look through relevant sources and get back to you shortly.
### Answer An inbound webhook allows you to customize how incoming calls are handled before they connect to your agent [(1) ]() . It's triggered when someone calls your Retell AI number and lets you override agent settings, set dynamic variables, and provide caller-specific context . The webhook receives a payload with caller information like
from_number
and
to_number
. Here's the request format:
Copy code
json
{
 "event": "call_inbound",
 "call_inbound": {
 "agent_id": "agent_12345",
 "from_number": "+12137771234",
 "to_number": "+12137771235"
 }
}
You can respond with customizations like:
Copy code
json
{
 "call_inbound": {
 "override_agent_id": "agent_12345",
 "override_agent_version": 1,
 "dynamic_variables": {
 "customer_name": "John Doe"
 },
 "metadata": {
 "random_id": "12345"
 }
 }
}
Is it necessary? No, inbound webhooks are optional . If you don't need to customize calls based on caller information or switch agents dynamically, you can simply assign an agent directly to your phone number . The webhook is primarily useful when you want different agents for the same number or need to provide caller-specific context from your CRM or database .
​ To learn more, see the sources I considered: [[1] 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.