Skip to content
be-human.ai
← Back to the journal

Tools & integrations

Duplicate Record Checks for AI Agents: Name, Phone and Address Rules

A matching procedure for AI agents on name, phone and address before creating a customer or job, with a human merge step for close matches.

Be Human typographic cover with the title: Duplicate Record Checks for AI Agents: Name, Phone and Address Rules
Conceptual illustration created with AI · Be Human

Before an AI agent creates a customer or a job, it should search existing records using normalized name, phone and address fields, score each candidate, and stop when the result is uncertain. Exact matches on a normalized phone number can attach the new request to the existing record without a write. Close matches go to a person who decides whether to merge, keep separate or ask for more information.

The procedure is simple to describe and easy to get wrong. Most failures come from weak normalization and from an agent that creates a record when the search fails or returns incomplete results.

Key takeaways

  • Normalize phone, name and address before any comparison, or the same customer will look like three different people.
  • Run the search before every create action, and treat a failed or partial search as a reason to stop, not as a reason to create.
  • Let the agent attach to a record only on strong evidence, and send close matches to a reviewer who can merge or keep them separate.
  • Test the rules on past records with known duplicates, and measure false merges before anything else.
  • Give the agent a create tool that performs the check itself, so the check cannot be skipped by a prompt.

Why agents create duplicates

A business owner usually notices duplicates after the fact: two customer cards for the same household, a job dispatched twice, a follow-up email sent to a person who already booked. An agent makes this worse because it can create records quickly and from many channels at once. A message on a messaging app, a web form and a phone call transcript can each describe the same customer in a different way.

The typical variations are predictable. A phone number appears once with a country code and once without. The name appears as a nickname, with or without a middle name, or with a family name in a different order. The address uses "St" in one place and "Street" in another, or the apartment number is missing. Each variation is small. Together they mean that an exact string comparison misses most real duplicates.

Duplicate creation also has consequences beyond clutter. A second customer record can split payment history, send conflicting reminders and cause a technician to arrive at a house where the job is already complete. Duplicate actions need their own protection, and the related guidance on idempotent AI agent actions covers how to stop the same request from producing two effects. The matching procedure in this article works one step earlier, at the point where the agent decides whether a record exists at all.

Normalize before you compare

Normalization turns the messy input into a form that can be compared. Do it in the tool that performs the search, not in the prompt, so every agent and every channel uses the same rules.

For phone numbers, keep digits only, remove the trunk prefix used for domestic dialing where your country uses one, and store the number in one international format. If the incoming number has no country code, use the business's default country and record that assumption. A phone number that cannot be parsed should not be used as a match key at all.

For names, convert to lowercase, remove accents and punctuation, drop honorifics such as "Mr" or "Dra", and split the name into tokens. Compare tokens as a set, so that "Lima Marcos" and "Marcos Lima" produce the same tokens. Keep the original string for the reviewer, because the normalized form hides information a person needs to decide.

For addresses, expand common abbreviations to one standard form, separate the street number from the street name, and keep the unit or apartment number as its own field. Postal code, when it exists, should be compared exactly. Street names alone are too common to act as a key.

A matching procedure to run before any create action

The procedure below applies to one record type at a time, such as customers or jobs. Write it into the tool definition so the agent receives a clear result, and so the same steps run every time.

  • Read the candidate fields from the incoming request and normalize phone, name and address as described above.
  • Search existing records by normalized phone first, because it is the most discriminating field when it is present.
  • If the phone search returns no candidate, search by normalized name tokens combined with the street number and postal code.
  • Score each candidate by how many fields agree and whether the agreeing fields are the strong ones, phone and street number in particular.
  • If a candidate agrees on phone and street number and the name is similar, attach the request to that record and log the reason.
  • If a candidate is similar on two or more fields but conflicts on one, create a review item and do not create or attach.
  • If no candidate shares a strong field, create the record and log that the check ran and found nothing.
  • If the search fails, returns an incomplete page of results, or cannot reach the system, refuse the create action and return a clear error that says the check did not complete.

The last step matters most. An agent that treats an error as an empty result will create duplicates during the exact periods when the system is least reliable. The guidance on fetching every page or flagging it applies directly here: an incomplete search is a failed search.

When is a match exact, close or unrelated?

The agent needs a decision rule for each combination of agreeing fields. The table below is written as a guide for the operations team to adjust, not as fixed numbers. Set the rules with the people who know the customer data, then test them.

  • Phone and street number agree, and the name is similar: treat as the same record and attach.
  • Phone agrees but the name is entirely different: possibly a shared line, such as a family landline or a front desk number. Send to review.
  • Name and street number agree, phone is missing on one side: close match. Send to review.
  • Name is similar but phone and address both differ: unrelated for this check. Create, and log the check.
  • Phone agrees, name is different, and the address differs: treat as a conflict and send to review, because one of the fields is probably wrong.
  • Two strong fields conflict with each other, such as two phone numbers for the same address and name: send to review with both records visible.

The review route is not a failure. It is the place where the business's judgment is applied to cases the rules cannot settle.

The human merge step for close matches

A close match should create a review item, not a silent write. The reviewer should see both records side by side, the fields that agreed, the fields that conflicted, the raw text from the incoming request and the agent's proposed action. The reviewer chooses one of three outcomes: merge into the existing record, keep the records separate, or request more information from the customer before deciding.

