Update July 8th 2020: The web app is back online. You can check it out here. The documentation is here. As a launch bonus, till end of day July 15th 2020 (Pacific Time), everyone who pays for one week of access to BotFlo will get a second week free.
I got this comment recently on my YouTube channel: So how do you render a user message when the user clicks a suggestion chip? And how to respond to the message from your bot? In other words, how can we make the selection of a suggestion chip in the Dialogflow Messenger move the conversation forward to the next intent? You might recall my earlier tutorial on getting started with the Dialogflow Messenger. I am going to be extending the same agent to explain this topic. What we are building Here is a demo which shows what we will be building in this tutorial. You can interact with the bot here. The Basic idea When user clicks on a suggestion chip […]
There are some situations where you shouldn’t use followup intents, because it will not work. The while loop There was a chatbot called the Florist bot that was originally used as an example bot in the Dialogflow documentation (when it was still called API.AI). This is what the flowchart of the Florist bot looked like. In the figure below, the area marked in red is actually a while loop. In theory, the user can just keep indefinitely adding red roses into the bouquet and never say “No, thanks” and exit the loop. This is the “while loop” in software terminology. It is not possible to use followup intents for this conversation flow, since you wouldn’t know how many levels deep […]
I have mentioned in many of my articles and videos that I recommend using a context lifespan of 1 in all your intents. I have collected all the related ideas into this single article, and also updated it with my current view as of June 2020. This article is based on a few different articles I had written previously on the topic of context lifespan. Optimal context lifespan in DialogFlow Note: this is a somewhat advanced topic, and certainly a bit opinionated. I wouldn’t recommend beginners get into this article until they have built at least a toy bot and experienced all the features in Dialogflow. Contexts If you are building bots using Dialogflow, you are probably aware of contexts. […]
I got this question from a course student: Hi Aravind, Dialog Flow, we developed agents and Intents using UI, But in the real production system, do we use language (python, java) to do the same what we are doing using Dialog Flow UI? There are a few questions here: can we use a programming language to automatically create Dialogflow agents? should we use a programming language to automatically create Dialogflow agents instead of the UI (for e.g. it is too time consuming if the intents are repetitive) is there a third option? Dialogflow provides a REST API Since Dialogflow exposes a REST API which allows you to programmatically create intents, entities etc, it is possible to create Dialogflow agents using […]
In this tutorial, I explain how to add a chatbot to your website using the Dialogflow Messenger integration. What we will be building The video below shows what we will be building in this tutorial. Embed the chat widget into your website Embedding the chat widget into your website is straight-forward. Create your Dialogflow agent Create a new Dialogflow agent, and remove the Welcome event from the Default Welcome Intent. Add a new intent into your agent with the following information (note that it includes the Welcome event). Add the script to your web page Once you create your welcome intent, go to the Integrations pane, and select the Dialogflow Messenger integration. Now copy the script into your clipboard. Paste […]
Recently, Dialogflow introduced a new feature called Dialogflow Messenger, which allows you to easily add a chatbot to your website. The feature is still in Beta, and the docs mention that things may change over time. But first, a rant. The naming of the feature is very odd, considering it not only sounds a lot like Facebook Messenger, but there is ALSO a Dialogflow + Facebook Messenger integration. And to make matters worse, it is also possible to embed your Facebook Messenger bot (which may or may not have been built using Dialogflow) in your website. Let us not forget, generally speaking, similar sounding product names can also cause real confusion when it comes to SEO. So Dialogflow Messenger now wants […]
You might not have realized this, but there are actually three types of Dialogflow contexts. And I recommend only one of them. Implicit and auto-generated contexts When you use the slot filling feature, which I do not recommend, you are using implicit, auto-generated contexts. (Note: I use auto-generated and system generated interchangeably, they mean the same thing). These contexts are auto-generated because you didn’t create them but they are automatically generated by the system when you define a parameter as being required. They are implicit, because their presence cannot be used to infer candidate intents. Explicit and auto-generated contexts When you use the follow-up intents feature, you will notice that Dialogflow automatically adds an output context to the parent intent […]
I have created a small eBook to explain the differences between Dialogflow and RASA NLU if you are trying to choose one or the other. Note: you can right click on the images below and open in a new tab or window to see a larger, full size picture. Table of Contents Excerpt Buy the eBook You can buy the eBook from Gumroad by clicking on the link below.