https://retellai.com/?utm_source=discord&utm_medium=seo logo
Does Agent Assignment by Country Work with the Inb...
# ❓・bug-report
s
I'm doing the following: Taking advantage of the inbound call webhook, I have an automation that detects if the phone number has the +34 prefix and routes it to an agent who speaks Spanish, but if it has a prefix from another country, it routes it to another agent who speaks English. I do this because, despite the multilingual versions, I need native voices to provide a better experience. The problem is that this part isn't working — we can filter by this criterion, but it doesn't activate one agent or the other; it always routes the call to the agent that is assigned by default to that specific phone number. Could this be a bug? Thank you very much
s
Yes, you can assign agents by country using the inbound webhook, but it only works if your webhook returns the correct override_agent_id. If it doesn’t, or if the webhook fails, Retell defaults to the agent tied to the phone number. Double-check your webhook logic and response format.