Messenger

Learn to set up a Facebook Messenger communication channel for your bot in NLX's Dialog Studio

If you don't already have a Facebook page for your bot to connect to, create one on Facebook (https://facebook.com). Once your page is in place, set up Messenger before creating a channel for your bot.

Create Messenger channel

Easily create a Messenger channel for your bot under the Channels tab:

  • Expand Messenger option

  • Select + Create channel link

  • Click Create channel button


Set up Messenger

To generate the other necessary properties to get your bot up and running with Messenger, first create a Messenger product:


Page access token

  • On your Facebook App's page, click Add or Remove Pages

  • Navigate to your app's page and choose the Facebook page you want to link your bot to

  • Follow the steps in the pop-up

  • After the page is added, click Generate Token

  • Copy the token from the popup and click Done

  • Go to Dialog Studio and navigate to the Messenger channel of your bot under its Channels tab. Select to edit the channel, and enter the token copied into the Page access token field


Verify token

You will have to generate this string. We recommend using a password generator like https://www.lastpass.com/password-generator. For security, make sure the token is at least 32 characters long.

  • Go to Dialog Studio and navigate to the Messenger channel of your bot under its Channels tab. Select to edit the channel, and enter the value into the Verify token field


Post deployment

In Dialog Studio, build and deploy your bot.

  • After deployment, make note of the bot URL by expanding the Details link

  • On your Facebook App's page, scroll to the Webhooks section and click Add Callback URL

  • Enter the bot URL from above into the Callback URL field. Then enter the verify token value you created into the Verify Token field

  • Click the Verify and Save button

  • On your Facebook App's page, scroll to the App Review for Messenger section and select to add the pages_messaging permission

Last updated