# Playbook: set up Lead from scratch

Build a working Lead pipeline from an empty workspace: stages, fields, access, a source, a team, a router with a response clock, and a test lead.

Source: https://support.rework.com/article/lead-playbook-first-setup

> **In plain words:** This playbook takes you from an empty workspace to a pipeline that works. A test enquiry arrives, gets an owner on its own, and a response clock starts running. You do the steps in a set order, because each step points at something you built in the step before. New to the words? Keep [Lead basics: words to know](https://support.rework.com/article/lead-basics) open beside this page.

**Who this is for:** an admin setting up Lead for the first time, or adding a new team's pipeline. **What you'll have at the end:** one lead service with stages, statuses and fields, access rules, one source that sends leads in, a team that shares them, a published router, an Active response clock, a scoring setup and notifications switched on. A test lead will have gone through all of it. **Time:** 60 to 90 minutes.

## Why this matters

Most enquiries are lost for a boring reason: nobody picked them up fast enough. Lead can catch the enquiry, find the right person and start a timer for you. But each piece only works if the piece before it exists.

The order below is not a matter of taste:

| 
Build this first

 | 

Because the next thing needs it

 |
| --- | --- |
| 

The lead service and its stages

 | 

Stages, fields, sources and routers all live inside the service.

 |
| 

Custom fields

 | 

A source can only fill a field that already exists.

 |
| 

Access & visibility

 | 

It decides who sees leads that have no owner yet, and that matters when routing fails.

 |
| 

The source

 | 

Without one, you have no way to send a test lead.

 |
| 

The team, then the SLA metric

 | 

A router block asks you to pick a team and a metric. The list is empty until they exist.

 |
| 

The router, then **Publish**

 | 

A router does nothing until it is published.

 |
| 

The test lead

 | 

It proves all of the above in one go, before real customers arrive.

 |

The scenario is Bright Dental, a company that sells dental software. Linh is the sales manager. Hoa, Nam and Tuan are reps. Enquiries come from a demo request form on the Bright Dental website.

## Words used in this playbook

- **Lead service:** a pipeline. One place where a team works its leads.
  
- **Stage:** how far along a lead is, such as New or Connected. Stages sit in four groups.
  
- **Status:** what is going on with a lead right now, such as Open or Nurture.
  
- **Custom field:** an extra box on every lead that you define.
  
- **Source:** one connected sender of leads, such as a website form.
  
- **Distribution team:** a group of people who share leads, and the method for sharing them.
  
- **Router:** an automatic flow that runs when something happens to a lead. It can assign an owner and start a deadline.
  
- **SLA metric:** a clock with a target, such as "first reply within 1 hour".
  
- **Publish:** make a router live. Until you do, it is only a draft.
  

## Before you start

- You are an admin in Lead. Creating a service and opening **Settings** pages are admin actions. See [Access and visibility: who sees which leads](https://support.rework.com/article/lead-access-and-visibility).
  
- The people who will work leads are active users in your workspace.
  
- You know the three or four facts a rep needs about each enquiry. For Bright Dental: type of practice, number of chairs and the software they use now.
  
- Anyone who needs a working-hours target has a Timesheet. See [SLA metrics](https://support.rework.com/article/lead-sla-metrics). This playbook uses a 24/7 clock, so you can skip it today.
  

## Steps

### Step 1: Create the lead service

1. In Lead, open **Settings** in the left sidebar.
   
2. Click **Lead Services**.
   
3. Click **Create**. A dialog titled "Create a new lead service" opens.
   
4. Type "Clinics" in **Lead service name** and click **Create**. The settings of the new service open on the **General** tab.
   
5. Under **Service owners**, add Linh and one more person.
   
6. Check that **Status** is **Active**, then click **Save changes**.
   

You should see "Clinics" in the left sidebar. A new service already has six stages, five statuses and four sources. See [Lead services and stages](https://support.rework.com/article/lead-lead-services-and-stages).

### Step 2: Name the stages and statuses

1. In the service settings, click **Stages**.
   
2. Rename a stage with the pencil icon, or add one with **Add** on a group header. Keep each stage in the right group. For Bright Dental, add **Demo booked** to the **In progress** group.
   
3. Click **Statuses**. Leave the five defaults: Prospect, Open, Nurture, Inactive and Not a target.
   

> **Tip:** The group matters more than the name. Reports are built on the four groups, so a stage in the wrong group gives wrong numbers later.

### Step 3: Add the custom fields

1. In the service settings, click **Lead fields**, then the **Custom fields** sub-tab.
   
2. Click **New Field**, then **Internal Field**. A dialog opens.
   
3. Type the **Label** "Practice type". Choose the **Type** **Dropdown** and add the options Clinic, Hospital and Lab. Save.
   
4. Repeat for "Number of chairs" (type **Integer**) and "Current software" (type **Text**).
   

Keep it to three to five fields. Each one should help a rep decide what to do, or help a routing or scoring rule later. See [Custom fields](https://support.rework.com/article/lead-custom-fields).

> **Note:** Do this before you connect a source. A source's mapping can only point at fields that exist. Adding fields later means going back to every source.

### Step 4: Decide who sees what

1. In the service settings, click **Access & visibility**.
   
2. Under **Who can view leads without an owner?**, leave **Only service managers**. A lead that fails to get an owner is then visible to Linh, who can assign it.
   
3. Under **Who can view reports of the service?**, leave **Only service managers**, or add the head of marketing.
   
4. Tick **Prevent exporting leads** if reps should not take the list away.
   
5. Click **Save changes** in each card you changed.
   

Each card saves on its own. See [Access and visibility: who sees which leads](https://support.rework.com/article/lead-access-and-visibility).

### Step 5: Connect a source

1. In Lead, open **Settings**, then **Lead sources**. Pick "Clinics" in the service selector.
   
2. On the **Source integrations** tab, click **Connect new**.
   
3. Click **Connect** on the **HTTP API** card.
   
4. Type the **Name** "Website: demo request" and click **Connect**.
   
5. Click the new source's name. On the **Details** tab, copy the address under **Endpoint**.
   

Keep the address private. Anyone who has it can create leads. Your developer, Zapier or your website builder will send the demo form to this address. The full walkthrough is [Playbook: get website form leads into Lead](https://support.rework.com/article/lead-playbook-website-form). If your leads come from Facebook ads, use [Playbook: Facebook lead ads into Lead](https://support.rework.com/article/lead-playbook-facebook-lead-ads) instead.

For this playbook you only need the address, so you can send a test entry in Step 10.

### Step 6: Create a distribution team

1. Open the service in the left sidebar, then click **SLA & Routing**, then **Distribution teams**.
   
2. Click **New team**. In the **New distribution team** dialog, type the **Team name** "Clinics sales".
   
3. Under **Members**, add Hoa, Nam and Tuan.
   
4. Choose the **Distribution method** **Equal round-robin**, which means everyone takes a turn.
   
5. Click **Create team**.
   

See [Distribution teams](https://support.rework.com/article/lead-distribution-teams) for weights and daily limits.

### Step 7: Write a routing rule

A **routing rule** is a saved yes-or-no question about a lead. You will use it as a gate, so junk entries do not take a rep's turn.

1. In **SLA & Routing**, click **Routing rules**, then **New rule**.
   
2. Type the **Rule name** "Has an email".
   
3. Under **Conditions**, click **Select field**, choose **Email**, and choose the operator **is not empty**.
   
4. Click **Create rule**.
   

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

### Step 8: Create the response clock

1. In **SLA & Routing**, click **SLA metrics**, then **New metric**.
   
2. Choose the **Metric type** **Time**.
   
3. Type the **Metric name** "First response".
   
4. Set the **Measurement scope** to **Per object + owner**. Keep **Occurrence** on **Single**.
   
5. Under **Start on events**, pick **Lead assigned (includes reassignment)**.
   
6. Under **Stop on events**, pick **First activity logged after assignment (note, email, call, meeting, quick log)**.
   
7. Tick **Notify the owner when this metric is breached**, then click **Create**.
   
8. On the metric's card, click **Add target**. Type the **Label** "Everyone", set the target to 1 and the **Unit** to hours under **Calendar (24/7)**, then click **Add target**.
   
9. Click the **⋯** menu on the card, then **Activate**. The badge changes to **Active**.
   

A new metric starts as **Inactive** and measures nothing until you activate it. Start with a generous target and tighten it after two weeks of real numbers. See [SLA metrics](https://support.rework.com/article/lead-sla-metrics).

### Step 9: Build and publish the router

1. In **SLA & Routing**, open **Routers** and click **New flow**.
   
2. Type the **Flow name** "New lead to Clinics sales". Under **Flow type**, click **Lead Owner Router**, then click **Create**.
   
3. In the gallery, click **Round Robin Assignment**. You get a **Trigger** block joined to an **Assign & Update Ownership** block.
   
4. Click the **Trigger** block. Under **Event**, choose **Record is created**.
   
5. Click the **+** between the two blocks (tooltip **Insert step**) and choose **Entry Rule**. In the **Rule** picker, choose "Has an email".
   
6. Click the **Assign & Update Ownership** block. Leave **Assign to** on **Team** and pick "Clinics sales" under **Distribution team**.
   
7. Under that block, click **+** and choose **Service Level Agreement**. For **Evaluate by**, choose **Metric**. For **When to evaluate**, choose **On metric evaluation**. Pick the "First response" metric.
   
8. Under **On metric breach, do**, tick **Send message**.
   
9. If the badge in the top bar shows **N issues**, click it and fix each line.
   
10. Click **Publish**. You see **Flow published**, and the badge changes from **Draft** to **Running**.
    

Now the router is live. Remember that any later change to this router, a rule or the team needs a new **Publish**. See [Publishing, versions and republishing](https://support.rework.com/article/lead-publishing-and-versions).

### Step 10: Send a test lead

1. Send one test entry to the **Endpoint** from Step 5. Use your form tool, or ask your developer to post `{"ext_id": "test-1", "name": "Mai Tran", "email": "mai@example.com", "practice_type": "Clinic", "number_of_chairs": 6}` to it. The field names in the request must match the **Code** of your custom fields.
   
2. In Lead, open "Clinics" in the sidebar. The new lead is at the top of the list.
   
3. Open the lead. Within a few seconds it has an owner, for example Hoa.
   
4. Click the lead's **Automation** tab. Under **Routers**, click "New lead to Clinics sales" to see which blocks ran.
   
5. In **SLA & Routing**, open **Metric evaluations**. The "First response" clock shows **In progress**.
   
6. Sign in as the owner, or ask them, to add a **Note** on the lead. Refresh **Metric evaluations**. The clock now shows **Met**.
   
7. Open the source, then **Transform fields**. If a custom field stayed empty, map it. See [Mapping a source's fields](https://support.rework.com/article/lead-mapping-source-fields).
   

### Step 11: Set up scoring basics

Scoring ranks leads so reps start with the best ones. Do it after the first test, because routing works without it.

1. In the service settings, click **Scoring**.
   
2. Under **Fit**, click **Add rule**. Add "Number of chairs is at least 4" worth 40 points, and "Email is a work email" worth 20.
   
3. Under **Intent**, add "Number of meetings is at least 1" worth 40 points.
   
4. Click **Test with a lead**, pick your test lead, and read the trace.
   
5. Click **Save changes**. When asked **Re-score existing leads now?**, click **Re-score now**.
   

See [Scoring and scorecards](https://support.rework.com/article/lead-scoring) for grades, priority and scorecards.

### Step 12: Switch on the notifications

1. In Lead, open **Settings**, then **Preferences**, then **Notifications**.
   
2. Under **Your leads**, keep **Lead assigned to me** on.
   
3. Under **Distribution & alerts**, keep **SLA breaches** and **Lead pool offers** on.
   
4. Ask each rep to do the same.
   

## Check it worked

- The test lead has an owner and shows the router under **Automation**.
  
- **Metric evaluations** shows one clock for the lead: **In progress** at first, then **Met** after a note.
  
- A second test lead goes to the next person on the team (Nam, after Hoa).
  
- The owner got a bell message, **Lead assigned to me**.
  
- The lead's score shows on its detail screen, with a priority such as **Hot** or **Cool**.
  

## Troubleshooting

| 
Problem

 | 

Why it happens

 | 

What to do

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

The test lead has no owner.

 | 

The router is still a **Draft**, the lead has no email so the **Entry Rule** stopped it, or the team has no eligible member.

 | 

Check the badge says **Running**. Open the **Automation** tab and read the run. See [SLA reports and tracing a lead's route](https://support.rework.com/article/lead-sla-reports).

 |
| 

**Publish** is grey.

 | 

A block is missing a pick.

 | 

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

 |
| 

**Metric evaluations** is empty.

 | 

The metric is **Inactive**, has no target, or no lead has been assigned yet.

 | 

Activate it and add a target.

 |
| 

The sender gets a 404.

 | 

The address is wrong or the source is paused.

 | 

Copy the address again from the source. See [Connecting sources](https://support.rework.com/article/lead-connecting-sources).

 |
| 

A custom field is empty on the lead.

 | 

The sender's key does not match the field's **Code**, so it was kept only as raw data.

 | 

Map it on **Transform fields**.

 |
| 

Reps cannot see the test lead.

 | 

Reps see only leads they own, created or follow.

 | 

Check the owner. See [Access and visibility: who sees which leads](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).
