https://retellai.com/?utm_source=discord&utm_medium=seo logo
My inbound call setup works, and an agent picks up
# ❓・ai-evy-support
a
Thanks for tagging me @krumbasku. I'll look through relevant sources and get back to you shortly.
### Answer When your inbound call picks up with a different agent than expected, this typically happens because the agent configuration is being overridden during the inbound call process. [(1) ]() For inbound calls, you can override the agent settings through the inbound webhook response. The webhook allows you to return an
override_agent_id
field that specifies which agent should handle the call. Here's what you should check: 1. **Inbound Webhook Configuration**: If you have an inbound webhook enabled, verify that your webhook response isn't returning an
override_agent_id
that points to a different agent. 2. **Phone Number Agent Binding**: Check which agent is bound to your phone number's
inbound_agent_id
setting. This is the default agent that will answer unless overridden. 3. **Agent Override in Webhook**: Your webhook response can include an
agent_override
object that modifies agent settings like
voice_id
for just that call. Make sure you're not accidentally overriding the voice settings. The correct webhook response structure for inbound calls should look like this:
Copy code
json
{
  "call_inbound": {
    "override_agent_id": "agent_12345",
    "override_agent_version": 1
  }
}
To resolve this, verify your phone number's default
inbound_agent_id
matches your intended agent, and if you're using an inbound webhook, ensure it's not overriding the agent or voice settings unintentionally.
​ To learn more, see the sources I considered: [[1] Inbound 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.
k
@AI Evy I dont have any inbound webhook configured, just the Agent Level Webhook URL to process the call outcome. I still have the problem.
a
Thanks for the follow-up, @krumbasku. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Inbound webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Get Agent](https://docs.retellai.com/api-references/get-agent) [[3] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Since you don't have an inbound webhook configured, the issue is likely with your phone number's default agent binding. When you set up a phone number for inbound calls, you need to specify which agent should handle those calls. The agent that answers is determined by the
Inbound Call Agent
setting on your phone number configuration [(1) ]() . Here's what to check: 1. **Phone Number Configuration**: Go to your phone number settings in the Retell dashboard and verify which agent is set as the
Inbound Call Agent
. This is the agent that will answer your inbound calls by default . 2. **Agent Voice Settings**: Once you've confirmed which agent is configured, verify that agent's
voice_id
setting matches what you expect. You can check this by retrieving the agent details [(2) ]() . The agent's voice is controlled by the
voice_id
field in the agent configuration [(3) ]() [(2) ]() . Each agent has its own voice settings including: - `voice_id`: The unique voice identifier - `voice_model`: Optional voice model selection -
voice_temperature
,
voice_speed
, and `volume`: Voice characteristics If the wrong agent is answering, you need to update your phone number's
Inbound Call Agent
setting to point to the correct agent ID. The Agent Level Webhook URL you configured only receives call events (like
call.started
,
call.ended
) and doesn't affect which agent answers the call [(1) ]() .
k
@AI Evy Everything is set up fine. But I still have the problem. what is next to troubleshoot this ?
a
Thanks for the follow-up, @krumbasku. I'll get back to you soon.
### Answer ### Answer Since you've confirmed your phone number's inbound agent configuration is correct, here are additional troubleshooting steps: 1. Verify Agent Version Check if your phone number is using a specific
inbound_agent_version
[(1) ]() . If you've made changes to your agent after binding it to the number, the phone number might be using an older version. You can update this using the Update Phone Number API :
Copy code
javascript
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
  inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
  inbound_agent_version: 1,
}) ;
2. Check for Cached Agent ID A common issue is that the agent ID might be cached somewhere in your system [(2) ]() . If you recently created or updated the agent via API, verify you're using the correct agent ID . 3. Verify Phone Number Configuration via API Use the List Phone Numbers API to confirm the exact configuration [(3) ]() :
Copy code
javascript
const phoneNumberResponse = await client.phoneNumber.list() ;
Look for the
inbound_agent_id
and
inbound_agent_version
fields in the response . 4. Check if Inbound Webhook is Actually Disabled Even if you didn't intentionally configure it, verify that
inbound_webhook_url
is null or empty in your phone number settings [(1) ]() [(3) ]() . An active webhook could override your agent selection [(4) ]() . 5. Review Call History Check the call details in your dashboard or via the Get Call API to see which
agent_id
is actually being used for the inbound calls. This will confirm whether the issue is with the phone number binding or something else. If the phone number is bound to an agent in the dashboard, it will use that agent regardless of API parameters [(2) ]() .
​ To learn more, see the sources I considered: [[1] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[2] Agent_ID problem (by using api)](https://discord.com/channels/1186424376300679209/1422374498459717633) [[3] List Phone Numbers](https://docs.retellai.com/api-references/list-phone-numbers) [[4] Inbound 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.
Thanks for the follow-up, @krumbasku. I'll get back to you soon.
k
@AI Evy Can I cancel/delete versionning of my agents, to fix the problem ?
a
[(1) ]() 3. Ensure your latest changes are published Remember that only published versions can be used by phone numbers . If you made changes to your agent but didn't click the "Deployment" button, those changes exist only as a draft and won't be used by your phone number . To resolve your issue, verify which version your phone number is using, then check that specific version's
voice_id
configuration [(3) ]() . If needed, publish a new version with the correct voice settings and update your phone number to use that version.
### Answer You cannot disable or delete versioning for agents in Retell AI. Versioning is a core feature that automatically tracks changes when you publish agents [(1) ]() . However, versioning is likely not causing your voice mismatch issue. Here's what's happening with versions: When you bind a phone number to an agent, you can specify which version to use . If no version is specified, the phone number will use the latest published version by default . The issue you're experiencing is more likely related to which agent version your phone number is pointing to, not versioning itself. Here's what to check: 1. Verify your phone number is using the correct agent version When you update your phone number configuration, you can specify both the agent ID and version:
Copy code
javascript
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
  inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
  inbound_agent_version: 1,
}) ;
[(2) ]() 2. Check which version has your desired voice configuration You can retrieve a specific version of your agent to verify its voice settings:
Copy code
javascript
get_agent(version=2) // Gets the version with version number 2.
get_agent() // Gets the latest version of the agent.
​ To learn more, see the sources I considered: [[1] Setup versioning for agents](https://docs.retellai.com/agent/version) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) [[3] Get Agent](https://docs.retellai.com/api-references/get-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.