★ GenAI Summit™ Asia|12–13 Dec, Kuala Lumpur|For AI Agency® students|See details →|★ GenAI Summit™ Asia|12–13 Dec, Kuala Lumpur|For AI Agency® students|See details →|★ GenAI Summit™ Asia|12–13 Dec, Kuala Lumpur|For AI Agency® students|See details →|★ GenAI Summit™ Asia|12–13 Dec, Kuala Lumpur|For AI Agency® students|See details →|
Three colleagues review a laptop beside a diagram of a contact list with duplicate entries highlighted.
AI for WorkNovember 29, 20267 min read

How to Deduplicate HubSpot Contacts With AI Before a CSV Import

Compare three offline AI reviews of fictional HubSpot contacts, then use a copyable prompt and source check to prepare a two-column update CSV.

GenAI Editorial

To deduplicate HubSpot contacts before an import, use AI to propose a decision for each incoming row, then check every proposed update against the CRM export. In our test, 2 of 3 runs produced exactly the same two-row update CSV. Only one had evidence for both rows. You could open the two files side by side and never see the difference.

The missing evidence was one email address. A sales rep wanted to change Dev Noor’s job title. Their intake sheet included a HubSpot Record ID and an old work email. In one export, that address appeared among Dev’s additional emails. In the other, the entire additional-email column was missing. Claude called the address verified both times. Here’s how we caught the unsupported match and what we’d hand to the person doing the import.

Which files does the reviewer need?

Start with the original intake, a dated export from the correct client account, and the list of fields the owner has authorized you to change. Keep the source files intact. Give the intake rows stable labels before sorting them. Our row D should still mean the same request after someone filters the sheet to show just the held items.

A HubSpot Record ID identifies an existing record. An email address can also be used to match contacts during import. Export the Record ID, primary email and any additional addresses you intend to use as evidence. Include name and company to help someone spot contradictions. Those last two fields are useful context even when they cannot identify one person. HubSpot’s record deduplication guide

We built a fictional, seven-contact roster and ten intake rows for this exercise. The assignment allowed approved title changes and one explicitly approved new contact. No email changes or CRM merges were authorized. We wrote the expected decisions before testing. On November 29, 2026, we ran three separate, tool-free Claude Sonnet sessions and converted their proposed update records into CSVs. No session had access to HubSpot, and we uploaded no records.

What did the first pass get right?

The plain prompt supplied the export, the incoming rows, the authorized changes and four possible actions: update, create, hold or mark as a repeat. It asked for both an audit ledger and the rows an operator could import. It picked the expected action on 9 of 10 rows. Several of its best calls were decisions to leave a record alone.

- An exact repeat. Rows A and J requested the same approved title for Ellis Shaw using the same address. The model proposed one update to ID 101 and marked J as a repeat. The operator could account for both source rows.

- Two people with the same name. Two Jules Parks worked at Alto. Row B had just the name, company and proposed title. The model held it. Choosing the existing title closest to the proposed one would only be a guess.

- Two identifiers pointing to different people. Row C supplied Jules’s ID 102 alongside the email attached to ID 103. Both identifiers were real. The model correctly declined to decide which one the rep meant.

- One inbox shared by different people. Bo West’s card listed the studio address already on Rae Fox’s record. The model held the row. An exact mailbox match answered where the message would go but did not establish whose title to change.

- Two undated corrections. G and H matched ID 106 by email and proposed incompatible titles, Head of Research and Finance Lead. Neither had a timestamp or a note superseding the other. Both stayed out of the update file.

- A genuinely new person. The owner had verified Kit Hale as new and approved creation. The model put Kit in the create file. A missing Record ID alone would not have established that decision.

The missed row, I, was easier to match than any of the held rows. The name, address and ID all agreed. The owner wanted to remove the title “Planner” from ID 107. Claude proposed an update with a null title, which became an empty cell when we wrote the CSV. HubSpot’s import documentation says a blank cell leaves an existing property value in place. The proposed file could therefore leave “Planner” intact while the ledger told the operator the request was handled. Route an authorized clear to a separate action that actually clears that property. HubSpot’s guidance on blank cells

