Design a router
Create a router, build its call flow from Voice text, Menu and Call service blocks in the visual designer, and attach it to a phone line.
A router is the call flow an incoming call follows on one of your lines. You build it visually: drop blocks on a canvas, connect them, and configure each one. This article walks through creating a router, designing its flow and putting it live.
Who can do this
| Action | Who |
|---|---|
| Create a router | Any signed-in user. You become its owner. |
| See, design, rename or delete a router | Its creator and owners, app admins and system owners. |
| Add an AI voice agent destination | You must also be able to manage the call service the block sends calls to. |
| Attach a router to a line | Whoever manages the line (service account). |
Before you start
- Create the call services your calls should land in. See Create and configure a call service.
- To send callers to an AI, create an active voice agent first. See Create a voice agent.
- Routers work on Twilio and Telnyx lines.
Steps
Step 1 โ Create the router
- Go to Settings โ Routers ("Manage inbound IVR flows for provider phone lines.").
- Click New Router.
- Enter a Name (required) and, optionally, a Description.
- Click Save. The router designer opens.
The Routers list shows each router with its number of Nodes and when it was last Updated. Use Design to reopen the designer, the pencil icon to edit the name and description, and the bin icon to delete it.
Step 2 โ Add blocks
Every router starts with a Call receiving block โ "The router starts here for every inbound call." It can't be deleted.
Use the toolbar above the canvas to add blocks:
| Button | Block | Use it to |
|---|---|---|
| Voice | Voice text | Read a message to the caller, such as a greeting or a recording notice. |
| Menu | Menu | Let the caller choose an option with their keypad. |
| Service | Call service | Send the caller to a person or an AI voice agent, and file the call under a service. |
New blocks appear below the existing ones. Drag them anywhere on the canvas. Use the controls in the corner to zoom and fit the view, and the mini-map to find your way around a large flow.
Step 3 โ Configure each block
Click a block to edit it in the panel on the right.
Voice text
- Text (required) โ what is read to the caller.
Menu
- Prompt โ what is read while the app waits for keys, for example "Press 1 for Sales, press 2 for Support."
- Digits โ how many keys the caller presses (1โ10, default 1).
- Timeout โ how many seconds to wait for input (1โ60, default 5).
- Options โ for each option, enter the key(s) the caller presses (for example
1) and a Label (for example Sales). Click Add option to add more, or the bin icon to remove one.
Call service
- Service (required) โ the call service the call is filed under.
- Handled by (required) โ Human or AI voice agent.
- With Human: choose the User whose in-app phone should ring.
- With AI voice agent:
- AI Voice Agent (required) โ any active agent. "Agents are independent and may be used by any call service."
- Language โ Agent default, Vietnamese or English. This sets the language the agent opens the call in.
- Escalate to โ the person the agent should transfer to when the caller needs a human, or Agent's transfer number to use the transfer setting on the agent itself.
Step 4 โ Connect the blocks
Each block has labelled exits at the bottom:
| Block | Exits |
|---|---|
| Call receiving, Voice text | Next |
| Menu | No match, plus one Press key ยท label exit per option |
| Call service | None โ this is where the call ends up |
Drag from an exit to the top of the block that should come next. Each exit can lead to only one block; drawing a new connection from the same exit replaces the old one. A block can't connect to itself.
Connect No match on every menu โ for example to a Voice text block that says "Sorry, that's not an option" and then back to the menu. Without it, a caller who presses the wrong key (or nothing) is disconnected.
Step 5 โ Delete what you don't need
Select a block or a connection and click Delete (or press Delete / Backspace on your keyboard). Deleting a block also removes its connections. If you remove an option from a menu, the connection from that option is removed too.
Step 6 โ Save the flow
Click Save Flow. Nothing on the canvas is stored until you do.
To change the router's name or description later, click Edit Details at the top of the designer. Use the Routers breadcrumb to return to the list.
Step 7 โ Attach the router to a line
- Go to Settings โ Service Accounts and edit the Twilio or Telnyx line.
- In the Router field, choose your router (or No router to go back to ringing the line owner).
- Save the line.
From then on, every incoming call on that line follows your flow. See Add a provider account.
How it works
- A call starts at Call receiving and moves block by block along the connections.
- Voice text blocks are read one after another; a Menu pauses the call for the caller's input; a Call service block hands the call over and finishes the flow.
- When a Menu receives keys that match an option, the call follows that option. Anything else โ a wrong key or no input before the timeout โ follows No match.
- A Human destination rings one person's in-app phone and assigns the call to them. If they don't answer, the call ends.
- An AI voice agent destination first tells the caller that an AI assistant is handling the call and that it may be recorded, then connects the agent.
- If a destination can't be used when the call arrives โ the user is inactive, the service was deleted, the agent is inactive โ the caller hears a short apology and the call ends.
Good to know
- Checks on save. When you save, every AI voice agent block must have a service and an active agent, and you must be able to manage that service. Otherwise you'll see a message such as "Every AI-handled Service block requires a service and an active voice agent" or "A selected Call Service is unavailable or cannot be managed". Human blocks are not checked on save โ make sure the user and service are set.
- Escalate to. At the time of writing, when an AI agent hands a router call over to a human it uses the transfer setting on the voice agent; the Escalate to choice on the block is saved and shown on the canvas but is not yet used for the transfer. Set the agent's own transfer number to be safe.
- Messages use the provider's default voice. Voice text and Menu prompts have no voice or language setting.
- One person per Human block. There are no ring groups, queues, business hours or no-answer fallbacks in a router.
- A flow that loops through Voice text blocks without ever reaching a Menu is cut off after a fixed number of steps. Always route loops through a Menu.
- If you delete a router that is attached to a line, incoming calls on that line ring the line owner again.