FlowsBook a callSign inCreate free accountSign up
AI employees and automation

How to automatically assign leads to sales reps by area, fairly

Share each day's new leads between your reps by territory: compact patches of about equal size, each rep's list sent by email or an app, with no spreadsheet.

Part of the guide AI employees

By the xMap team · · 5 min read

To automatically assign leads to sales reps by area, group the day's new leads into compact patches of about the same size, give each patch to one rep, and send each rep only their own list. An AI employee built in xMap Flows can do this every morning, so nobody spends the first hour of Monday dividing up a spreadsheet and arguing about who got the good streets.

This is written for a sales manager with a field or regional team, perhaps three to twelve people, whose leads are tied to a place: shops, clinics, restaurants, offices. If your reps sell purely by phone and geography means nothing, a round-robin in your CRM will serve you better, and you can stop here.

Why splitting by area beats taking turns

Round-robin is fair by count and careless about the map. Give four reps every fourth lead and each one ends up crossing the whole city, passing colleagues on the way. Their visits per day fall, and the time goes into driving.

Splitting by area changes what "fair" means. Each rep holds a tight cluster, so a morning's calls sit close together, and every cluster holds about the same number of leads. That second half matters as much as the first. A patch drawn only by geography can leave one rep with a dense centre and another with a handful of far-off addresses.

You can see why density matters from a single market. xMap's places database lists 866 pharmacies within 10 km of the centre of London (November 2026). A rep selling to pharmacies there could fill a week inside a small part of that circle, so a split by distance alone would hand out very uneven workloads. Balancing the count is what keeps it even.

How Split by territory shares out the list

The Split by territory block takes every item that reaches it and divides them between your reps. You tell it either a number of reps, from 2 to 12, or the people by name or email, up to 20. It then builds compact groups and caps each at its share: with 25 leads and 3 reps, nobody gets more than 9.

Each lead comes out with three new fields:

  • owner: the rep, as the name or email you typed, or Rep 1, Rep 2 and so on.
  • territory: the patch, named by its direction from the middle of all the leads, such as North, South-east or Centre.
  • territory_size: how many leads that rep received in this run.

A worked example: three reps, one city

A made-up case: Marisol runs sales for a coffee equipment supplier in Mexico City. She has three reps, Ana, Luis and Pilar, and wants them to hear about newly listed cafes and bakeries each weekday before they set off.

  1. Schedule: every weekday at 07:00, in Mexico City's time zone.
  2. Area of interest: Mexico City.
  3. Nearby places: cafes and bakeries.
  4. Only new: drops anything this flow has already found, so nobody is sent the same lead twice.
  5. xMap LLM: scores each place for fit with a short reason, using her description of a good customer.
  6. Split by territory: People I name, with Ana, Luis and Pilar.
  7. Route planner: One route for each rep, which reads the owner field and puts each person's stops in order.
  8. Email: the day's list, showing each lead's owner and territory.

Suppose, for illustration, that Tuesday brings 24 new places. Each rep receives about eight, close together, in visiting order. Marisol changed none of it by hand.

Getting each rep only their own list

The split labels the leads, but the sending is a separate choice. A single email with everyone's list works for a small team and lets the manager see the whole picture. For a private list per person, add a Branch or Filter on owner in front of one Email block per rep. If each lead's owner field holds an email address, an Email block set to one email per item can also write to {{owner}}, though each rep then gets one message per lead rather than a digest. A Slack or WhatsApp message works the same way.

Where automatic splitting goes wrong

  • Expecting patches that never move. Territories are worked out from where this run's leads are, so boundaries can shift a little from day to day. If reps own fixed areas, keep each rep's area in a table in My data and use Match with my table instead.
  • Splitting before filtering. Put your filters and scoring first. Otherwise a rep can be given a fair share of leads that are then thrown away, and the workload ends up uneven.
  • Forgetting leads with no position. These go to whichever rep has the fewest and are marked territory No position. Glance at them, because they usually need a manual check.
  • Treating equal count as equal value. The block balances how many leads each person gets, not how good they are. Show the fit score in the list so a manager can step in when one patch is clearly stronger.

Where to start

The quickest route is the Split my city into fair sales territories template, then change the city and kind of place to your own. More jobs like this one are collected in the guide to AI employees for sales prospecting.

Questions

Does this replace lead routing in my CRM?

No. It decides who should get each lead by area and delivers the list. xMap Flows holds no pipeline, statuses or deal values, so your CRM stays the place where deals are tracked.

Can I name my reps instead of using Rep 1 and Rep 2?

Yes. Choose People I name and type up to 20 names or email addresses. Each lead's owner field then carries that name or address.

Will the same rep always get the same area?

Not exactly, because territories are built from each run's leads and can shift a little. For fixed patches, keep a table of areas and rep names and match leads against it.

What about a rep who is on holiday?

Take their name out of the block's list and the next run shares the leads between the others.

Templates that do this

Read next

More on ai employees and automation · Every article · Templates

Put it to work

An AI employee in xMap Flows does this on live data, on its own timetable. Start from a template or describe it in plain words.