Start with three separate identifiers
Imagine a consultancy receiving a website form and a subsequent email from the same buyer. This is a hypothetical example. The buyer is one person, but the second message might contain a different request. Meanwhile, a connection failure might cause the original form notification to arrive twice. Those are three different questions: who contacted us, what they want, and whether we have already processed this delivery.
Give the contact a stable identity reference, give each enquiry its own reference, and track processing attempts separately. A delivery retry should reuse the original enquiry reference. A genuinely new submission should receive a new one. Do not use the email address as the enquiry ID: doing so could suppress a customer's next request.
| Incoming situation | Recommended action | Check before writing |
|---|---|---|
| Known contact, new request | Link a new enquiry to the existing contact | The identity mapping is trustworthy |
| Same submission delivered again | Resume or return the recorded result | The source and submission reference match |
| Same name, different details | Hold for review | No assumption that names identify people |
| Shared mailbox such as sales@ | Preserve the enquiry; review the person match | No automatic merge of individual contacts |
| New phone conflicts with a verified number | Save a proposed correction separately | A reviewer approves the replacement |
Validate the enquiry before qualifying the lead
For a structured form, check required fields, allowed categories and usable contact details. For an email, AI can propose the organisation, requested service and next action. Keep the source message alongside those suggestions so a reviewer can inspect the evidence. Missing information should remain missing: an inferred budget or invented job title is not a qualified lead.
Define which fields the automation may fill and which need approval. A service category can help route an enquiry, while changing an existing account owner or customer status can affect ongoing work. Treat instructions inside a customer's message as content to process, not permission to change the integration's rules.
A fixed sequence is usually enough for these steps. Our guide to AI agents and workflow automation explains where a bounded extraction step fits.
Match contacts conservatively and protect verified fields
Prefer a trusted customer reference from an authenticated source or an established mapping between systems. An email can help find candidates, but an address typed into a public form does not establish identity. Normalise formatting without inventing equivalence: removing every dot or suffix from email addresses could join addresses that should remain separate.
Make the decision explicit: one reliable match, no match, or ambiguous matches. Do not quietly choose the first search result. For a shared mailbox, keep the request attached to an appropriate business context until the person is clear. Do not merge existing records solely because their company and surname resemble each other.
Give each writable field an owner. The intake process might fill an empty service-interest field, but leave a verified phone number, account manager and customer status untouched. Record conflicting suggestions with their source and date. That lets staff correct a record without losing the earlier evidence.
Use upsert for the record and a processing log for the workflow
An upsert creates a record when its chosen identifier is absent and updates it when that identifier exists. HubSpot's v3 contacts API supports email or a custom unique property for batch upsert. Its documentation excludes partial upserts when email is the identifier; a custom unique property is needed for that case. Check this behaviour before designing selective updates.
HubSpot's Properties API documents creating a property with hasUniqueValue set to true. Configure that constraint and agree which system owns the identifier. A field labelled “external ID” is not enough if duplicate values remain allowed.
Keep an intake log separate from the CRM contact. Scope its unique enquiry reference to the source account, and record the contact ID, enquiry ID and completed steps. A “search, then create” sequence alone leaves a race: two workers can both find nothing. Enforce uniqueness in the processing store and use an atomic claim or equivalent concurrency control.
If the CRM saves a record but the response is lost, reconcile by the same stable identifier before retrying. Resume from the recorded state. Give a follow-up task its own operation reference; a contact upsert cannot prevent a separate task or email from being created twice. Do not generate fresh identifiers for each attempt.
Expect repeated notifications and keep recovery visible
HubSpot's v3 webhook guide warns that notifications may repeat or arrive out of order, and that eventId is not guaranteed unique. Failed notifications can be retried up to ten times over 24 hours. These are v3 delivery rules, not a promise about every connector.
Design the receiver to verify the sender and durably store accepted work before acknowledging it. Process the CRM changes afterwards. Choose deduplication keys from the source's documented guarantees; do not assume that any field named “event ID” provides them. For an older update, check the current record or an authoritative version before replacing newer information.
Keep failed writes visible with a reason, next retry time and responsible team. A validation error needs different handling from temporary unavailability. Repeatedly sending an invalid field wastes capacity and leaves the sales team waiting without knowing why.
Resolve ambiguity before assigning responsibility
A useful review item shows the original enquiry, candidate contacts, conflicting fields and the proposed action. The reviewer can link an existing contact, create a new one or request clarification. Preserve that decision so replaying the job does not reopen the same question.
Then apply the ownership rule: retain an established account owner where appropriate, otherwise route by agreed service, territory or queue. Define a fallback when nobody matches. Keep the request visible until someone owns it, and prevent retries from repeatedly changing that owner.
Test the failure cases before switching it on
- Deliver one submission twice, including two simultaneous attempts.
- Simulate a timeout after the CRM has saved the record.
- Send a second genuine enquiry from the same contact.
- Use matching names, a shared mailbox and contradictory phone numbers.
- Replay an older update after a newer verified change.
- Interrupt processing after contact creation but before task creation.
- Check the fallback queue when the intended owner is unavailable.
For each case, specify the expected contact, enquiry and task counts. Review duplicate enquiries, incorrect matches, protected-field overwrites, unresolved items and time to ownership. Pair those checks with the cost per completed task when judging whether the process is worth expanding.
FAQ
Can AI decide whether two leads are the same person?
It can flag possible matches for review. Do not give a similarity judgement sole authority to merge records. Use trusted identity mappings and explicit match rules; keep uncertain cases visible.
Does upsert guarantee that the whole workflow runs once?
No. It addresses the selected record and identifier. Enquiry creation, task creation and messages need their own retry controls and recorded outcomes. A partial failure can happen between these operations.
Should a second message from an existing contact be discarded?
Only when you have established that it is another delivery of the same submission. A new request needs its own history. Similar wording alone is not enough to discard it.
What should happen when incoming details conflict with the CRM?
Preserve verified values and store the proposed change with its source. Route meaningful conflicts for review. Decide field ownership before launch so the integration does not silently apply a different policy on every run.
Discuss your lead capture process
ValidVibe helps connect forms, inboxes and CRM systems with clear validation and review steps. Discuss your enquiry-to-CRM process with our team to identify the matching rules and recovery paths it needs.
Sources
About the author
ValidVibe Team writes practical guides to AI automation and business integrations. The workflow and test cases here are recommendations, not results from a reported client deployment.
