Multi-platform Integrations

WhatsApp Integration

Connecting WhatsApp with Chat Data enables your custom chatbot to interact directly with customers on WhatsApp, offering a smooth and efficient method for managing inquiries and automating responses. This guide will take you through the steps needed to link your chatbot to a WhatsApp phone number, ensuring seamless and effective customer engagements.


Preliminary Information about Phone Numbers

  • The WhatsApp phone number connected to the chatbot can only be used by the chatbot and cannot be used on WhatsApp or WhatsApp Business.(see Preliminary Information about Phone Numbers for details) If you are already using the phone number with WhatsApp, you must delete your account in the app first.

  • To delete WhatsApp:

    • Open the WhatsApp or WhatsApp Business app.
    • Go to Settings > Account.
    • Select Delete my account. This process may take a few minutes, but once completed, the number will be available for use.
  • If you previously used WhatsApp through Meta Developer for business, you must disable two-step verification:

    • Log in to your WhatsApp Business Account.
    • Choose the phone number you want to connect.
    • Go to Settings > Two-step verification and turn off two-step verification.

Connect WhatsApp with Chat Data

  1. Go to Dashboard > [Chatbot] > Integrations.
  2. Select the WhatsApp integration card. WhatsApp integration card

Embed Signup Process

  1. Click the Connect button in the pop-up window. WhatsApp integration pop-up
  2. Sign in with your personal Facebook account. Sign in with Facebook
  3. Press Get started. Get started
  4. Choose or create a business profile. Choose or create a business profile
  5. Set up a WhatsApp business profile or choose an existing one. Set up a WhatsApp business profile
  6. Enter the details for the business profile. Enter the details for the business profile
  7. Add a phone number. It’s advisable to have just one associated number in this profile. Add a phone number
  8. Click Continue. Continue
  9. Allow a few moments for information verification. Information verification
  10. Click Finish. Finish
  11. (Optional) You can adjust your WhatsApp bot’s appearance or remove your phone number by selecting the PHONE PROFILE link. Final WhatsApp bot
  12. (Optional) Go to PHONE PROFILE, update your WhatsApp settings, and then click Save. PHONE PROFILE
  13. (Optional) Scan the QR code with your smartphone to start interacting with the linked WhatsApp number. The WhatsApp account should automatically respond to your message. Since the customer's phone number is included, their information will be collected automatically as a lead.

With the integration now active, you can send up to 1000 free messages each month. To send more than 1000 messages per month, make sure to add a payment method in your Meta billing settings.

Congratulations! You've successfully connected your Chat Data chatbot to WhatsApp, and it’s now set up to respond to all messages received through WhatsApp!

System User Access Token Signup Process

The embedded signup process by facebook might have some bugs in authorization your account occasionally due to bugs by Meta in verifying your phone number during the signup process. Facebook authorization error If you happen to have issues at the step 10 above, you can use this integration method as a fallback.

  1. Develop your Whatsapp application following Meta's guidance. WhatsApp create app

  2. Generate Access Token Generate a permanent system user access with the whatsapp_business_messaging and whatsapp_business_management permissions for your created app.

5: Setup Access Token Go to the Integrations tab in your chatbot menu. Click the Add to Whatsapp button to initiate the integration process. Simply enter the access token created in Step 3 above. Don't worry if the status dot still shows with red color. Set up the Whatsapp system token

  1. Add a phone number If you haven't added a phone number to your Whatsapp App, you can do so by clicking the Add a phone number button shown in the picture below. And follow the steps to add your own phone number and verify it. Add a phone number

  2. Test the phone number. If added successfully, you should be able to see the phone number in the Phone numbers section. You can test the phone number by sending a message to it. Test the phone number

  3. Setup Callback URL Return to the API setup tab of your Whatsapp App and insert https://www.chat-data.com/api/v1/chatbot/whatsapp/events/{chatbotId} as the webhook URL. Subscribe to the messages event. The status dot in Step 2 should turn green after completing this step. WhatsApp create app

Live Chat Handover

After the phone number is integrated into the WhatsApp business account through Facebook OAuth 2.0, you cannot use the WhatsApp app to chat with the customer anymore. To chat with the customer in case the AI chatbot cannot provide a satisfactory answer, you can leverage our live chat panel to chat with the customer directly.

WhatsApp Live Chat Handover

As a human agent, you can click the Live Chat dashboard tab and select the corresponding WhatsApp conversation thread to chat with the customer. Alternatively, you can use the checklist filter to filter the WhatsApp conversations only and select the corresponding conversation as shown in step 2 above.

Then you can turn off the AI chatbot for the corresponding conversation so that the chatbot won't respond to the message when you are chatting with the customer. Otherwise, the AI chatbot will respond to the same query again even if you have typed your response in the admin live chat panel.

WhatsApp Turn off the AI chatbot

After you send the human response, we will send the WhatsApp message to the customer's WhatsApp account directly. When the customer responds back and if the AI bot is turned off and you are offline, we will send an email along with the chat portal link to your email address registered in the live chat setting, which is similar to how the offline live message works in New Message To the Agent.

You can switch the AI bot on at any time after you have finished the live chat with the customer.

Sending WhatsApp template messages

You can use our Make workflow template to send WhatsApp template messages by the access token and whatsapp account id shown in your integrated WhatsApp account. Whatsapp integration credentials Here we will talk you through a concrete example of how to send a WhatsApp template message using the Make workflow template.

  1. Create a scenario based on the Make workflow template
  2. Create the google sheet with the phone numbers you want to send the message to. Here we used two phone numbers for the example. Google Sheet with phone numbers
  3. Establish your Google connection and link the first module to the Google Sheet, then configure the required fields. For instance, we selected the "A2:A3" range without a header, as that is where the phone numbers are located. Set up the Google Sheet module
  4. Run the first modle once to popluate the fields and check if the data is correct. The operations should show the phone numbers with the key "A", like below. Run the Google Sheet module
  5. Use the Iterator module(the second module) to iterate over the phone numbers with the Array "A". Iterator module
  6. Create your WhatsApp connection and link the third module to the WhatsApp connection. Input the permanent token(access token) and the WhatsApp Business Account ID provided by us. Set up the WhatsApp connection
  7. Set up the parameters in the third module with the receive phone number as the key "A" and the corresponding message template. Set up the parameters in the third module
  8. Click the Run Once button to trigger the whole workflow. You should see the whatsapp message sent to the phone numbers. Run the workflow
  9. You can also check the operations of the third module to see if the message is sent successfully. Check the operations of the third module
  10. You can config the schedule in the first module to trigger the workflow at your desired choice. For example, we set it to run every every day at 20:00 PDT. Set up the schedule
  11. Save and turn on the workflow.
Previous
Slack Bot Integration