DialogFlow Integration with Facebook Messenger

Hemantjain
Voice Tech Podcast
Published in
4 min readAug 22, 2019

So, in the Last post, we covered the importance of chatbots and setting up the dialog flow account, Importance of Dialogflow and all other features of Dialogflow.

From here you can refer:

Now, we will study about the integration with different platform-one by one-like Telegram, Slack, and Messenger. I had made a SKF-chatbot for the different platforms through DialogFlow Integration.

More Platform:

What is SKF?

Security Knowledge Framework (SKF) is a tool that is used as a guide for building and verifying secure software.

Introduction of SKF-Chatbot:

What is Chatbot?

Chatbots are software agents that interact with the user in a conversation.

A chatbot is a service which is provided by websites so that users can easily able to fetch information interactively.

They can reach out to a large audience on messaging apps and be more effective.

A chatbot provides speedy and quick response and available around the clock.

What is SKF-Chatbot?

SKF-Chatbot is the bot which will help you with the details or answer your queries about the different vulnerabilities. The bot can be asked about the description, solution of the vulnerability and also help you with the code snippet in various languages. Language Supported: Django, Java, Flask, Php, Ruby,asp.

SKF-Chatbot Facebook Version:

The Dialogflow Facebook integration allows you to easily create a Facebook Messenger bot with natural language understanding, based on the Dialogflow technology.

Setting Up Facebook

In order to set up the Facebook integration for your agent, you’ll need the following:

a Facebook account

a Facebook page to add your agent to When a user visits your page and sends you a message, they’ll be talking to your agent.

Build better voice apps. Get more articles & interviews from voice technology experts at voicetechpodcast.com

Create a Facebook App

  • Log in to the Facebook Developer Console.
  • Click on My Apps in the upper right-hand corner.
  • Click on Add a New App and enter a name and contact email address
  • Click Create App ID.
  • On the next page, click the Get Started button for the Messenger option.
  • Under the Token Generation section, choose one of your Facebook pages.

This will generate a Page Access Token. Keep this token handy, as you’ll need to enter it in Dialogflow.

Setting Up Dialogflow

  • Click on the Integrations option in the left menu and switch on Facebook Messenger. In the dialog that opens, enter the following information:
  • Verify Token — This can be any string and is solely for your purposes
  • Page Access Token — Enter the token generated in the Facebook Developer Console
  • Click the Start button.

Go to this link to test out our agent:

Click on Send Message to test —

Facebook Bot

Thanks for reading!. Please do clap if you liked it, you can clap more than one 😉. Comment(reviews or doubts) and Share it 😄

You can connect with me on Github, Linkedin, Twitter 😄

--

--