Skip to main content
Version: 8.4.X

WhatsApp Config

WhatsApp is a chat application to communicate on the go. Using WhatsApp for incident creation and management will become easier if you integrate the ServiceOps with WhatsApp. Once combined, you can generate or review requests from WhatsApp without signing in to the Support Portal or accessing the chat agent from the portal. In this case, WhatsApp Business Account is used for integrating WhatsApp with ServiceOps.

Such integrations provide programmable communication tools for sending and receiving messages, and performing other communication functions using its web service APIs.

WhatsApp for Business Integration

Using Facebook

Prerequisites

  • ServiceOps hosted on a public URL
  • SSL Certificate enabled
  • The Base URL in ServiceOps should be the same as the portal URL
  • Chat support should be enabled in the ServiceOps Portal
  • WhatsApp account created.
  • Valid Facebook Account
  • Meta Business Account

Applicable Version

This functionality is applicable from version 7.9 and above.

Create App

To create a WhatsApp Virtual Agent using Facebook, follow the below steps:

Step 1: Install WhatsApp from the Google Play Store and create an account.

Step 2: Login to Meta for Developers using the existing Facebook account.

Login Meta for Developers

Step 3: Click My Apps > Create App.

My Apps > Create App

Step 4: On the Add Use Case page, select the Other option, and click Next.

add use case

Step 5: Select an app type as “Business” and click Next.

Select Business App Type

Step 6: Enter the basic details like the app name, App contact email, and click Create app.

Enter the Basic Details

Step 7: Re-enter the password of your account and click Submit.

Re-enter Password

The app gets created, and its details page appears.

Add Phone number

Step 8: On the left-side menu, click the Add Product link, search for WhatsApp on the right-hand side, and click Setup.

Setup WhatsApp

The following Quickstart page appears.

Create a Meta Business Account

If the Meta Business Account is not created, click Continue, and create it first.

If the Meta Business Account is already created, select it from the dropdown, and then click Continue.

Select a Meta Business Account

Step 9: Next, on the left panel, navigate to WhatsApp > API Setup page, scroll down to step 5, and add a phone number using the Add phone number button. For more details, refer to the Phone Numbers page.

Add Phone number

The following popup appears. 

Step 10: In the WA Business Profile tab, fill in the below details.

Fill in the details

Once done, click Next.

Step 11: Add a phone number for WhatsApp that is not registered and select the method for verification. You can verify your number either via a text message or phone call. Once done, click Next, and the code will be sent on this number for verification.

note

If the number is registered to an existing WhatsApp account, stay on this page, delete the account associated with this number, and re-verify it after 3 minutes.

Add Phone number

Step 12: Verify the phone number using the code sent and click Next. The phone number gets added.

Step 13: Next, move to step 1 on the same page, and select the phone number which will be used for sending messages. The dropdown displays the number added in the above steps. Once the number is selected, its phone number ID appears as shown below.

Select Phone number

note

You can also use a Test Mobile number to access and get response from ServiceOps as shown below. But, with Test number, you can converse with only one Mobile number. To start a conversation with multiple members, use a valid Mobile number on which WhatsApp is not linked.

Test Number

Step 14: Copy the Phone number ID and paste it to ServiceOps as shown below.

Paste the Copied Phone number ID

Generate Token

Step 15: To generate token, navigate to WhatsApp > Configuration > Permanent Token section, and refer to the link, Learn how to create a permanent token. Here, you can create a token in two ways:

  • System User access token created in the WhatsApp Business Accounts tab of the Business Manager
  • A User Access token via Facebook Login. Once the token is generated, copy and paste it into the Client ID field of ServiceOps.

Configure WhatsApp in ServiceOps

Step 16: In the ServiceOps Portal, navigate to the Admin > Support Channel > Virtual Agent > WhatsApp Config tab.

WhatsApp Config page

  1. Enable the functionality.
  2. Allow Notification: Enable to send notifications to the WhatsApp application. By default, it is disabled.
  3. Paste the Client ID (permanent token) copied from the Meta for Developers page in Step 15.
  4. Paste the Phone number ID copied from Step 13.
  5. Enter the Access ID using which a connection will be established between the Facebook and ServiceOps. The ID can be any text or combination of text and numbers. For example: Hello. Use this same Access ID in the Verify token field while editing the Webhook Callback URL.
  6. Once done, click Update.

Configure Webhook

Step 17: In the Meta for Developers page, navigate to WhatsApp > Configuration menu, and click Edit.

Configuration page

The Edit webhook’s callback URL popup appears. Enter the following:

  • Callback URL: Enter the URL of the ServiceOps Portal. Use the below URL format:

    {server URL}/api/public/whatsapp

  • Verify token: Use the token entered in the Access ID field of ServiceOps (Step 16). Once done, click Verify and Save.

Edit Callback URL

Step 18: Next, click the Manage button to add Webhook fields.

Manage Webhook fields

The following popup appears. Select the messages field, Subscribe, and click Done.

Subscribe messages field

Step 19: In the WhatsApp, search for the phone number added, type Hi, and a welcome message appears. You can then start your conversation with the bot as shown below.

WhatsApp Conversation

FAQs

  1. How many numbers you can access with the Test number?

    A: You can access only 1 Test mobile number.

  2. What is the maximum limit of free conversations per month?

    A: The maximum limit for free conversation is 1000 per month. Once the limit is exceeded, you will be charged.