# 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.

Source: https://support.rework.com/article/call-design-a-router

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](https://support.rework.com/article/call-create-and-configure-a-call-service).
- To send callers to an AI, create an active **voice agent** first. See [Create a voice agent](https://support.rework.com/article/call-create-a-voice-agent).
- Routers work on **Twilio** and **Telnyx** lines.

## Steps

### Step 1 – Create the router

1. Go to **Settings → Routers** (_"Manage inbound IVR flows for provider phone lines."_).
2. Click **New Router**.
3. Enter a **Name** (required) and, optionally, a **Description**.
4. 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

1. Go to **Settings → Service Accounts** and edit the Twilio or Telnyx line.
2. In the **Router** field, choose your router (or **No router** to go back to ringing the line owner).
3. Save the line.

From then on, every incoming call on that line follows your flow. See [Add a provider account](https://support.rework.com/article/call-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.

## Related articles

- [Call routing overview](https://support.rework.com/article/call-call-routing-overview)
- [Create and configure a call service](https://support.rework.com/article/call-create-and-configure-a-call-service)
- [Add a provider account](https://support.rework.com/article/call-add-a-provider-account)
- [Create a voice agent](https://support.rework.com/article/call-create-a-voice-agent)
- [Receive inbound calls](https://support.rework.com/article/call-receive-inbound-calls)
