# Routing and distribution

Set up routers that give every new lead an owner and start a response clock, then build and test your first router step by step.

Source: https://support.rework.com/article/lead-routing-and-distribution

> **In plain words:** **Routing** means getting every new lead to the right person without anyone having to remember. You build a **router**: an automatic flow that runs when something happens to a lead, such as "a lead is created". It can check conditions, wait, assign an owner and start a response deadline. This page explains the pieces and walks you through building and testing your first router. New to these words? See [Lead basics](https://support.rework.com/article/lead-basics).

**Where to find it:** In Lead, open your service in the left sidebar, then click **SLA & Routing**. **Who can use it:** People who manage that service. Other people do not see **SLA & Routing**.

## Why routing exists

Most enquiries are answered late, or never. That is rarely because people do not know they should reply fast. It is because nothing makes it happen.

A router makes it happen. It assigns the owner and starts the clock whether or not anybody is watching.

## The four pieces

| 
Piece

 | 

What it is

 | 

The question it answers

 | 

Learn more

 |
| --- | --- | --- | --- |
| 

**Router**

 | 

A flow of blocks

 | 

What happens when a lead arrives?

 | 

This page and [Router blocks reference](https://support.rework.com/article/lead-router-blocks)

 |
| 

**Routing rule**

 | 

A reusable set of conditions

 | 

Which leads does this apply to?

 | 

[Routing rules](https://support.rework.com/article/lead-routing-rules)

 |
| 

**Distribution team**

 | 

A group of people and a way of sharing leads

 | 

Who gets the lead?

 | 

[Distribution teams](https://support.rework.com/article/lead-distribution-teams)

 |
| 

**SLA metric**

 | 

A clock with a target

 | 

How fast, and what if we are late?

 | 

[SLA metrics](https://support.rework.com/article/lead-sla-metrics)

 |

An **SLA** (service level agreement) is a promise about speed, such as "call every new lead within 15 minutes". Routing decides who. The SLA decides by when. You normally set them up together.

## Three places to open routing

You can open the same routing lists in three places.

1. **The SLA & Routing workspace.** In the left sidebar, open your service (for example **CRM**) and click **SLA & Routing** **(1)**. The **Configuration** group **(2)** holds **Routers**, **Routing rules**, **SLA metrics** and **Distribution teams**. The **Monitoring** group holds **Metric evaluations**, **SLA node evaluations** and **SLA reports**.
   
2. **Settings.** In the left sidebar, click **Settings**, then open the **Routing & Distribution** group. The same lists are there, with a service picker at the top.
   
3. **Service settings.** On the lead list, click the service name, then **Service settings**. The **Routing & distribution** group has the same lists.
   

On the **Routers** page each router shows its status **(3)**: **Running** (published) or **Draft**. **New flow** **(4)** starts a new router. Some buttons call a router a "flow". It is the same thing.

![SLA and Routing page in the Lead app with the SLA and Routing sidebar item, the Configuration list, the Inbound lead routing router card marked Running, and the New flow button highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/EnIxZlMxdgyvHgBJurRsxE4PLscRujiJfhYzFkQ3VfYDUk31oCwcAnk3XlYB7gVv/img.dCsChiKGFmp9gjlPQIzh7wix7F8OBS0zAWbJR0kPcTxdAjb1gKT8mhtcEYmU7HaP.png)

> **Note:** An event gateway (a service that receives events instead of leads) shows only **Routers**, **Routing rules** and **SLA node evaluations**. See [Event gateways](https://support.rework.com/article/lead-event-gateways).

## Set up in this order

A router block asks you to pick a team, a rule or a metric. Those must exist first. Set things up in this order:

1. **Decide the outcome in one sentence.** For example: "Enterprise leads reach a senior rep within 15 minutes. Everything else within 4 hours."
   
2. **Distribution teams.** Add the people, choose a method and set limits. See [Distribution teams](https://support.rework.com/article/lead-distribution-teams).
   
3. **Routing rules.** Write the conditions you will branch on, or use the built-in **Preset** rules. See [Routing rules](https://support.rework.com/article/lead-routing-rules).
   
4. **SLA metrics.** Create the clocks and set them **Active**. See [SLA metrics](https://support.rework.com/article/lead-sla-metrics).
   
5. **Routers.** Build and publish the flow.
   
6. **Test with a real lead.** See "Test your router" below.
   
7. **Check after a week.** Is the work shared evenly? Are targets being met? Is anything waiting in the pool?
   

Also check these before you start:

- Your reps exist as active users. Inactive users are skipped when leads are shared out.
  
- Anyone who needs a working-hours target has a work schedule (a Timesheet) assigned. See [SLA metrics](https://support.rework.com/article/lead-sla-metrics).
  
- You have decided who may see leads that have no owner yet. By default, reps do not. See [Access and visibility](https://support.rework.com/article/lead-access-and-visibility).
  

## Router types

When you create a router you choose a **Flow type**. The type decides which blocks you can use.

| 
Flow type

 | 

Use it to

 | 

Blocks it adds

 |
| --- | --- | --- |
| 

**Lead Owner Router**

 | 

Assign and share lead ownership across a team. This is the one most people need.

 | 

**Assign & Update Ownership**

 |
| 

**Campaign Router**

 | 

Add incoming leads to marketing campaigns.

 | 

**Campaign Router**

 |
| 

**Lead Conversion Router**

 | 

Turn qualified leads into Sales records (contact, deal, account).

 | 

**Convert Lead**

 |
| 

**Lead Distribution Router**

 | 

Send events from an event gateway on into a lead service. Gateways only.

 | 

**Lead Distribution**

 |

All types can also use **Trigger**, **Entry Rule**, **Routing Rule**, **Break Rule** and **Delay**. All except the Lead Conversion and Lead Distribution types can use **Service Level Agreement**. [Router blocks reference](https://support.rework.com/article/lead-router-blocks) explains every block.

## How routers run

A service can have many routers. When something happens to a lead, **every running router whose trigger matches runs, one after the other, in list order**. The first match does not stop the others.

On the **Routers** page the top router runs first. Drag the handle on the left of a row to reorder. The number on each row is its priority.

What this means in practice:

- A Lead Owner Router and a Campaign Router can both run on the same new lead. That is normal.
  
- If two Lead Owner Routers both match the same lead, both assign. The lead is reassigned twice, and the router that assigns last decides who keeps it. Keep one owner router per trigger, or use **Entry Rule** blocks so their leads never overlap.
  
- A router that is still busy with a lead (for example, waiting on a deadline) is skipped for that lead. It never runs twice at once on the same lead.
  

## Triggers

The **Trigger** block says when a router starts. Click it and choose an **Event**:

| 
Event

 | 

Router starts when

 |
| --- | --- |
| 

**Record is created**

 | 

A new lead is created, by any source, by hand or by import.

 |
| 

**Record is updated**

 | 

A lead changes. Pick fields in **When these fields change** to narrow it, for example **Stage** or **Status**. Leave it empty to start on any meaningful change.

 |
| 

**Manual / API**

 | 

You start it yourself with **Trigger router**, or another router starts it with the **Enroll in flow** action. See [SLA reports and tracing a lead's route](https://support.rework.com/article/lead-sla-reports).

 |

> **Note:** **Owner** and computed fields cannot start a router. Otherwise a router that changes the owner would start itself again in a loop.

## Build your first router

You will build a router that gives every new lead to the next person on a team and starts a 15-minute response clock. It takes about 15 minutes.

**Before you start:**

- A distribution team with at least one active member. See [Distribution teams](https://support.rework.com/article/lead-distribution-teams).
  
- An **Active** SLA metric, for example "First response". See [SLA metrics](https://support.rework.com/article/lead-sla-metrics).
  

### Step 1: Create the router

1. In the sidebar, open your service, then click **SLA & Routing**. You land on **Routers**.
   
2. Click **New flow**. A dialog named **New SLA flow** opens.
   
3. Check **Service**, then type a **Flow name**, for example "New lead to sales team".
   
4. Under **Flow type**, click **Lead Owner Router**. Add a **Description** if you like.
   
5. Click **Create**. The router opens on the **Flow Editor** tab, with a gallery titled **Build your routing flow**.
   

![The New SLA flow dialog opened from inside a service, with the Flow name filled in](https://storage.googleapis.com/reworkv3-public/success/261015/TF4BKB9YDwEJpMwvoFa2PHkPJ2uG2vZfMFIIpw717xFjAM6hU4CO6aUnTA2N07Gr/img.9XbVa9r5R2Z1Xm7iL6uwxHpl3AEKzgGnnG8OLa69rd5jCYtDfA0RKJIqUtK0LobB.png)

### Step 2: Pick a starting point

The gallery offers ready-made patterns: **Round Robin Assignment**, **Source Routing**, **Geographic Routing**, **Enterprise Routing** and **SLA Escalation**. It also offers **Start from a blank trigger**.

- Click **Round Robin Assignment** to get a **Trigger** and an **Assign & Update Ownership** block already joined. You will see a message asking you to attach your rules and teams. Then go to Step 4 and continue.
  
- Or click **Start from a blank trigger** and add the blocks yourself, as in the next steps.
  

Templates only draw the shape. You still pick your own team, rules and metric. Blocks that still need a pick show a warning.

![The empty router editor showing the template gallery with the Round Robin Assignment template](https://storage.googleapis.com/reworkv3-public/success/261015/JivCo7EaoFK9moapviC70AJXyEfrIBxMVj58Y58k84gf2eolQb9fHOemzHO5uA96/img.XPOn991nFQ5eW0K5IjMukAFZi2jShirRDGUBZe3Cng6GMJapRZrQFtahzKDqc9T1.png)

### Step 3: Set the trigger

1. Click the **Trigger** block. A panel named **Node config** opens on the right.
   
2. Under **Event**, choose **Record is created**.
   

You should see the block on the canvas now say it fires when a lead is created.

### Step 4: Add an Entry Rule

An **Entry Rule** is a gate. Only leads that match its rule continue. The rest end here and are left alone.

1. Under the **Trigger** block, click the **+** button (its tooltip says **Add step**). A searchable list of blocks opens.
   
2. Click **Entry Rule**.
   
3. In the panel, open the **Rule** picker. Choose a rule, or choose **New rule** at the bottom to write one. For a first test, pick the **Catch-all** preset. It lets every lead through.
   

You should see the rule name on the block. To write real conditions, see [Routing rules](https://support.rework.com/article/lead-routing-rules).

### Step 5: Add Assign & Update Ownership

1. Under the **Entry Rule** block, click **+**, then choose **Assign & Update Ownership**.
   
2. In the panel, leave **Assign to** on **Team**.
   
3. Under **Distribution team**, pick your team.
   

You should see the team name and the number of members on the block.

### Step 6: Add the response deadline

1. Under the **Assign & Update Ownership** block, click **+**, then choose **Service Level Agreement**.
   
2. For **Evaluate by**, choose **Metric**.
   
3. For **When to evaluate**, choose **On metric evaluation**. The block then follows the metric's own target, so you do not enter a duration.
   
4. Under **Metric**, pick your "First response" metric. Only **Active** metrics are listed.
   
5. Under **On metric breach, do**, tick **Send message**. The owner is always notified. This sends a bell message.
   

"Breach" means the clock ran out before the lead was handled. [Router blocks reference](https://support.rework.com/article/lead-router-blocks) explains every option, including **Re-assign**.

### Step 7: Fix any issues

A badge in the top bar counts what is still missing, for example **2 issues**. Click it to see a list titled **Fix before publishing**. Click a line to jump to that block. Common lines are **No team selected**, **No rule selected** and **Selected metric is inactive or unavailable**.

The **Publish** button stays grey until the count is gone.

### Step 8: Publish

1. Click **Publish**.
   
2. You should see the message **Flow published**, and the badge next to the router name changes from **Draft** to **Running**.
   

**Save** stores your work as a draft. **Publish** saves it too, and makes it live. A router does nothing until you publish it, and an edit does nothing until you publish again. See [Publishing, versions and republishing](https://support.rework.com/article/lead-publishing-and-versions).

> **Important:** The most common mistake is editing a router, a rule or a team and forgetting to publish again. The live router keeps using the old version until you do.

## What a finished router can look like

Here is a real one, **Inbound lead routing**. The trigger **New lead created** **(1)** leads to a gate **Reachable enquiry?** **(2)**. A **Routing Rule** named **Wholesale enquiry?** **(3)** sends matching leads to an assign block that shares them round-robin across the Wholesale / B2B team **(4)**. An SLA block **First response within 4h** **(5)** follows. When you are happy with the diagram, click **Publish** **(6)**.

![Router Flow Editor for Inbound lead routing with the New lead created trigger, the Reachable enquiry gate, the Wholesale enquiry branch, the Wholesale to B2B team assign block, the First response within 4h SLA block and the Publish button highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/74Z6KMjNeDqsxBJCwAjDo5Ujml03n2yh00TFYOyukYc3OmR0zNXrqghxiiSIFDED/img.fsv9BoMO2nSTtoQGSOIWB3AQvXI8mPRTw4JprYFqAbovC5uFxdVO7kgGEv1x2mgg.png)

Here is the same idea as a plan you can copy:

1. **Trigger:** Record is created.
   
2. **Entry Rule:** is this a real lead? Junk ends here.
   
3. **Routing Rule:** enterprise? If yes, assign to the Enterprise team with an SLA of 15 minutes.
   
4. **Otherwise:** assign by round-robin to Inside Sales with an SLA of 4 hours.
   

## Test your router

1. Open your service's lead list, click **New lead**, fill in a name and email, then click **Create lead**. See [Get started with Lead](https://support.rework.com/article/lead-getting-started).
   
2. Open the new lead. You should see an owner within a few seconds.
   
3. Click the lead's **Automation** tab. Under **Routers** you should see your router. Click it to see which blocks ran.
   
4. In **SLA & Routing**, open **SLA node evaluations**. You should see a row for each block that ran.
   

If the owner is empty, see Troubleshooting below and [SLA reports and tracing a lead's route](https://support.rework.com/article/lead-sla-reports).

## Troubleshooting

| 
Symptom

 | 

Why it happens

 | 

What to do

 |
| --- | --- | --- |
| 

The router never starts

 | 

It is still a **Draft**, or its trigger does not match what happened.

 | 

Check the badge says **Running**. Check the **Event** on the **Trigger** block.

 |
| 

A rule or team edit changed nothing

 | 

The live router still uses the old version.

 | 

Republish. See [Publishing, versions and republishing](https://support.rework.com/article/lead-publishing-and-versions).

 |
| 

**Publish** is grey

 | 

The router has validation issues.

 | 

Click the **N issues** badge and fix each line.

 |
| 

Leads all go to one person

 | 

Others are paused or at a limit, or the team has one active member.

 | 

Open the team's **Members** and **Monitoring** tabs. See [Distribution teams](https://support.rework.com/article/lead-distribution-teams).

 |
| 

Nobody gets assigned

 | 

Every member is paused, over a limit or inactive.

 | 

Read the run log. It says "No eligible assignee" and why.

 |
| 

A lead sits in the pool

 | 

Nobody claimed it, and the team keeps waiting by default.

 | 

See [Lead pools: broadcast and claim](https://support.rework.com/article/lead-pools).

 |
| 

A lead went to the wrong person

 | 

A different router, or an earlier block, decided.

 | 

Trace it in [SLA reports and tracing a lead's route](https://support.rework.com/article/lead-sla-reports).

 |
| 

Reps cannot see unowned leads

 | 

Access settings hide them by default.

 | 

See [Access and visibility](https://support.rework.com/article/lead-access-and-visibility).

 |

More fixes: [Fix it by symptom](https://support.rework.com/article/lead-fix-by-symptom) and [Common errors and fixes](https://support.rework.com/article/lead-common-errors).
