In this guide
Why the same WhatsApp customer appears twice
If your CRM creates one contact for 082 123 4567 and another for +27 82 123 4567, it may be treating two ways of writing the same South African number as different people. This commonly surfaces when leads enter through a website form, a sales import and a WhatsApp Business integration. Each channel supplies a slightly different phone-number format, and the CRM matches contacts using the original text instead of a consistent identifier.
The result is more than an untidy address book. A salesperson may reply without seeing the previous conversation. Automated follow-ups can be sent twice. A customer may have one support ticket against each record, while reporting counts one enquiry as two leads.
The fix is not to delete every duplicate automatically. It is to normalise phone numbers, establish safe matching rules and keep an audit trail of any records that are merged.
Understand the South African number formats
South African mobile numbers are commonly entered locally with a leading zero, such as 082 123 4567. Their international form uses country code +27 and drops that first zero: +27821234567. A web form may store 0821234567, a spreadsheet may contain 27821234567, and a WhatsApp integration may supply a platform-specific contact identifier alongside a telephone number.
Those strings look different to a database, but the first three can describe the same dialling number. Spaces, brackets and hyphens introduce more variations. That is why comparing the raw value of a phone-number field is fragile.
Do not solve this by blindly adding +27 to every number. Customers may supply numbers from neighbouring countries, international company contacts or malformed data. The system first needs to establish whether the number can be interpreted reliably, then store it in a consistent international format such as E.164.
Normalise numbers at the point of entry
Create one reusable phone-number service in your application. Every entry point should call it: website forms, CRM imports, API endpoints, manual contact creation and inbound messaging webhooks. This is better than writing slightly different formatting rules into every module.
A useful routine removes harmless presentation characters, recognises an explicit country code, applies a default country only when the context justifies it, and validates the result using current numbering rules. A maintained numbering library is safer than a home-grown rule that assumes all South African mobile numbers start with the same few prefixes.
Keep the original value as well as the normalised value. For example, the contact might contain raw_phone = 082 123 4567 and normalised_phone = +27821234567. The raw field helps staff understand what a customer typed. The normalised field provides a stable lookup value.
If the input is ambiguous, do not silently guess. Ask the user to confirm the country or flag the number for review. A wrong match is usually more damaging than an extra contact that can be checked later.
Use the correct identity for each channel
A phone number is useful for matching, but it is not always a permanent customer identity. People change numbers, businesses reassign numbers and one shared company number may represent several staff members. For that reason, a CRM should use its own internal contact ID as the primary record identifier.
Keep external identities in a separate mapping table. For a WhatsApp integration, that might include the connected business account, the platform-provided customer identifier and the linked CRM contact ID. Store the telephone number separately in normalised form. Do not assume that every provider sends an identical identifier or that every identifier is simply an E.164 string.
When a new WhatsApp event arrives, check for an existing external identity mapping first. If none exists, look for a suitable verified phone match. If the match is uncertain or conflicts with another record, queue it for review instead of connecting conversations to the wrong customer.
Prevent duplicate contacts from simultaneous webhooks
Even accurate phone formatting will not help if two processes create the same contact at the same moment. Imagine an inbound message and a website enquiry arriving seconds apart. Both workers search the CRM, both see no match, and both insert a new contact.
This is a race condition. Protect the operation with a database uniqueness strategy and an atomic create-or-find process. Depending on your data model, the unique constraint may belong on a channel identity mapping or a carefully scoped normalised phone record, rather than on the contacts table itself. Shared family or business phone numbers make a blanket one-phone-one-person rule risky.
Also record processed webhook event or message IDs where supplied. Repeated delivery of the same event should update or confirm existing state, not create another contact or trigger another welcome message. Return successful webhook responses only after the event has been durably accepted for processing.
Separate contact matching from marketing permission
Merging contact records must never be treated as permission to send messages. A customer who contacted a company for support has not necessarily agreed to receive promotional campaigns. Keep consent status, purpose, source, timestamp and opt-out history attached to the correct record and messaging channel.
This distinction matters for South African businesses handling personal information under POPIA. Your implementation should support the organisation's lawful processing and communications practices. Get advice on your specific compliance obligations where needed rather than relying on a CRM checkbox as a complete legal solution.
If a contact has opted out of marketing on one duplicate record, do not discard that preference during a merge. Escalate conflicting consent records for review and apply a conservative rule until they are resolved.
What a safe duplicate review screen should show
A proper merge screen should display both records side by side: names, company, numbers, email addresses, lead sources, owners, notes, open deals, support tickets and WhatsApp conversation links. Staff need to see what would move to the surviving record before confirming a merge.
For example, a website enquiry might be assigned to sales while a WhatsApp conversation is assigned to support. Both could genuinely belong to the same customer, but blindly overwriting the owner field would break one team's workflow. Keep relationship records intact and record who approved the merge, when it happened and which fields changed.
Do not automatically merge records merely because two people share a switchboard number. A reliable system must support multiple contacts at one organisation and cases where one person uses several numbers.
A practical testing checklist
Before enabling automatic matching, test one South African number entered with spaces, without spaces, with +27 and with 27 but no plus sign. Test an international number, a blank value and a malformed value. Then submit the same lead through a website form and a WhatsApp event at nearly the same time.
Confirm that the CRM links legitimate matches to one contact without losing either conversation. Check that a repeat webhook does not create another lead, duplicate a notification or reset a lead's status. Finally, test two different customers who legitimately share a business number. The software should keep them separate unless there is additional evidence that they are the same person.
Track results after deployment. Useful measures include contacts flagged for review, confirmed duplicates, mistaken matches and incoming events that could not be linked. Review actual examples regularly; a low duplicate count is not an achievement if the system is quietly merging unrelated people.
When a custom integration is worthwhile
If every team imports contacts differently, fixing a single web form will only address part of the problem. A shared identity and normalisation layer can connect your website, CRM, WhatsApp messaging platform and any other source that creates or updates customer records.
Digital4Front develops custom CRM systems, WhatsApp integrations and business automation for South African companies. If leads are arriving under multiple numbers, conversations are disappearing into separate records or staff are merging contacts manually, we can help map the flow and build matching rules that fit your actual business process. The objective is a CRM that recognises the right customer without making unsafe assumptions.
