.manthu
11/30/2025, 5:50 AMAI Evy
11/30/2025, 5:50 AMAI Evy
11/30/2025, 5:50 AMinbound_agent_id and an outbound_agent_id . These can point to the same agent or different agents depending on your needs .
For example, when creating or updating a phone number, you can configure it like this:
javascript
const phoneNumberResponse = await client.phoneNumber.create({
inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
// other parameters...
}) ;
In this example, both inbound and outbound calls use the same agent ID . However, you have the flexibility to assign different agents if your use case requires different behavior for incoming versus outgoing calls .
Additionally, for outbound calls, you can override the agent on a per-call basis using the override_agent_id parameter when creating a phone call [(2) ]() . For inbound calls, you can override the agent by returning override_agent_id in your inbound webhook response [(3) ]() .AI Evy
11/30/2025, 5:51 AMAI Evy
11/30/2025, 5:51 AM