Shaan@beHuman
06/09/2025, 2:15 PMAI Evy
06/09/2025, 2:15 PMAI Evy
06/09/2025, 2:15 PMoverride_agent_id field to specify a different agent for that specific inbound call [(2) ]() .
The inbound call webhook receives a payload with call information and you can respond with:
json
{
"call_inbound": {
"override_agent_id": "agent_12345",
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
This allows you to check the caller information and assign different agents with different prompts based on whether it's an inbound or outbound scenario [(1) ]() . For example, you could have one agent configured for inbound customer service calls and another for outbound sales calls [(3) ]() .
For outbound calls, you directly specify the agent when creating the call using the create phone call API [(4) ]() , so you can assign your outbound-specific agent at that point.
The key is setting up different agents with different prompts and using the inbound webhook to dynamically route to the appropriate agent based on call direction [(1) ]() [(2) ]() .AI Evy
06/09/2025, 2:15 PMAI Evy
06/09/2025, 2:15 PM