# Set up lead assignment rules

Choose who gets each new lead, and what happens to a lead that no rule matches.

Audience: dealer-managers
Availability: available
Canonical source: https://rooftoprv.com/docs/set-up-lead-assignment-rules

Assignment rules decide which team member gets a new lead from a customer who doesn't have one yet. You set them up once, and they run on every new lead they cover.

## Before you start

- To open the page, you need the **View team** permission, plus **View all leads** or **View own leads**.
- To change anything on it, you need the **Lead assignment rules** permission.
- To see **Assignment history** and **Next in rotation:**, you need the **Choose who gets a lead** or **Lead assignment rules** permission. Without either, you see the rules but not who got each lead or who is next.
- The page sets itself up the first time someone with **Lead assignment rules** opens it. If it shows **Set up lead assignment**, select it.
- You start with **Lead assignment** turned on, a **Staff profile page** rule and a **Sales rep URL** rule turned on, and a **Round robin** rule turned off. Leads that match no rule are left unassigned.

## Turn lead assignment on or off

While **Lead assignment** is off, no rule or fallback runs. New customers stay unassigned until someone assigns them. Customers who already have a salesperson keep them either way.

1. Go to **CRM** > **Settings** > **Leads** > **Assignments**.
2. Turn **Lead assignment** on or off.
   While it's off, the page shows **Lead assignment is disabled**.

