Purpose

The WhatsApp integration allows you to offer your chatbot on the WhatsApp app
Your users will be able to interact with your chatbot as they do with their friends 🙂

3740

Step by step tutorial

  1. Login or create an account on the  Meta for developpers page  
  2. Then, click on "Create App".
4366

Choose the "Business" app type

4320

Pick a name for your bot

4334

Add the WhatsApp product

4327

Pick Meta Business Account if you have one or you can create one

4324

Congrats your Meta has been created
A dedicated phone number has been created for the bot
Now you can define up to 5 testers for this app

4338

For each tester, define the country code and the phone number

4334

You will receive a confirmation code by SMS to reuse here

4334

You can now test the WhatsApp push message by clicking on "Send message"

4732

You should receive a Hello World message
You can add this number in your contacts so you can easily find it later to test your bot

4400

Now let's plug your bot to the Meta app!
Go to the Builder and click on Integrations

4390

Choose WhatsApp

4380

We have access to a window to define our integration, let's fill the form and make it work!

4396

First copy / paste the Access Token as shown below

🚧

Your Access token is temporary

As mentioned in the Met platform, the given token has a relatively short lifespan of 23 hours, if you are testing the bot during multiple days, you will have to update this token in the bot platform and click "Redeploy"

5859

The token verify is a text defined by you, in our case we have simply set it to bonjour

4403

Once all field are filled, we can deploy the integration. Click on "Deploy my app"

4370

Now, on the configuration section, click on Edit the Callback URL

4373

Copy / paste the token verify and the webhook from the integration and click on "verify and save"

5861

Lastly, click on "Manage" in the Webhook fields section

4372

Subscribe to the messages

4342

You should see a green confirmation, click on "Done"

4332

here is how the webhook should look like now

4328

Congrats, you can now send messages and get replies from your bot directly on WhatsApp 🙂

4400