Digital download · English · Python scripts + review workbook + guide

CRM Data Cleaning Kit: Standardise, De-duplicate, Merge Safely

Clean and de-duplicate contact lists from several exports with a review step before anything is merged, a change log and a rollback file. Tested scripts, standard library only – your data never leaves your machine.

$15 one-time, plus local sales tax/VAT where applicable

Secure checkout and instant download via Creem, our Merchant of Record. 14-day refund if you haven’t downloaded the files – see our Refund Policy.

What it does

StandardiseNames (“Lee, Chris” → Chris Lee), emails, phones with country codes from each record’s country, company names for matching (Inc / Ltd / GmbH dropped, & → and), dates to YYYY-MM-DD – and flags ambiguous ones like 03/04/2026 instead of guessing.
Group duplicatesSame email; same phone with similar names; same company with very similar names. A shared office line or the same company alone never counts.
Stop for reviewWrites the groups and every problem (missing fields, invalid emails, conflicts, repeated IDs) to CSV. Nothing is merged until a person approves each group.
Merge safelyApplies only approved groups, fills empty fields only when members agree, and writes a change log and a rollback file. Refuses to run on a stale review file.

Real output on the sample data

$ python crm_clean.py sample/config.json
- Input rows: 30 from 2 file(s)
- Suggested duplicate groups: 10 covering 21 rows
- Anomalies for review: 8
  - conflict_in_group: 3   - date: 1   - duplicate_record_id: 1
  - invalid_email: 1       - missing_field: 2

$ python apply_merges.py output
30 rows in, 19 rows out; 11 merged away; 1 fields filled; 0 left empty because members disagree.

The sample (fictional) hides 10 true duplicate groups – email case changes, phone formats, “Last, First”, Jonathan/Jonathon, a repeated export row – and 3 look-alikes: two colleagues sharing an office line, two people at one company with similar names. The script finds exactly the 10 and none of the 3.

Tested

17 automated tests run on every build: the normalisers, the exact groups and traps on the sample (pair precision and recall of 1.0), and the merge rules – refused while groups are pending, refused on a stale review file, only approved groups merged, conflicts never chosen automatically, and merged + rollback rows always equal the input. Loosen the name threshold from 85% to 80% and the tests catch the wrong merge.

What that doesn’t prove: results on your data. Real lists have patterns the sample doesn’t – review every group before approving.

What’s inside

Scriptscrm_clean.py and apply_merges.py – Python 3.9+, standard library only, nothing uploaded anywhere
Review workbook (Excel)Field dictionary, merge review with a decision dropdown, anomalies and decisions, 8 acceptance cases mapped to the tests
Sample and examplesTwo fictional exports with an answer key; a multi-table example of the traps that break totals (subsets, blanks, scope, status words)
Guide and promptsStart-here PDF, five prompts for AI help with column mapping and review, notes on selling clean-up as a service

Is it right for you?

Good fit: sales and marketing ops, agencies and freelancers cleaning CRM, newsletter or event lists before an import or a migration.

Not a fit: if you need a connector that writes straight into your CRM – this works on CSV exports, on purpose.

Free guide

See the matching rules and the traps on the sample data, with a free script: How to Find Duplicate Contacts in CRM Exports Without Merging the Wrong People.

FAQ

Do I need to code? No – you edit a small config file with your column names and run two commands. Python must be installed.

Can I use it for client work? Yes, within your own projects. Please don’t resell the kit itself.

Questions? Email support@aistacknav.com. We reply within 3 business days.

AI Stack Nav is independent. Sample data is fictional. Work on copies of your data and follow your privacy obligations; this kit is not legal advice.