Skip to main content

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.

  1. 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
  2. Select Connect with Meta at the top of the detail screen. The button changes to Connecting and a Meta window opens
  3. In the Meta window, log in with Facebook and choose or create a business portfolio and a WhatsApp Business account
  4. Choose or add the number to connect, and enter the code you receive by text or call
  5. Select Finish on the last screen
  6. 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

  1. In Meta App Dashboard, click Create App
  2. Enter the app name and a mail address
  3. Under use case, choose Connect with customers through WhatsApp and click Next
  4. Pick or create a business portfolio and click Next, check the details, and click Create app

2. WhatsApp account and test number

  1. When the app is created, the Quickstart screen opens. Click Start using the API to go to API Setup
  2. Pick a messaging account, or click Create a WhatsApp Business account
  3. Write down two values on the screen
    • WhatsApp Business Account ID
    • The Phone number ID for the test number under From
  4. Enter your phone number under To and send a test message with Send message. If the message arrives on your phone, it works

A test number can send only to numbers registered under To. The temporary token from Generate access token expires 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)

  1. Open Business settings and click System users on the left
  2. Create a system user with Add+. Example name: daiops-jeomsun
  3. Select the user you created and click Assign Assets
    • App: pick the app from step 1 and turn on Manage app under Full control
    • WhatsApp account: pick the account from step 2 and turn on Manage WhatsApp Business accounts under Full control
    • Save with Assign assets
  4. Click Generate token and pick three permissions: business_management, whatsapp_business_messaging, whatsapp_business_management
  5. 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

  1. 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

  2. Fill in the four fields and click Connect

    FieldWhere to find it
    Phone number IDAPI Setup in step 2
    Account ID (WhatsApp Business Account ID)API Setup in step 2
    Permanent access tokenStep 4
    App secretStep 3
  3. In App Dashboard, open WhatsApp → Configuration and subscribe to messages under Webhook fields. On the newer screen, it is Use cases → Customize → Configuration

  4. 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 Center of the business portfolio (Meta: Business verification)

Common problems

Message on screenWhat to do
Enter the phone number ID and account ID exactly as the numbers shown in API SetupCheck 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 › BasicEnter 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 assetsCheck 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 SetupCopy the Phone number ID from API Setup again
This number is already connected to another AI teammateA number connects to one AI teammate only. Disconnect it from the teammate it is connected to first
Connected, but no replyCheck 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