DialogFlow | Integrations

Dialogflow Architecture

First published: April 2018  |  Last Updated: July 2020 Recently, I realized that people are not always very clear about Dialogflow’s architecture. In particular, a client was mixing up fulfillment and integrations. So this article provides a high level overview of Dialogflow’s architecture with a focus on how data flows when users interact with Dialogflow agents. In my view, there are 4 concepts you need to understand to get a good picture of Dialogflow’s architecture. 1 Request-response You can summarize a Dialogflow agent as a series of (request, response) pairs [1] . That is, 1 User sends a request to the Dialogflow agent 2 (some NLU magic happens) 3 Dialogflow sends a response back to the user Why is this…

DialogFlow | Integrations

How to integrate Telegram with Dialogflow

In this tutorial, I explain how to integrate your Dialogflow bot with the Telegram chat app. Why I prefer Telegram when creating tutorials I usually prefer to use Telegram for creating tutorials and demos. There are a few reasons for this: The process of creating the bot inside Telegram is quick since you can do it by sending messages to a designated “BotFather” account Telegram has only a single access token, so the integration steps are fewer Telegram supports a few rich responses such as buttons Hyperlinks in the text response of Dialogflow are automatically converted to clickable links inside the Telegram chat window Telegram supports multiple responses per message (for example, the 1-click web demo doesn’t support this) How…

DialogFlow | Drift | Integrations

I have created a proof-of-concept demo bot which integrates Drift live chat and Dialogflow

On the bottom right of all the pages on my site, you will see an orange box with a chat icon. If you click on the orange square, it will pop open a window, and you need to enter an email address (it is how Drift works, I don’t think it is possible to go to the next step without providing an email address). Once you do that, you will start interacting with my Dialogflow agent. If you are interested in creating a similar chat integration for your site, you can click here. Is the bot intelligent? The bot is still evolving, but as I write this for now it only allows for scripted (button-click) replies. I will be adding…

DialogFlow | Integrations | Rich Responses

How to send any Facebook Messenger rich response from Dialogflow webhook

I chose the title “How to send any Facebook rich response from Dialogflow webhook”. But it could just as well have been “How to send any Facebook Messenger | Telegram | Slack | Skype | Google Assistant | Google Telephony | Viber | Kik rich response” from a Dialogflow webhook, because there is no difference in terms of the channel. The technique I am going to show here is dead simple. Unfortunately, it has one big con, which I will cover at the end of this article. Get the actual JSON from the Dialogflow simulator Watch this video first  Create a response in Dialogflow corresponding to your specific rich response For example, here is a Facebook card intent. Trigger…

DialogFlow | Integrations

Why a custom integration is (almost) always better than a 1-click Dialogflow integration

I got this question in my comments recently: This question got me thinking about building custom integrations versus using the built-in 1-click integrations in Dialogflow. I do understand that a lot of people choose Dialogflow mainly for its ability to do 1-click integration with multiple platforms. But my experience till date has been that almost always, you are better off building out a custom integration with Dialogflow. First, some definitions. What is a 1-click integration? These are the integrations you see on your Dialogflow console. Here is an example of a 1-click integration I built. (Sorry, I don’t have bandwidth to maintain it right now). What is a custom integration? When you build a custom integration, you will use Dialogflow’s…

DialogFlow | Integrations

Why I don’t write about the Facebook Messenger + Dialogflow integration

Over the last few days, I received two separate user questions asking me why I don’t cover the Dialogflow + Facebook Messenger integration on my site. I wrote some thoughts previously about this, and here I will provide an update post-GDPR. This is obviously my opinion, so if you don’t like the conclusion I suggest you continue doing whatever you were planning to do and just imagine you never read this article. 🙂 Reasons why you think it is a good idea to build Messenger bots Clearly, there are some major factors why people choose to build FB Messenger Bots. Here are some of them: the audience is huge the reach is massive “everyone is on Facebook” Let us look…