Connect Sofi to WhatsApp
Connect a WhatsApp Business number to Servicely so users can chat with a Sofi AI assistant from WhatsApp.
Connect Sofi to WhatsApp so users can message your business number and get answers from a Servicely AI assistant. You end with a working conversation channel on the Meta WhatsApp Cloud API.
Before you begin
- You need the
administratorrole in Servicely and administrator access to the Meta app. - Install the WhatsApp Integration application. It ships an inactive messaging account named WhatsApp.
- Have a Meta developer app with the WhatsApp product and a WhatsApp Business Account that holds the business phone number.
- Collect from the Meta app dashboard: the Phone number ID, the App secret, the App ID and a permanent access token. Generate the token for a system user with the
whatsapp_business_messagingandwhatsapp_business_managementpermissions and no expiry. The token on the API Setup page expires within about a day. - Have an AI assistant that should answer on WhatsApp.
Steps
-
In Servicely, go to Messaging & notifications → Accounts & channels → Messaging accounts and open WhatsApp. Fill in the fields in the table below.

The Messaging accounts item in the Accounts & channels menu. 
The WhatsApp messaging account form. -
Set Active and save. Select Test Connection to check the access token.
-
Select Copy endpoint URL. The URL ends with
/_messaging/v3/whatsapp/and the account’s record ID. -
In the Meta app dashboard, open the webhook configuration. For an app created from the WhatsApp use case, go to Use cases → Customize → Configuration. For an older app, go to WhatsApp → Configuration.
-
On the Webhook row, select Edit. Paste the URL into Callback URL, enter your VerifyToken value as the verify token, and select Verify and save.
-
Manage the webhook fields and subscribe to
messages. This one field carries messages, button replies and delivery statuses. -
Check that your own app, not only Meta’s developer tooling app, is subscribed to the WhatsApp Business Account. Put the app in Live mode.
-
In Servicely, go to AI assistants & agents → Assistants & Agents → AI Assistants and open the assistant. On the Selection context tab, add WhatsApp to Channels, or set it to All, and save.

The AI Assistants item in the AI assistants & agents menu. -
Set Mobile on each user who will use WhatsApp to their number in international form without the plus sign. For example, +61 412 345 678 becomes
61412345678. -
From a phone whose number matches a user, message the business number. Check that the assistant replies.
| Field | Value |
|---|---|
| Name | A name that identifies the business number |
| Client Id | The Phone number ID from Meta, not the phone number |
| OAuthToken | The permanent access token. It is stored encrypted. |
| App secret | The Meta App secret. Servicely checks every incoming request against it. |
| VerifyToken | Any value you choose. You enter the same value in Meta. It is stored hashed and cannot be read back. |
| App Id | The Meta App ID, for reference |
Create one messaging account for each business number. Email Fallback Enabled and Persist Matched Identity have no effect on WhatsApp.
Result
Users chat with the assistant from WhatsApp. Each phone number has one conversation, and /newchat, /clear or /endchat starts a new one. A chat does not create a ticket by itself. The assistant creates or updates records only when its tools allow it.
After a first successful chat, Servicely records the sender’s identity and no longer depends on Mobile. Meta can identify a sender by a business-scoped user ID instead of a phone number. Servicely stores these identities per messaging account. An identity by phone number applies to every account. Mobile stays the fallback when no identity matches. Administrators see the identities under Messaging & notifications → Accounts & channels → Messaging user identities.
A sender who matches no user gets a short notice, at most once a day. The application property agentic.messaging.unregistered_user.message holds its text. Receiving the notice shows the webhook works and only the user match is missing.
WhatsApp shows plain text only. Long answers arrive as several messages, and choices of more than three short options arrive as a numbered list.
If a send fails for a passing reason, such as HTTP 429 or a 5xx response, Servicely retries it. Send notifications to Microsoft Teams describes the retries and their properties, which WhatsApp shares.