mushrooooom
08/17/2025, 5:07 PMAI Evy
08/17/2025, 10:03 PMmushrooooom
08/17/2025, 10:03 PMAI Evy
08/17/2025, 10:03 PMAI Evy
08/17/2025, 10:03 PMAI Evy
08/17/2025, 10:03 PMAI Evy
08/17/2025, 10:03 PMmushrooooom
08/17/2025, 10:09 PMAI Evy
08/17/2025, 10:09 PMAI Evy
08/17/2025, 10:10 PMinbound_agent_id as null [(2) ]() and set your webhook URL [(1) ]() .
Step 2: Webhook Request Processing
When an inbound call arrives, Retell AI will POST this payload to your endpoint :
json
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
Step 3: Time-Based Logic Implementation
In your webhook endpoint, implement logic to check current time and determine whether to transfer immediately.
Step 4: Response for Immediate Transfer
To reject the call (which effectively transfers it elsewhere) , respond with a 200 status code without the call_inbound.override_agent_id field :
json
{
"call_inbound": {
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
Step 5: Response for Normal AI Handling
To allow the AI agent to handle the call, respond with a 200 status code containing the call_inbound.override_agent_id :AI Evy
08/17/2025, 10:10 PMjson
{
"call_inbound": {
"override_agent_id": "agent_12345",
"override_agent_version": 1,
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
### Key Behavior Notes
- The call stays in ringing state while waiting for webhook response
- If webhook fails after 3 retries, Retell AI checks for an inbound agent ID - if none exists, the call disconnects
- No call object is created if you reject the call
- The webhook has a 10-second timeout with up to 3 retry attempts
This approach allows you to implement time-based routing logic in your webhook to immediately reject calls during certain hours, effectively transferring them to your external phone system or live agents without any AI interaction.AI Evy
08/17/2025, 10:10 PMAI Evy
08/17/2025, 10:10 PMmushrooooom
08/17/2025, 10:14 PMAI Evy
08/17/2025, 10:14 PMAI Evy
08/17/2025, 10:14 PMcall_inbound.override_agent_id field, the call gets rejected/disconnected, not forwarded to another number [(1) ]() .
According to the inbound call webhook documentation :
> To selectively reject some inbound calls:
> - Unset the Inbound Call Agent in the phone number setting
> - Enable the Inbound Webhook
> - Listen to webhook request body call_inbound.from_number
> - If you want to pick up the call, respond with a 200 status code containing the "call_inbound.override_agent_id" as a JSON object.
> - If you want to reject the call, respond with a 200 status code without containing the "call_inbound.override_agent_id" as a JSON object.
What Actually Happens When You Reject:
When the webhook fails or you don't provide an override_agent_id, the system checks if the number has an inbound agent ID set . If it doesn't (which is your setup) , it will disconnect the call .
The Missing Piece: Actual Call Forwarding
The inbound call webhook doesn't provide a direct mechanism to forward calls to external phone numbers. It can only:
1. Accept the call and assign it to a Retell AI agent
2. Reject/disconnect the call
Alternative Approach for True Call Forwarding:
For immediate forwarding to live agents during certain hours, you would need to:
1. Accept the call by providing an override_agent_id
2. Configure that agent to immediately use the Transfer Call functionality to forward to your live agent number
This means the call briefly touches the Retell AI system before being transferred, rather than being immediately diverted at the telephony level.
The inbound webhook alone cannot perform direct call fAI Evy
08/17/2025, 10:14 PMAI Evy
08/17/2025, 10:15 PMAI Evy
08/17/2025, 10:15 PMmushrooooom
08/17/2025, 10:17 PMmushrooooom
08/28/2025, 6:13 PM