Step by step guide on how to launch an AI chat bot on WhatsApp. It's straightforward - no coding required!
Image has been generated with Stable Diffusion 2.1 using the following prompt: Futuristic robot announcing WhatsApp integration, beautiful colourful artistic photograph
In this guide, we’re going to follow 5 simple steps to create a smart conversational AI that anyone can talk to via WhatsApp:
- Verify your business with Facebook
- Create your WhatsApp bot app
- Configure your WhatsApp bot app
- Generate a WhatsApp access token
- Create a Quickchat.ai account
- Integrate your WhatsApp bot app with Quickchat.ai
In order to connect your WhatsApp to an AI chat bot via Quickchat, your business needs to be verified on Facebook. Detailed instructions on how to do that are available on Facebook’s Business Help Center page. You will be required to provide additional information about your business and wait for the verification to be completed.
While you’re waiting for your Business to be verified, you can already go ahead and look into creating a WhatsApp app to serve your AI chat bot.
Head over to developers.facebook.com/apps, click on Create App and follow the steps.
First of all, add WhatsApp and Webhooks products:
Once added, they will appear on the left-hand side:
Select your business phone number in WhatsApp Quickstart settings. That’s the number through which your users will be contacting your AI on WhatsApp. If you don’t know how to add a phone number to WhatsApp, you can follow this official tutorial.
Also, take a note of the Account ID. You will later need to paste it into the Quickchat dashboard.
While on this page, also take note of your App secret which you will also need to paste into the Quickchat dashboard.
To generate an access token required to integrate with WhatsApp you will need to go to business.facebook.com/settings/system-users. Make sure you are looking at the correct business account.
First, you need to create a user with admin permissions. Keep in mind that there can be only one admin account.
Once the admin user is created, select Add assets under the Assigned Assets section.
Select Apps, choose your app with WhatsApp integration and give it full controll to Manage App.
Next, you will need to generate a new token. Press the Generate new token button and select your app. In the Available Permissions section select two permissions:
Finally, copy the generated access token and paste it into the Quickchat dashboard under the WhatsApp window in Integrations section.
Quickchat AI allows you to create your own AI Assistant that has great conversational skills and general world knowledge by default, out of the box.
If you want to, you can give your AI specific knowledge about your company, project, product or virtually anything else. If you want to learn how to do it, watch our 10-minute video guide on YouTube.
But even without any specific knowledge the Quickchat engine makes a great conversation partner so we’re going to go with that for now. Head over to quickchat.ai and create your account:
Subscribe for the 2-week trial for just $14.
In the Integrations section of the Quickchat dashboard, paste your WhatsApp Account ID, App secret and Access token you found in previous steps.
The final step will be to integrate and verify the Quickchat webhook endpoint which will receive your message events. Go back to developers.facebook.com/apps, select your app and open your app’s WhatsApp Quickstart settings. Click on the Edit button for webhooks.
Set the correct callback URL as shown below while your Verify token can be found in the Quickchat dashboard as shown above.
Once the Callback URL has been correctly added, click on the Manage webhook fields button.
Subscribe to the messages fields and select Done to continue.
Once correctly configured and saved, your Webhooks sections is going to look something like this:
And that’s it! 🎉 Your AI chat bot is ready to be tested on WhatsApp: