Connect a WhatsApp number
Attach an employee as a WhatsApp number and you can message the employee in one-to-one WhatsApp chats. One number serves one employee. Getting to a test number takes about 30 minutes.
There are two ways. If the detail screen shows a Connect with Meta button at the top, follow only the Connect with Meta section below. If there is no button, follow attaching your own Meta app from step 1.
Connect with Meta
You connect the number by choosing in a Meta window, without creating a Meta app or copying tokens.
- In the left sidebar, open AI teammates, choose the teammate, then the Settings tab and the Integrations chip. Under Channels, select Connect on the WhatsApp row
- Select Connect with Meta at the top of the detail screen. The button changes to Connecting and a Meta window opens
- In the Meta window, log in with Facebook and choose or create a business portfolio and a WhatsApp Business account
- Choose or add the number to connect, and enter the code you receive by text or call
- Select
Finishon the last screen - Add a payment method in WhatsApp Manager. Setup finishes once it is added
Done when: "WhatsApp number connected" appears and the detail screen shows "Connected as (display name)". Then follow steps 6 and 7 (choose what the teammate can do, send a test message).
Good to know:
- Only new numbers can be connected for now. If you choose a number used in the WhatsApp Business phone app, "Only new numbers can be connected for now" appears and nothing is connected
- If you see "The number couldn't be registered" or "The callback URL couldn't be set on the number", select Reconnect and go through the same steps again
- Disconnecting releases the number from DAIOps, so attaching it to another service does not fail with "already in another app"
Before you start
- A Facebook account and Meta developer registration
- A business portfolio (formerly Business Manager). You pick or create one when you create the app
- A WhatsApp phone to receive test messages
- You must be a manager of that employee
- Meta's screen names change often. If they differ, follow the official links at the bottom
1. Create a Meta app
- In Meta App Dashboard, click
Create App - Enter the app name and a mail address
- Under use case, choose
Connect with customers through WhatsAppand clickNext - Pick or create a business portfolio and click
Next, check the details, and clickCreate app
2. WhatsApp account and test number
- When the app is created, the
Quickstartscreen opens. ClickStart using the APIto go toAPI Setup - Pick a messaging account, or click
Create a WhatsApp Business account - Write down two values on the screen
- WhatsApp Business Account ID
- The Phone number ID for the test number under
From
- Enter your phone number under
Toand send a test message withSend message. If the message arrives on your phone, it works
A test number can send only to numbers registered under
To. The temporary token fromGenerate access tokenexpires soon, so enter the permanent token from step 4 in DAIOps.
3. Check the App secret
In App Dashboard, open App settings → Basic, click Show next to App secret, and copy it. DAIOps uses this value to check that incoming messages really come from Meta.
4. Permanent access token (system user)
- Open Business settings and click
System userson the left - Create a system user with
Add+. Example name:daiops-jeomsun - Select the user you created and click
Assign Assets- App: pick the app from step 1 and turn on
Manage appunderFull control - WhatsApp account: pick the account from step 2 and turn on
Manage WhatsApp Business accountsunderFull control - Save with
Assign assets
- App: pick the app from step 1 and turn on
- Click
Generate tokenand pick three permissions:business_management,whatsapp_business_messaging,whatsapp_business_management - Copy the token. It is not shown again, so enter it in DAIOps right away or keep it in a password manager
5. Enter them in DAIOps
-
In the left sidebar under Employees, pick the employee, then open the Settings tab at the top → the Integrations chip (the Settings item in the sidebar is your account settings, not this). Under "Channels", click Connect on the WhatsApp row. Its detail screen opens, with "Integrations › (name)" at the top
-
Fill in the four fields and click Connect
Field Where to find it Phone number ID API Setupin step 2Account ID (WhatsApp Business Account ID) API Setupin step 2Permanent access token Step 4 App secret Step 3 -
In App Dashboard, open
WhatsApp→Configurationand subscribe tomessagesunder Webhook fields. On the newer screen, it isUse cases→Customize→Configuration -
Keep the app in Live mode. In Dev mode, some messages do not arrive
DAIOps registers the address for receiving messages with Meta automatically. If the detail screen shows "The callback URL couldn't be registered automatically", copy the Callback URL and Verify token on the detail screen with their copy buttons, enter them in Callback URL and Verify token under Configuration, then verify and save.
You are done when: "WhatsApp number connected" appears, and the detail screen shows "Connected as (display name)".
6. Set what the employee does on this connection
Under What the employee does on this connection at the bottom of the detail screen, choose the scope. Start with Chat and lookups only.
7. Message the number to check
From WhatsApp on your phone, message this number. If the employee replies, the connection is done.
Good to know
- WhatsApp does not let the employee send first once 24 hours have passed since the other person last wrote. Results of recurring tasks are not sent in that case either, and the reason is recorded in the run log
- A real number must not be in use in another WhatsApp app, and you get a verification code by text or call. Follow Add a business phone number for the steps
- Sending widely to many people requires Meta business verification and a payment method. Apply for business verification in
Security Centerof the business portfolio (Meta: Business verification)
Common problems
| Message on screen | What to do |
|---|---|
| Enter the phone number ID and account ID exactly as the numbers shown in API Setup | Check that you did not swap the two numbers from step 2 |
| The App secret doesn't look right. Enter the 32-character value from App settings › Basic | Enter the 32-character value from App settings → Basic as it is |
| The access token was rejected or can't access this number. Check the token's permissions and assigned assets | Check the three permissions from step 4, and that both the app and the account are in Assign Assets |
| Couldn't find this phone number ID. Check the Phone number ID in API Setup | Copy the Phone number ID from API Setup again |
| This number is already connected to another AI teammate | A number connects to one AI teammate only. Disconnect it from the teammate it is connected to first |
| Connected, but no reply | Check the messages subscription from step 5 and Live mode |
References
Other messengers
Connecting a Telegram bot · Connecting a LINE Official Account · Connecting a KakaoTalk channel chatbot · Connecting a WeChat Work AI bot