What belongs in a title-only update CSV?

Our first file contained six columns: Record ID, name, company, email, title and additional email. Those extra values helped us review the matches. They had no business being mapped as updates for an assignment limited to job titles. The first output carried both of Dev’s addresses into the file even though its explanation said the email was staying the same.

For the second pass, we added explicit instructions about conflicting identifiers, shared inboxes, duplicate requests and blank cells. We also limited the update output to two columns. With the full export present, the model selected all ten expected action labels. The proposed update file contained these two data rows:

Record ID, Job title 101, Operations Lead 104, Studio Lead

Keep the original intake row, source email and reason in a companion ledger. In the import mapping, use Record ID for the existing contact and map the approved title. Put verified new contacts in a different file. HubSpot documents using separate files for existing records and new records. It also describes a specific case in which selecting a secondary email as the unique identifier while including Record ID can replace the primary email. For a title-only handoff, verifying an address in the ledger and omitting it from the update file avoids that unnecessary choice. HubSpot’s import matching rules

How can a correct-looking Record ID still be unsupported?

In the full export, Dev’s row had ID 104, primary address dev@north.example and additional address dev.old@north.example. The intake paired 104 with the old address and requested the title “Studio Lead.” We could trace both supplied identifiers to the same CRM record. Our rule allowed that title update.

For the third pass we removed the additional-email column from the export and kept the detailed prompt and all ten intake rows identical. Dev’s name, company and ID still lined up, but the only address visible on the exported record was the primary one. The model again described the old address as a verified secondary email. Nothing in that export established the relationship. A missing column meant unknown.

We compared the two exported update files byte for byte. They were identical. We then checked the proposed IDs and titles against the intake and looked up each supplied address in the actual primary or additional-email fields on the target record. ID 101 passed in both cases. ID 104 passed with the full export and failed with the reduced one. A reviewer looking at the output CSV alone had no way to perform that last check.

Holding row D was our policy for a request carrying an uncorroborated address. The test does not establish that Dev’s address changed or that HubSpot would reject an ID-based update. An operator could resolve the hold by consulting the record in the correct account or exporting its additional addresses. If the old address is confirmed, the same two-column file can be appropriate. Until then, release Ellis’s verified update separately if the batch permits it.

What prompt and acceptance check can a sales team reuse?

Give the AI the authorized field changes and the two source files. This is a reusable version of the detailed instructions we tested.

> Return a decision for every intake row and separate create and update outputs. Group requests by target before choosing a winner. Hold incompatible corrections without a documented order. For every update, identify the intake row, the CRM Record ID and the export field that corroborates the supplied address. If that field is absent or the identifiers disagree, leave the row on hold. Output only Record ID and the approved job title for existing contacts. Route explicit property clears separately. Count identical repeat requests once and name the original row.

Then have someone check the decision sheet without relying on the model’s explanation. For each proposed update, can they locate the source record, point to the corroborating field, and identify the authorized new value? Does the CSV contain the same target and value exactly once? If the answer is “the AI says that’s an alias,” the reviewer still needs a lookup. If the answer is “we know the person but have two job titles,” the reviewer needs the owner to choose a value. These are different follow-ups even though both rows belong on hold.

Finally, reconcile the ledger with the proposed files. With our full export there were two updates, one creation, one repeat and six holds. A held row may carry a candidate Record ID for investigation. That ID must stay out of the update file until someone releases the row. Keep each client’s exports, decisions and import files together so a later handoff can reconstruct what the team actually knew. How to run a solo agency AI stack across clients

Our three runs used synthetic records and one model setting. We checked routing, source evidence and the proposed CSVs. Product behavior about blank cells and identifiers comes from HubSpot’s documentation. The result worth repeating on your own file is the missing-column test: remove a field that supports one match and see whether that proposed update goes on hold. On our fixture, the prompt sounded cautious and the file looked clean. Only checking the source caught the mistake.

Sources

  1. HubSpot, Deduplicate records
  2. HubSpot, Format import files
  3. GenAI, How to Build a Solo Agency AI Stack for Multiple Clients

More where this came from

Keep reading.

See all posts →