DialogFlow Integration with Telegram

Hemantjain
3 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 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 Telegram Version:

Dialogflow Telegram Integration allows you to easily create Telegram bots with natural language understanding based on Dialogflow technology.

Creating a Bot in Telegram

  • Firstly, we need to create a new bot using Bot Father.
  • Login to Telegram and go to https://telegram.me/botfather
  • Click the Start button in the web interface or type /start
  • Click on or type /newbot and enter a name
  • Enter a username for the bot, ending in “bot” (e.g. skf_chatbot)
  • Copy the generated access token
  • This token will be used when you will be linking your bot with Dialogflow.

In Dialogflow you need to create intents for all the questions you want the bot to answer. After that you can integrate it on different platforms.

Setting Up Dialogflow

  • In Dialogflow, go to Integrations in the left-hand menu
  • Click on the Telegram tile
  • Paste the Access Token into the related field
  • Click the Start button

Go to this link to test out our agent :

Telegram 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 😄

--

--