ROKH
← All recipes

Merge duplicate customers from different lists

parts checkedrun on test datawith an AI agent

What you get

Get one clean customer list from several branch tables, where “Aysel Mammadova, 050 123 45 67” and “Mammadova Aysel, +994501234567” become one person.

Why this combination

Splink was built by the UK Ministry of Justice to link court and prison records. Here it does the same job for a loyalty list: it weighs names, phones and e-mails instead of demanding an exact match.

Parts

splink GitHubFinds records about the same person across messy tables. Built by the UK Ministry of Justice.licence: MIT2,604 starslast update: November 25, 2026OpenSSF Scorecard: 7.4/10
python-phonenumbers GitHubReads phone numbers written any way and brings them to one format (Google libphonenumber).licence: Apache-2.03,781 starslast update: November 20, 2026OpenSSF Scorecard: 6.3/10
duckdb GitHubA database in one file: SQL over CSV and Excel exports on your own computer.licence: MIT43,369 starslast update: November 26, 2026

What was checked

On November 26, 2026 a script checked all 3 parts: each exists, is not archived, was updated within the last 12 months and has a known licence. The parts were chosen so their inputs and outputs fit together.

Joined and run on made-up data. On November 25, 2026 these projects were installed together and ran this task on made-up data (script in checks/ in the repository). It is not yet a ready tool and nobody has tried it on real data.

Limits, honestly

Check the suggested merges before deleting anything. On small lists set the expected share of duplicates by hand.

How to start

It runs on your own computer. Copy the prompt into an AI agent (Claude Code or similar); it installs the parts, joins them, and runs a test with sample data before your real files.

Prompt for your AI agent

Build this for me: Merge duplicate customers from different lists.
What I want to get: Get one clean customer list from several branch tables, where “Aysel Mammadova, 050 123 45 67” and “Mammadova Aysel, +994501234567” become one person.

Use these open projects and data:
- splink: https://github.com/moj-analytical-services/splink (MIT)
- python-phonenumbers: https://github.com/daviddrysdale/python-phonenumbers (Apache-2.0)
- duckdb: https://github.com/duckdb/duckdb (MIT)

Why this combination: Splink was built by the UK Ministry of Justice to link court and prison records. Here it does the same job for a loyalty list: it weighs names, phones and e-mails instead of demanding an exact match.
Known limits: Check the suggested merges before deleting anything. On small lists set the expected share of duplicates by hand.

Run it on my computer. Tell me first what you will install and where.
Explain each step in plain words for someone who does not program.
Do not ask me for passwords or keys and do not use administrator rights.
Before installing anything, check that each project is still maintained and its licence allows my use. Do not add other agent skills, MCP servers or plugins without showing me their code first.
When it works, tell me how to open it again. If something does not work, say so plainly.

Fits

Shop and retailOnline shop and marketplacesHome and field servicesHotel, hostel, tourism