Your WhatsApp Chatbot Is Keyed to a Phone Number. WhatsApp Usernames Break That
What do WhatsApp usernames change for chatbots?
WhatsApp usernames let customers message a business without sharing their phone number. Your webhooks then identify them with a Business-Scoped User ID (BSUID), and the phone number may be missing. If your chatbot or CRM uses the phone number as its main key, it can create duplicate contacts, skip follow-ups and break on the new ID format. The fix is to treat the phone number as an attribute of your own internal person ID and match people by BSUID.
By Artyom Fokin, Chat and CRM Automation Specialist at Social Automation Desk
For a decade, the WhatsApp Business integration playbook was simple: the customer’s phone number arrives in the webhook, you use it as the contact ID, and everything downstream (CRM record, automation, follow-up) hangs off it. That assumption is now unsafe. WhatsApp usernames let people message a business without handing over their number, and the identifier you get instead is a Business-Scoped User ID, or BSUID.
If your chatbot or CRM sync treats the phone number as the primary key, returning customers who adopt a username will look like strangers. Here is exactly why, and how we build webhook architectures that don’t depend on it.
What actually changed
- Usernames are optional. A user who adopts one sees the username displayed in the app instead of their phone number.
- Every user now gets a BSUID. It arrives in webhooks as
user_id, for username adopters and non-adopters alike. It is unique to a business portfolio and user pair. The format is a two-letter country code, a period, then up to 128 alphanumeric characters, for exampleUS.13491208655302741918(131 characters maximum). - The phone number is no longer guaranteed. For a user with a username, the phone number (
wa_id) appears only if you messaged or called them in the last 30 days, they messaged or called you in the last 30 days, or they are in your contact book. For users without a username, it is generally still included. - The BSUID is stable across username changes but is regenerated if the user changes their phone number.
- Timeline (per Meta’s documentation): BSUIDs began appearing in webhooks in April 2026, username reservations opened June 29, APIs began accepting BSUIDs as message recipients in July, and usernames are rolling out gradually by country through 2026.
A note on wording: a username doesn’t make the phone number disappear for good. Customers can choose to share it (more on that below), and it can still appear inside the 30-day windows, so the accurate description is that a username hides the number by default.
The 30-day rule is per business phone number, not per portfolio. If you message a user from number A, webhooks for number B in the same portfolio still omit their phone number unless B has also exchanged a message or call with them in that window. The contact book, by contrast, is scoped to the whole portfolio. For multi-number setups, this means the same customer can arrive with a phone number on one line and without it on another.
It’s no longer optional to support this. Meta’s page (updated Nov 5, 2026) states that BSUID support is required for all partners, directly integrated businesses and click-to-WhatsApp advertisers. Its reasoning is that you can’t control whether your users adopt usernames, so without BSUID support you lose the ability to process their messages.
Why phone-keyed systems fail
Usernames are opt-in and adoption is gradual, so this won’t break everything on day one. It breaks for the customers who adopt, and the share of them only grows. These are the failure modes we see in phone-keyed builds.
1. The lookup that returns nothing, then a duplicate lead. A returning customer messages you. The webhook has a BSUID and no wa_id. Your code searches the CRM by phone, finds nothing, and creates a new contact. Sales now has two records, the original with the deal history and a fresh one with no context. Chatwoot’s public issue on this describes the same pattern: a new contact created instead of matching the existing one.
2. Follow-ups with nobody to send to. Abandoned-cart nudges, appointment reminders and post-purchase sequences are usually queued against a phone number. If the trigger record has no number, the job either never fires or errors. Code that assumes wa_id is always a valid E.164 number can also fail on the reply.
3. Schemas and validators that reject the new ID. A phone column sized for 15 digits can’t hold a 131-character BSUID, and an E.164 regex will reject US.1349... as an invalid number. Even infrastructure can be affected: Microsoft’s Azure Communication Services docs warn that Event Grid subscriptions filtering on the sender’s phone number in the event subject need updating.
4. Number changes split the history. When a user switches phone numbers, their BSUID is regenerated. Meta sends this as a system webhook, with one type (user_changed_number) when the new number can be shared and another (user_changed_user_id) when it can’t. Systems that ignore these events end up with one person split across two identities.
5. The ID is scoped, so it doesn’t travel. The same person has a different BSUID in each business portfolio. Any setup that spans several portfolios (multi-brand groups, or agencies managing several client accounts) can’t match people across them by BSUID alone. Meta offers parent BSUIDs for managed businesses with multiple portfolios, but eligibility is decided through your Meta point of contact.
The agency trap: Meta states that a BSUID scoped to your client’s portfolio fails if you use it with a phone number from your own portfolio. A solution provider has to send through the client’s business phone numbers, and the identity table needs the portfolio as part of every BSUID’s scope.
6. History and attribution don’t stitch themselves. LivePerson, for example, documents that BSUID-only users start a new conversation thread, with prior history not automatically stitched. If your campaign attribution was tied to a phone number, the first touch and the later conversion can land on different identities.
7. Phone-only features. One-tap, zero-tap and copy-code authentication templates still require a phone number and can’t be sent to a BSUID.
Instagram and Messenger already work this way
If you build for Instagram too, none of this will feel foreign. Instagram messaging webhooks identify the customer with an Instagram-scoped ID (IGSID), and Messenger uses a Page-scoped ID (PSID). Neither ever handed you a phone number. WhatsApp is converging on the same model, which makes a channel-agnostic identity layer the natural design rather than a WhatsApp patch.
How we build it: phone is an attribute, not a key
This pattern is platform-neutral. The identity layer sits in front of whichever chatbot platform and CRM the client picks; we lay out the options and the client decides.
Four principles
- A phone number is an attribute of a person, never their identity. The primary key is an internal person ID that we generate.
- Store every identifier we ever see, tagged with its channel and scope.
- Resolve, don’t assume. Every inbound event goes through a resolution step that can say “known person”, “new person” or “possible match, needs merge”.
- Acknowledge fast, process async, stay idempotent. Webhook retries must never create duplicates.
The flow
Meta webhook (WhatsApp / Instagram / Messenger)
-> Ingress: verify signature, return 200 immediately, enqueue raw payload
-> Normalizer: map each channel's payload to one canonical event
-> Identity resolver: find or create person_id
-> Event handlers: bot logic, CRM upsert, follow-up scheduling
-> Outbox: send via best available recipient identifier
The identity table
person(
id uuid primary key,
crm_id text null, -- CRM record ID once synced
merged_into uuid null, -- set when two persons are merged
created_at timestamptz
)
channel_identity(
id bigserial primary key,
person_id uuid references person(id),
channel text, -- whatsapp | instagram | messenger
id_type text, -- bsuid | parent_bsuid | phone_e164 | igsid | psid
value varchar(200), -- BSUIDs run to 131 chars
scope text, -- business portfolio / account, or 'global' for phone
status text, -- active | superseded
first_seen timestamptz,
last_seen timestamptz,
unique (channel, id_type, scope, value)
)
Usernames are stored as a profile attribute, not an identity: they can change, while the BSUID doesn’t.
The normalizer treats a missing field as missing. Since February 2026, Meta omits properties such as wa_id and from for username users instead of sending empty strings, so a check for an empty string will never catch the case.
Resolution order
- Exact match on BSUID within the portfolio scope.
- Match on parent BSUID, if the account is enrolled.
- Match on phone number (normalized to E.164), if the webhook carries one.
- Otherwise create a new person and flag it as unresolved, so a later phone arrival can trigger a merge.
When a later event brings a new identifier for a known person (a phone number appears, or a BSUID shows up on a person we previously knew only by phone), we attach it. If that identifier already belongs to a different person, the two are queued for a merge rather than silently overwritten.
Rotation events
We subscribe to the system messages and handle both rotation types. On either one, the new BSUID is added to the same person_id, the old one is marked superseded (kept for audit and for late-arriving events), and nothing in the CRM changes identity.
Meta’s rotation payload carries previous_user_id (and previous_parent_user_id if you’re enrolled), which is how you join the new identity to the one you already hold. It is omitted when the previous BSUID is unavailable, so the resolver needs a fallback: match on phone if one came with the event, otherwise flag the pair for manual merge.
Getting the phone number when the business needs it
Some workflows still need a number: authentication templates, SMS fallback, offline sales matching. For these we use WhatsApp’s request-contact-info button (REQUEST_CONTACT_INFO). When the customer taps it, their number is shared in the thread and a contacts webhook fires, so the resolver can attach it and run any merge. Meta also keeps a hosted contact book per business portfolio that stores phone and BSUID pairs for interactions after launch; it is not backfilled and it is not synced across portfolios. We treat it as a safety net, not as our system of record.
One detail from Meta’s changelog: contact book data fills webhook payloads only, not API responses.
Mapping into the CRM
- The CRM gets our
person_idas a custom unique external-ID field, plus separate fields for BSUID, parent BSUID, IGSID, and phone (optional, nullable). - Upserts match on external ID first, never on phone alone.
- A duplicate-merge queue and an “identity unresolved” flag are visible to the sales team, so ambiguity is a workflow, not a silent data bug.
Outbound messages and follow-ups
- Follow-up jobs are scheduled against
person_id, and the sender picks the best recipient identifier at send time. - For WhatsApp, Meta’s API takes a BSUID in the
recipientfield when you don’t have a phone number. If you send both, the phone number intotakes precedence. The BSUID must belong to the same portfolio as the sending number, and some message types are not supported for BSUID recipients (Meta documents error 131062 for that case), so the sender needs a fallback path. - Meta recommends using phone numbers for marketing messages where you have them, so you continue to receive them in webhooks.
Failed-status webhooks omit the contacts block entirely, and recipient_user_id is left out when the original send went to a phone number. We correlate failures to the original send by message ID rather than by identity fields.
Testing and monitoring
- Contract tests built from Meta’s payload shapes for each scenario: legacy phone-only, username user with a BSUID and no phone, rotation events, and parent BSUIDs. Meta’s App Dashboard can generate BSUID-only, username-enabled and parent BSUID test scenarios.
- Dashboards for the share of inbound events with no phone, the unresolved-identity count, merge-queue age, and duplicate-creation rate.
The identifier change reaches well beyond 1:1 messages: delivery statuses, calls, group participant events, edits and revokes, user_preferences (marketing opt-in and opt-out), and history sync for customers who connect the WhatsApp Business app. If a user had already adopted a username when a history sync runs, the imported threads omit the phone number. Our normalizer treats every one of these as a source of identifiers, and consent state lives on person_id, so an opt-out that arrives keyed to a BSUID suppresses every channel for that person.
Migrating an existing phone-keyed system
- Add identity columns and widen field lengths. Stop treating
wa_id,fromandrecipient_idas required. - Ship the resolver in dual-key mode: BSUID first, phone as fallback.
- Harvest pairs now. Any webhook that carries both a BSUID and a phone number is a chance to link them for existing contacts, before those contacts adopt a username and the number stops arriving by default.
- Backfill the CRM external-ID field, then switch automations from phone to
person_id.
Legacy vs future-proof: the audit view
When we audit a client’s build, this is the comparison we work through.
| Area | Legacy build | Future-proof build |
|---|---|---|
| Primary key | Phone number (E.164) | Internal person ID; BSUID, parent BSUID, phone and IGSID stored as scoped identifiers |
| Webhook parsing | Rejects payloads missing wa_id | Reads user_id (and parent_user_id if enrolled); treats omitted phone fields as normal; handles both rotation events |
| Outbound messaging | Sends to a phone number only | Sends to the BSUID when there is no phone; keeps a fallback for message types that don’t accept one |
| Lead capture | Assumes the number is already known | Native contact-share button first; a typed number only as a verified fallback |
| Existing contacts | Phone-only records | Dual-key matching; phone and BSUID linked as they arrive |
| CRM | Phone as the unique field | Person ID as the external ID; BSUID and phone as separate fields |
| Brand presence | Phone number only | Reserve your business username, which gives customers an exact-match way to find you; it does not hide your business number |
Checklist for readers
- Does your webhook parser tolerate a missing
wa_id? - Do you store
user_id(andparent_user_idif enrolled) on every contact? - Is any database column, validator or event filter assuming a phone-number format?
- Do you handle both rotation event types?
- Can a follow-up be scheduled for a contact with no phone number?
- Do you have a consented way to ask for the number when you truly need it?
Not sure your flows are ready?
Because Meta is rolling usernames out gradually by region, these failures are easy to miss: nothing crashes. Customers who adopt a username show up as duplicate contacts, and follow-ups never fire for them. If you want a second pair of eyes, book a 15-minute intro call with Social Automation Desk. We’ll tell you what to check first in your webhook payloads, CRM mapping and bot flows.
About the author
Artyom Fokin is a Chat and CRM Automation Specialist at Social Automation Desk, a chat automation agency that sets up WhatsApp, Instagram and Facebook automation and helps clients compare chatbot and CRM platforms so they can choose the one that fits. He has worked in email, retention and CRM marketing since 2018, most recently as email marketing manager at Englishdom, where he built marketing automations, and he speaks at industry events. Connect with him on LinkedIn.