Lead routing

Updated November 24, 2026

Lead routing is the process of assigning each new lead to the right sales rep, team or queue, using rules based on fields such as territory, company size, product interest or account ownership. Routing runs when a lead is created or qualified, and a fallback owner catches leads no rule matches. Round-robin distribution, which rotates leads evenly across reps, is one common routing method.

In short: Lead routing assigns each new lead to an owner through ordered rules on territory, size or account, with round-robin rotation for ties and a default owner for leads no rule matches.

How lead routing works

Lead routing turns a new record into an owned record. It runs at a trigger, applies ordered rules, assigns an owner and has a fallback for everything the rules miss.

Trigger. Routing usually runs when a lead is created, for example from a web form, or when it reaches a stage such as MQL. Salesforce lets an administrator create a lead assignment rule that decides how web leads are assigned to users or queues 3.

Matching rules. Rules check fields on the lead in a set order. A typical order is existing account owner first, then named accounts, then territory and company size, then product line. The first rule that matches wins, so changing the order changes who gets the lead.

Distribution within a team. When a rule sends a lead to a team rather than a person, a distribution method picks the rep. HubSpot's Rotate record to owner workflow action offers load balanced, round robin and random distribution for leads 1. Round robin assigns records in a rotating, sequential order 1. HubSpot counts assignments per rotate action, not by how many records each user owns across the account 2. Adding or removing an owner after the workflow is on resets those counts 1.

Eligibility. Not every user can receive leads. In HubSpot, users in a rotation need an active Sales or Service Hub Professional or Enterprise seat 1. If no eligible user is left, no owner is assigned 1.

Fallback. Every routing setup needs a catch-all. In Salesforce, a web lead that the assignment rule cannot place goes to the Default Lead Owner set in Lead Settings 3. Without assignment rules, every web lead goes to that owner 3. A growing fallback queue usually means the rules or the data have gaps.

Routing depends on the fields a lead carries when it arrives. A rule on employee count cannot fire on a record with no employee count, which is why routing and lead scoring often sit right after an enrichment step.

How to route leads with RichAPI data and the distribute_leads endpoint

RichAPI does not assign owners in a CRM. It helps in two places, before the rules run and inside a custom rotation.

Fill the routing fields first. Run firmographics lookups on the lead's company so the territory, size and industry rules have values to match. A rule that keys on headcount or country needs those fields present before the routing step starts. Pair this with lead qualification rules so unqualified records do not take a rep's turn.

Clean the keys. Utility endpoints such as clean_domain and normalize_company tidy the values that account matching depends on, for 0.5 credits each 4. A lead from acme.com/pricing and one from www.acme.com should match the same account owner.

Rotate without a routing tool. The distribute_leads endpoint round-robins a list of values across a list of assignment labels, such as a batch of leads across rep names 4. The playbook calls this lead routing without a routing product 4. It costs 0.5 credits per call and, like every utility endpoint, bills on any 2xx response 4.

Store the index. The request takes a current_index so the next batch starts where the last one stopped 4. The playbook warns that without it every batch starts at the first rep, who then gets more than a fair share 4.

The CRM still owns the write. A workflow, middleware tool or backend job takes the assignment and updates the owner field, and the CRM's own fallback rules stay in place for anything the job skips.

Example of lead routing for inbound demo requests

A software company gets inbound demo requests from many countries. It has a team of two account executives for Europe, an enterprise rep and a default owner in sales operations. It routes in four steps.

Enrich. When a request arrives, a workflow looks up the company and adds headcount, country and industry. Records that come back without a country keep a flag for review.

Match. Ordered rules run on the enriched record.

text
order  rule                                   owner
1      account already has an owner           existing owner
2      headcount over 1000                    enterprise rep
3      country in Europe                      Europe team rotation
4      no match                               sales operations queue

Rotate. Leads that land in the Europe team rotation go through distribute_leads in batches, with the two rep names as assignment labels 4.

text
curl -s https://api.richapi.ai/api/v1/distribute_leads \
  -H "x-api-key: $RICHAPI_KEY" -H "content-type: application/json" \
  -d '{"values_associated_with_labels": "lead-101,lead-102,lead-103",
       "assignment_labels": "Rep A,Rep B", "current_index": 0}'

The job saves current_index after each batch and passes it on the next run, so the rotation does not restart with the first rep every time 4. Each call costs 0.5 credits 4.

Fall back. Anything left over lands in the sales operations queue, and someone reviews it every morning. If that queue grows, the team checks whether enrichment is missing fields or a rule is too narrow.

The same design works inside a CRM. A HubSpot team could use Rotate record to owner with round robin distribution for step three instead of the API call 1.

Lead routing vs lead scoring

The two steps often run back to back. Lead scoring decides how good a lead is. Lead routing decides who handles it. A score can be one input to a routing rule, for example sending high scores to a senior rep.

Lead routingLead scoring
What it answersWho should work this lead?How likely is this lead to buy?
InputTerritory, size, account and team rulesFit attributes and engagement signals
OutputAn owner or a queueA number or a grade
Cost driverRule upkeep and missing fieldsModel upkeep and data quality
Main riskLeads stuck in the fallback queueScores that do not predict buying
Use it whenMore than one person can take a leadReps need to decide what to work first
Read the reference →

Frequently asked questions

What is round robin lead routing?

Round robin assigns leads to a set of reps in a rotating, sequential order, so each rep gets the next lead in turn 1. It is one distribution method inside lead routing, usually applied after rules have picked the team.

What happens to a lead that matches no routing rule?

It goes to a fallback owner or queue. In Salesforce, a web lead the assignment rule cannot place is assigned to the Default Lead Owner 3. Review that queue often, because it collects leads with missing or messy fields.

Does lead routing need enriched data?

It needs whatever fields the rules use. A rule on headcount, country or industry cannot fire if the form never asked and nothing filled the field. Enriching the company before routing gives the rules values to match.

Can RichAPI assign leads in my CRM?

Not directly. Its distribute_leads endpoint returns a round robin assignment across labels you pass in, for 0.5 credits per call 4. A workflow or backend job then writes that owner to the CRM.

The bottom line

Lead routing assigns every new lead to an owner through ordered rules, a distribution method such as round robin and a fallback owner for leads no rule fits 3. Its accuracy depends on the fields a lead carries, so enrich and normalize before the rules run. RichAPI can fill those fields and run a simple rotation with distribute_leads, while the CRM keeps the final write 4.

Sources

  1. Assign and rotate record owners using workflows, HubSpot Knowledge Base
  2. Assign ownership of records, HubSpot Knowledge Base
  3. Who owns new web-generated leads?, Salesforce Help
  4. GTM Data Utilities: 17 Boring Endpoints That Stop Pipelines Breaking, RichAPI

More terms