FlowsBook a callSign inCreate free accountSign up
AI employees and automation

How to clean a sales list with AI before your reps ever see it

An AI employee that removes repeats, sorts every row into your categories, drops poor fits and checks its own notes, so reps get a list they can call.

Part of the guide AI employees

By the xMap team · · 6 min read

To clean a sales list with AI, do not hand the whole file to a chatbot and ask for a tidy version. Put the work in a fixed order: rules remove the exact repeats, AI sorts each row into your own categories, a filter drops what you would never sell to, AI scores and explains what remains, and a final check catches anything that should not reach a rep. Rules do what rules do reliably, and AI handles only the judgement calls.

This is for sales operations managers, founders and team leads who inherit lists from trade shows, old exports, regional managers or bought files. It walks through a five-block AI employee, explains why the order matters, runs a made-up list through it, and names the errors that do the most damage. The same flow sits comfortably within a wider sales prospecting setup.

Why the order of the steps matters

Every step changes what the next one sees. Remove repeats first, and you never pay attention twice for the same company. Classify before filtering, and your rule can rely on one tidy label instead of forty spellings. Score after filtering, so the AI spends its effort only on rows you might actually call. Check last, because that is the only point where the finished note exists.

OrderBlockWhat it settlesKind of work
1Remove duplicatesIs this the same company again?Rules
2Place classifierWhat kind of business is it?AI, from a fixed list
3FilterWould we ever sell to it?Rules
4xMap LLMHow good a fit, and why?AI, in your words
5Check the workIs the row ready for a rep?Rules and AI

The five steps in the order they run, and whether each is decided by rules or by AI.

The five blocks, one at a time

Remove duplicates

Remove duplicates compares rows by what you choose. Same website is usually the strongest test for companies, since it ignores http, www and the page, so https://www.example.com/menu and example.com count as one. Same phone compares digits only, whatever format each list used. Decide which copy survives too: the first, the best rated or the highest scored. If your oldest list holds the account owner's notes, put it first and keep the first.

Place classifier

Lists arrive with labels like "coffee", "espresso bar", "cafe/roastery" and blank. Place classifier gives every row one category from a list, in a field called clean_category. Use your own list of up to 60 labels, written the way your sales team talks about segments. With Merge duplicates on, it also joins rows with the same place ID, or the same name within 60 metres, and keeps the fields of both. That catches the branch that was typed two ways and slipped past the first step.

Filter

Filter applies one plain rule, and the rest stop there. Set it to Another field, clean_category, is, followed by the segments you serve, separated by commas. Use a second Filter for a second rule, such as a minimum rating. Nothing is guessed at this step, which makes it the easiest one to defend when a manager asks why a row vanished.

xMap LLM

xMap LLM on Score & rank gives each row a score from 0 to 100 and a one-sentence reason. The quality depends on your brief. "Score how good a lead this is" produces vague numbers. "We sell card terminals to independent food businesses with more than one site; score higher for repeat-visit trade, lower for chains that buy centrally" gives a rep something to act on.

Check the work

Check the work reads each finished row against your rules: every lead has a phone, the reason contains no number that is not in the row's data, no emojis, under 25 words. What code can test, it tests directly, and the remaining rules go to AI. Each row gets check_passed and check_issues, so a failure says what was wrong.

A worked example, with a made-up list

A payments company in Nairobi merges three files before a sales push: a trade show export, a reseller's list and an old CRM dump. All the numbers below are invented to show the shape of the result.

620Rows in
480After duplicates
310In our segments
120Scored 70+
104Passed the check
A made-up example. Every figure is invented to show how a list narrows at each step.

The 16 rows that failed the last step are the interesting ones. Most had a strong score and no phone number. Those go to a researcher, not back to the AI, for the reason given below. The reps start Monday with 104 rows, each with a category, a score and a sentence on why it is worth the call.

Mistakes that make a cleaned list worse

  • Asking AI to fill in a missing phone or website. A language model can produce a convincing number that belongs to nobody. In Check the work, a rule like "every lead has a phone" should not use Send it back, because rewriting cannot supply a fact the row lacks. Keep such rows marked, or remove them.
  • Deduplicating on company name alone. Two different firms can share a name in different cities, and one group can trade under several. Prefer the website or phone, and keep name matching for a final review.
  • Merging on a shared switchboard. Branches of one business, or tenants of one serviced office, can share a phone number. If your buyers are at branch level, Same phone will erase real accounts.
  • A category list with no home for the odd ones. Without an "Other" label, unusual businesses are forced into the nearest segment and pass your filter. Add one, then read a sample of it.
  • Deleting the originals. Keep the raw file. If a rule turns out to be wrong, you want to run it again rather than rebuild from memory.

Setting it up and trusting it

  1. Upload your file as a table in My data, and add a My data block as the flow's source.
  2. Add the five blocks in the order above and write your category list and scoring brief.
  3. Do a test run on the file and open each block's results. The See all view shows what each block passed on, and for Filter and Remove duplicates, what it removed and why.
  4. Read 20 removed rows. If you would have kept any, loosen the rule that dropped them.
  5. Add Google Sheets or Email at the end so the clean list reaches the team.

To stop the work repeating, add Match with my table with your current customers and keep only rows not found, so reps never cold-call an existing account. If new files arrive regularly, the New rows trigger can run the same cleaning whenever rows are added. The templates Enrich a lead sheet and push it to HubSpot and Prospects not yet in my CRM are good starting points.

Questions

Can AI remove duplicates from a sales list?

It can help, but exact rules are safer for the first pass. Compare websites and phone numbers by rule, then use AI for judgement calls such as classifying a business or scoring its fit.

Will the AI invent missing contact details?

It should never be asked to. Use a check that flags rows with no phone or website and send them to a person, because a made-up contact looks just like a real one.

How do I know what was removed from my list?

Each block keeps what it passed on, and for blocks like Filter and Remove duplicates you can see what was left out with the reason, then download it.

How big a list can this handle?

A table in My data holds up to 5,000 rows, but Place classifier and xMap LLM each read up to 500 items a run. If more than 500 rows survive the duplicate step, split the file by region or source and run the parts in turn.

Templates that do this

IndustriesB2B sales

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.