HomeGuidesAPI ReferenceChangelogsDiscussions
GuidesChangelogsAPI ReferencePublic RoadmapService StatusLog In

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

2000

Give a name to your app.

1835

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

2000 1837

Your app is up!

1843

Connecting the Facebook app to your Facebook page

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

2000

Then we go to the Messenger settings.

2000

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

2000

Select the desired page.

1840

Grant conversations access.

1840

Your app is now connected to your Facebook page.
👍

1839

Connecting the Facebook to your Smartly.AI bot

Get your access token

2000

Copy this token and put it in a safe place.

1839

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.

1857

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

2000

And we will define the webhook url.

2000

While creating your webhook, check the following options:

2000

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

1902

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

2000

Test your bot

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

2000

What we need is a Contact us button.

1837

This button should be linked to our Messenger bot.

2000

Now, let's test our button.

2000

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

1706

Congratulations! You can now test your bot on Messenger!

1079