Use an AI Voice Agent with intent-based routing to replace your traditional IVR, so callers are routed to the right team based on what they say, rather than a menu they have to navigate. This article walks through creating, configuring, testing, and connecting a routing agent to your number.
Note: Throughout this article, we'll use an example based on ACME, a financial services company with three inbound teams (New Accounts, Account Development, and Technical Support), all reachable on a single shared mainline. Their traditional IVR causes callers to frequently land with the wrong team or abandon the call entirely. ACME wants to replace it with an AI Voice Agent that understands caller intent, collects a few key details, and routes each call to the right team automatically, with full context already in place when the agent picks up.
How it works
This setup can be adapted to suit virtually any use case. For the ACME example, a typical call flow looks like this:
- A customer calls the company mainline.
- The AI Voice Agent greets the caller and asks them to briefly describe their reason for calling, along with their first name and company name.
- The caller responds. The agent detects their intent and matches it to the relevant transfer branch.
- The call is routed to the correct team, with the caller's name, company, and reason for calling displayed to the receiving team.
Note: If a caller's issue needs deeper, specialized handling, you can route a branch to a second AI Voice Agent instead, for example a billing specialist or a technical support agent. The receiving agent automatically gets what the caller already said to the first agent, so it can continue the conversation instead of starting over. Please see How AI Voice Agents share context during a live transfer.
With this in place, callers simply say what they need and get to the right team instantly, agents pick up with full context already in hand, and a fallback path ensures no call ever goes unanswered.
Important: AI Voice Agents with transfer branches can only be assigned to a single number, so the agent you create should be built with a specific number in mind. If you want to apply intent-based routing across multiple numbers, clone your original agent and assign a dedicated version to each number.
Step 1: Create your AI Voice Agent
The first step is to create your AI Voice Agent.
Steps:
- Navigate to AI Agents > AI Voice Agents from the left-hand navigation menu.
- Click Create an AI Voice Agent and select Inbound, then select Prompt with Ask Aircall, Start from a Template or Build manually.
Note: With Prompt with Ask Aircall, you describe your routing agent in plain language and Ask Aircall drafts it for you. Review every section afterwards. For more information, please see Creating an AI Voice Agent with Ask Aircall
Step 2: Configure your AI Voice Agent
With the agent created, configure the following settings to shape its core behaviour:
- Persona: sets who your agent is and how it sounds.
- Knowledge sources: where you provide the information the agent uses to answer caller questions. Your company name and description are at the bottom of this page, and they define how the agent refers to your business.
Note: Since this is a pure routing agent, a knowledge base is not required. If you used Ask Aircall, it may have added a default FAQ, which you can remove.
For more help with these settings, please refer to Configuring your AI Voice Agent.
Four configuration settings are especially important for a routing use case:
Greeting message
You write the greeting message in During call, its the first thing a caller hears and sets the tone for the entire interaction. For a routing agent, it also determines how the caller frames their reason for calling, which directly influences how accurately they get routed.
We recommend prompting the caller with your available teams in the greeting, so they know exactly what to say from the moment the agent picks up. There are two ways to approach this, depending on how much guidance you want to give the caller:
- Open prompt: "Thank you for calling ACME. I'm Maya, ACME's virtual assistant. I'm here to connect you with the right team, are you calling about New Accounts, Existing Accounts, or Technical Support?"
- Guided prompt: "Thank you for calling ACME. I'm Maya, ACME's virtual assistant. I'm here to connect you with the right team. If you are calling about a new account, say New Accounts. If you are calling about an existing account, say Existing Accounts. If you are calling about a technical issue, say Technical Support."
The guided prompt is the closest equivalent to a traditional IVR menu, just spoken rather than button-based, and may feel more familiar to callers who are used to that experience.
Note: The farewell message will be overridden by the transfer message configured in the next step, so you can leave it blank.
Transfer rules
Transfer rules are where you configure the transfer branches. Each branch has a name and a transfer message. Your conversation flow says when to use each branch, and the call flow of your number says which user or team each branch goes to.
Steps
- Open your AI Voice Agent and select Transfer rules in the left menu.
- Turn on Call transfer
- Under transfer branches, select Add transfer branch.
- Give your branch a name. We recommend it reflects the subject or the team it's routed to, for example "New Accounts".
- Enter your transfer message. This is what your agent says before transferring the call. You can set a different one for each branch, so use it to let the caller know which team they're being transferred to.
- Repeat for each routing path you need, then select Save.
When you write in your conversation flow in During call tab when to use each branch, follow these guidelines:
- Write them in plain language rather than technical terms, for example "Caller asks about pricing" rather than anything coded or structured.
- They should capture the general intent, not exact words, since the agent matches based on meaning rather than literal phrasing.
- Each branch should represent a distinct, non-overlapping intent, so the agent can confidently match to one branch without ambiguity.
- You can add a transfer branch in your conversation flow by typing "/" and then selecting Transfer. A menu will open with your configured branches. For more information, please see Setting up call transfers with transfer rules.
Note: The fallback transfer branch is a default branch used when no other transfer branch fits the caller's intent. This branch cannot be removed, but you can customize its transfer message.
Conversation flow
The conversation flow is where you write what your agent does during the call, step by step, in During call. It shapes how the agent conducts a conversation: refining tone, defining phrase responses, and directing how it handles edge cases. This is also where you set the if/then logic that gives your agent the ability to reason within the boundaries you've set.
For the ACME example, the conversation flow directs the agent to ask for the caller's name, company and reason for calling right after the greeting, and defines how it handles two edge cases:
- Vague intent: if the caller's reason for calling is unclear, the agent will ask them to clarify. If it remains unclear after a second attempt, the call is routed down the fallback transfer branch.
- Attempted bypass: if the caller requests an immediate transfer without engaging, the agent will acknowledge this but explain that it needs a reason for calling in order to connect them with the right team.
##GREETING AND INTAKE QUESTIONS
- After greeting the caller, ask for their name, their company and the reason for their call.
##UNCLEAR INTENT
- If the reason the caller gives is unclear or vague, ask them to clarify: "I want to make sure I connect you with the right team, could you tell me the primary reason for your call today?" before asking the remaining questions.
- If the reason remains unclear after a second attempt, use the Fallback transfer.
##ATTEMPTED BYPASS
- If the caller asks for an immediate transfer or refuses to answer, say: "I completely understand, I just need a brief reason for your call so I can make sure you reach the right team as quickly as possible."
- Do not transfer the call until a reason has been provided
##ROUTING
- When the caller needs New Accounts, Existing Accounts or Technical Support, transfer the call with the matching branchTip: You can build upon these Conversational flow with additional business-specific phrases, tone adjustments or general behaviour directions specific to your use case
Extraction variables
Extraction variables define the specific details the agent collects, such as the caller's name, company and reason for calling. You add them in Pre- and postcall. When the call is transferred, the details are passed to the receiving user or team so they have context, and they're also logged on the call log.
Tip: Since this is a routing agent, collect no more than three details. Asking too many questions can lengthen the conversation and frustrate the caller, so stick to what your team actually needs for context when answering the call.
For the ACME example, the extraction variables are:
- name: the caller's name
- company: the company the caller is calling from
- reason: what the caller is calling about, in a few words
For more details, please see Capturing call data with extraction variables and precall AI actions
Step 3: Test your routing agent
Once everything is configured, test your agent thoroughly using Test agent call at the top of the agent page before connecting your agent to your number. This simulates a real call experience without firing any call activity to your team or triggering activity in your CRM.
Run through three scenarios to confirm the agent behaves as expected:
- Happy path: call in with a clear reason for calling that maps to each of your transfer branches and confirm the agent routes correctly each time. Then call in with a reason that doesn't match any branch and confirm the agent routes to the fallback path.
- Fuzzy path: call in with a vague or ambiguous reason for calling and confirm the agent asks for clarification. If it remains unclear, confirm the call is routed down the fallback transfer branch as expected.
- Unhappy path: push the agent with challenging conditions, such as interrupting mid-response, giving contradictory information, or refusing to provide a reason for calling. Confirm the agent handles these gracefully and falls back appropriately rather than routing incorrectly.
If you encounter unexpected results, identify the issue, make the necessary adjustments, and repeat testing until you're confident the agent is ready to serve customers.
Step 4: Connect your routing agent to your number
Add your routing agent as the first step in your call flow, since its role is to triage and route every inbound call from the moment it arrives.
Important: Connecting a routing agent affects your live call routing.. We strongly recommend deploying it outside of business hours or during a period of low call traffic to minimize disruption.
Note: If you have business hours configured with a time rule widget, your routing agent will be placed as the first step in the "Open" branch.
Steps
- 1. In your agent, open Connect number under Deploy and select the relevant number. The call flow of the number opens.
- Click the + icon on your opening hours branch to open the widget menu and select AI Voice Agent.
- Search for and select your routing AI Voice Agent.
- Add the relevant users or teams under each corresponding transfer branch.
- Click Publish. Your agent is now live.
Important: After deployment, monitor your agent's performance by reviewing calls and using the agent performance dashboard. For more information, please see Track AI Voice Agent's performance.
Best practices
- Build the agent with a specific number in mind, since transfer-branch agents can only be assigned to one number. Clone the agent for additional numbers.
- Prompt callers with your available teams in the greeting message, so they know exactly what to say.
- Write trigger conditions in plain language, capture general intent rather than exact words, and keep each branch distinct and non-overlapping.
- Limit intake questions to three or fewer to keep the routing flow quick and frustration-free.
- Test across happy, fuzzy, and unhappy path scenarios before going live.
- Deploy outside business hours or during low call traffic to minimize disruption to live call routing.
- Monitor performance regularly after launch to catch and resolve any unexpected behavior.
FAQ
Can I use one routing agent across multiple phone numbers?
No. AI Voice Agents with transfer branches can only be assigned to a single number. If you want intent-based routing on multiple numbers, clone your original agent and assign a dedicated version to each number.
Does a routing agent need a knowledge base?
Not necessarily. Since a routing agent's role is to detect intent and transfer the call, a knowledge source isn't required. Ask Aircall may add a default FAQ, which you can remove, or you can review and edit it if you'd like the agent to also handle basic questions.
What happens if the agent can't identify the caller's intent?
The agent asks the caller to clarify. If the intent remains unclear after a second attempt, the call is routed down the fallback transfer branch.
What if a caller asks to be transferred immediately without giving a reason?
The agent acknowledges the request but explains it needs a brief reason for the call before transferring, so it can route the caller to the right team.
Can I customize the message for the fallback transfer branch?
Yes. The fallback branch itself cannot be removed, but you can customize its transfer message.
How many intake questions should I ask?
For a routing agent, we recommend no more than three. Asking too many can lengthen the conversation and frustrate the caller.