The agent should never perform the merge by itself. A merge rewrites history, moves jobs and payments between records, and is hard to reverse cleanly. Treat it as a write that needs a named approver, and keep the approval outside the chat where the request came from. The pattern in Slack approval buttons for agent actions shows one way to make the decision visible, recorded and tied to a person.

Keep the review queue short. If reviewers receive many items that turn out to be harmless, the rules are too loose, and people will start approving without reading. Each reviewed decision should feed back into the rules, so the next similar case is handled with more precision.

A duplicate check is only as good as the decisions it leaves for people.

Illustrative scenario

Illustrative scenario: a home services company receives a booking message from a customer named "M. Lima" with a mobile number. The phone number, after normalization, already exists on a customer record named "Marcos Lima" at the same street address and unit. The agent finds an exact phone match, a similar name and an identical address, so it attaches the new booking to the existing record and logs the reason.

A second message arrives the next day from "Marcos Lima" with the same address but a different mobile number. The name and address agree, but the phone does not. The agent does not attach and does not create silently. It opens a review item showing both phone numbers, and a coordinator confirms that the customer has a second line and keeps both on one record, while the booking waits for that decision.

How Be Human handles this in managed operations

Be Human defines the matching rules with the operations lead before the agent writes anything, using the business's own records and the decisions the team already makes. The create tool runs the search itself and refuses to create when a close match or a failed search exists, so the check does not depend on the agent remembering to run it. Close matches go to a review queue with a named approver for merges. After launch, Be Human runs recurring evaluations on sampled matches, reviews the permissions the agent holds, and handles incidents when a duplicate gets through, including tracing which rule allowed it and adjusting that rule.

Test the procedure before it writes

Testing should focus on the mistakes that cost the most. A false merge, where two different customers become one record, is harder to repair than a duplicate that a reviewer later combines. Measure false merges first, then missed duplicates, then the size of the review queue.

  • Build a test set from past records where the team already knows which entries were duplicates and which were different people.
  • Include phone numbers from more than one country format, names with accents and names with particles, and addresses with and without unit numbers.
  • Confirm that a failed or incomplete search blocks creation in every case you can simulate.
  • Log every decision with the fields compared, the rule applied and the outcome, so a reviewer can reconstruct it later.
  • Repeat the test after any change to the source system, the normalization code or the rules.

The [NIST AI Risk Management Framework](https://www.nist.gov/itl/ai-risk-management-framework) gives a useful structure for this kind of measurement, including documenting limits and keeping people in the loop for consequential decisions.

Authorization for the create tool

The duplicate check protects nothing if the agent can bypass it. Give the agent one create tool for each record type, and do not give it a general write path to the database. Authorization guidance such as the [OWASP Authorization Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html) recommends enforcing access checks in the system that holds the data, not in the instructions given to the model. The same logic applies here: the rule belongs in the tool, so a clever prompt cannot route around it.

Providers that accept repeated requests often document an idempotency key for the same reason. The [Stripe documentation on idempotent requests](https://docs.stripe.com/api/idempotent_requests) is a clear example of the provider deciding that a repeated request must not produce a second effect. A duplicate check and an idempotency key solve different problems, and a well-designed agent uses both.

Start with one record type

Do not roll out duplicate checks across every object at once. Choose the record type where a duplicate causes the most work to unwind, usually customers or jobs, run the procedure in shadow mode for a period where the agent logs its decisions without writing, compare those decisions with what the team would have done, and then enable the create tool once the false merge rate is acceptable to the people who own the data.

If you are not yet sure which record-creating task deserves this check first, the free Be Human AI diagnostic can help you find the first task worth handing to an agent.

Frequently asked questions

How precise does phone matching need to be before the agent attaches a record? Precision depends on how the phone field is captured in your systems, so measure it on past records before you rely on it. A normalized phone number that matches exactly, combined with agreement on street number, is strong enough for attachment in most small operations. Anything weaker should go to review until the test results justify a looser rule.

Should the agent ever merge two records on its own? No, a merge rewrites history and moves related items between records, so it should always require a named person to approve it. The agent can prepare the merge, show the reviewer exactly what will move, and record the decision afterward. Keeping this boundary explicit also makes incidents easier to investigate later.

What happens when a customer really does have two accounts? The procedure should not force them into one record. A review outcome of keeping the records separate is a valid decision, and it should be logged with the reason so the next similar request is not flagged again without context. If the business policy is one customer, one record, the policy should be written into the rules and enforced by the reviewer.

Does this replace the deduplication feature of my CRM or field service software? It complements that feature rather than replacing it. Many systems offer periodic cleanup jobs, but those run after records exist, while this procedure runs before the agent creates anything. Use both, and check that the agent's tool and the system's cleanup job use compatible rules so they do not disagree.

Your next step

See where an AI agent fits in your company first.

Take the free Be Human AI diagnostic. A few questions about your work show which task to hand to an agent first, what it needs to know and where a person approves.

Be Human editorial guidance. Examples are illustrative unless explicitly attributed. Sources provide background; implementation choices depend on your workflow.

Less busywork. More room for you.

Bring us the work you wish you had time for.

Book a call to try a personalized AI agent free for 7 days ↗Or take the free AI diagnostic →