Messenger

In order to deploy your bot to Facebook Messenger, you will need to follow a few steps described below.

Login to Facebook Developers console

Go and login to the Facebook Developers https://developers.facebook.com

Setup your Facebook app

First create your Facebook app

20002000

Give a name to your app.

18351835

Then make turn it on.
You may be prompted to add a privacy url, until you have yours you can put the following url https://www.facebook.com/about/privacy

20002000 18371837

Your app is up!

18431843

Connecting the Facebook app to your Facebook page

First, from the dashboard, we will add Messenger as a product in our app.

20002000

Then we go to the Messenger settings.

20002000

In the next steps we will attach the app to our Facebook page.

20002000

Select the desired page.

18401840

Grant conversations access.

18401840

Your app is now connected to your Facebook page.
๐Ÿ‘

18391839

Connecting the Facebook to your Smartly.AI bot

Get your access token

20002000

Copy this token and put it in a safe place.

18391839

Then we will go to our main bot, open the Messenger integration window.
There paste the Access Token you just got from the Facebook Developers platform.
You can define a token verify, it is just a security word that will be shared by Smartly.AI and Facebook.
Once this is done, click on Deploy.

18571857

Back to the Facebook Developers page where we will activate the page messaging.

20002000

And we will define the webhook url.

20002000

While creating your webhook, check the following options:

20002000

Copy and paste the webhook informations from Smartly.AI to Faebook then click verify and save.

19021902

At this stage, you should see green indicators telling you that everything is up and running!

20002000

Test your bot

To test our bot, we will go back to Facebook and create a button in our Faceboog page.

20002000

What we need is a Contact us button.

18371837

This button should be linked to our Messenger bot.

20002000

Now, let's test our button.

20002000

A chat box appears, click on the Get Started button.

17061706

Congratulations! You can now test your bot on Messenger!

10791079