Idle lead reassignment keeps running while this is off. See [Reassign idle leads](https://rooftoprv.com/docs/reassign-idle-leads).

## Add a rule

You can't rename a rule. To change who a **Specific member** rule assigns to, delete it and add a new one.

1. Select **Add rule**.
2. Choose a rule type.
   The table below says what each one does.
3. Fill in what the type asks for, such as **Select member** or **Assign matching leads to**.
4. Select **Add rule**.
   The rule goes to the bottom of the list. It's named after its type, or after its departments for a **Lead type** rule, such as "Service leads".

| Rule type | Who gets the lead |
|---|---|
| **Lead type** | A person or a rotating team, for leads of the departments you pick, like Service. See [Route leads by lead type](https://rooftoprv.com/docs/route-leads-by-type) |
| **Staff profile page** | The team member whose profile page on your site the shopper wrote from. Every site already has this rule. It isn't offered in **Add rule**, and you can't delete it, but you can turn it off or move it |
| **Sales rep URL** | The salesperson whose referral link the shopper used. See [Share your referral link](https://rooftoprv.com/docs/share-your-referral-link) |
| **Round robin** | The next person in a rotation, so leads are spread evenly |
| **Territory** | The team member assigned to the location the lead came in for |
| **Specific member** | Always the same person |
| **Product filter** | One person, for leads about RVs that match the filter |

Every type except **Product filter** also offers **Lead types** when you add it. Each rule then shows a **Routes:** line. A rule with no lead types covers only Sales leads and leads with no type. To change that, select **Change** next to **Routes:**.

Round robin, product filter, and territory rules need one more step after you add them.

### Finish a round robin rule

1. Select **Configure** on the rule.
2. Pick people in **Select team members**.
   An empty list includes every active team member with a role. That includes managers and office staff.
3. Select **Save**.
   The rotation goes in alphabetical order by name.

### Finish a product filter rule

Until you save a filter, the rule matches nothing. Product filters only route Sales leads.

1. Select **Configure** on the rule.
2. Under **Filter type**, choose **Manufacturer**, **Brand**, **Specific listing**, **Listing status**, or **Lead kind**.
   Only the filter type that's selected when you save is kept.
3. Pick what to match.
4. Choose who gets the leads in **Assign to**.
5. Select **Save**.

### Finish a territory rule

The rule has no settings of its own. You give each person their locations on the **Team** page. You need the **Assign roles** permission.

1. On the **Team** page, select **Edit** on each person's row.
2. Pick their locations on the **Locations** tab.
3. Select **Save changes**.

If several people share a location, the one added to your team first always gets the lead. It doesn't rotate. A lead with no location, such as a general contact form, never matches a territory rule.

## Put rules in order

> **Warning:** A rule is deleted as soon as you select the trash can. There's no confirmation and no undo.

Rules run from top to bottom. The first rule that matches assigns the lead.

- To move a rule, use the up and down arrows beside its number.
- To pause a rule without deleting it, use the switch on the rule.
- To delete a rule, select the trash can icon.

A rule doesn't match when it has nothing to go on. For example, **Sales rep URL** skips a shopper who didn't use a referral link, and **Staff profile page** skips anything not sent from a profile page. **Specific member** skips if that person is deactivated. The next rule then gets a turn.

## Choose a fallback

When no rule matches, the fallback decides what happens. The fallback starts as **Leave unassigned**.

1. Under **Fallback**, select **Edit**.
2. Choose **Leave unassigned** or **Assign to specific member**.
3. For **Assign to specific member**, pick the person.
4. Select **Save**.

If the fallback person is deactivated, leads that match no rule stay unassigned.

If you use lead types, **Fallback** shows one menu per type instead. A choice saves as soon as you make it. See [Route leads by lead type](https://rooftoprv.com/docs/route-leads-by-type).

## Change who's next in the rotation

You need the **Choose who gets a lead** or **Lead assignment rules** permission to see it. Next to **Assignment history**, **Next in rotation:** shows who gets the next round-robin lead. It follows your top round robin rule that's turned on. That can be a lead type rule such as "Service leads". It's hidden when no round robin rule is on.

It's locked while **Lead assignment** is off or the rotation has one person. To change it, you need the **Lead assignment rules** permission. With **Choose who gets a lead** alone, you can see who's next but not change it.

1. Choose a different person in **Next in rotation:**.
2. Select **Confirm**.
   That person gets the next lead, and the rotation continues from them.
3. To change it back, select **Undo** on the message that appears.

## See who got each lead

You need the **Choose who gets a lead** or **Lead assignment rules** permission to see it. **Assignment history** lists the most recent 100 assignments and rotation changes from the past 30 days, automatic and manual. Each row says how the lead was assigned, such as **Round robin**, **Fallback**, or **Returned to previous rep**. Leads moved by the idle rule show **Time-based rule**.

Choose a method to show only those rows.

## What happens next

- A customer who already has an active salesperson keeps them. Rules only pick someone for customers with no salesperson.
- A message from a profile page by a customer who already has an active salesperson creates no new lead, even if the idle rule moved them before. It goes on the customer's conversation for their salesperson, and the team member whose page it was gets a read-only copy in their inbox.
- The one exception is a lead the idle rule moved. When that customer sends a new inquiry, **New inquiry starts fresh** treats it as a new lead. It's on unless you turn it off. See [Reassign idle leads](https://rooftoprv.com/docs/reassign-idle-leads).
- The assigned person gets the new-lead email. If they turned off the **New lead or website message** email in their notification settings, it goes to your dealership's lead email instead, unless that address is their own.
- The assigned person also gets a text if they turned on **Text** for **New lead or website message** and ROOFTOP can text them.

## Troubleshooting

**The page asks me to have someone else set it up**
The page hasn't been set up yet, and you don't have **Lead assignment rules**. Ask someone who has that permission to set it up.

**A lead went to the wrong person**
Check the order of your rules. The first match wins. Also check whether the customer already had a salesperson.

**New leads aren't assigned to anyone**
Check that **Lead assignment** is on and that at least one rule is turned on. Leads of a type other than Sales skip every rule with no lead types, so give that type a rule or a fallback.

**A territory rule never assigns anyone**
Give your team members locations on the **Team** page. Leads from forms that aren't tied to a location skip territory rules.

## Related guides

- [Route leads by lead type](https://rooftoprv.com/docs/route-leads-by-type)
- [Share your referral link](https://rooftoprv.com/docs/share-your-referral-link)
- [Reassign idle leads](https://rooftoprv.com/docs/reassign-idle-leads)
