DialogFlow | Website Bots

Seven ways to integrate a Dialogflow chatbot into your website

In this article I explain the different ways you can integrate Dialogflow into your website and how the specific type of integration will allow you to add rich responses inside your chat window. Seven ways to add a Dialogflow chatbot to your website August 2020 Update: There are now seven ways to integrate a Dialogflow chatbot into your website. 1 Use the built in 1-click web demo integration For example, here is a “tell me a random Chuck Norris joke” bot 🙂 I have built using the 1-click web demo integration. 2 Use the Dialogflow Messenger integration A while back, Dialogflow created the Dialogflow Messenger integration as a much needed improvement over the 1-click web demo integration. You can see…

DialogFlow | Website Bots | Zobot

Dialogflow Zobot: Selection Triggers the next intent

In this tutorial, I will explain how you can move to the next intent based on a button selection in a Dialogflow Zobot. [1] What we are building We will be creating a bot which provides coupons for courses on my course website (to begin with. More features will be added later). Flowchart Let us take a look at the flowchart for this chatbot. Please take some time to go through my article on Dialogflow flowcharts to get a background on the conventions I have used in this flowchart. In addition to my usual conventions, I use two more conventions in this flowchart: a) The triple slash (///) acts as a separator and indicates a new chat bubble will be…

DialogFlow | Integrations

Dialogflow Architecture

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 important? You see a lot of questions on forums…

DialogFlow | Python | Webhooks

Dialogflow Python webhook tutorial

One of the things that I have mentioned before is that you need to have a programmer on your team if you would like to build a non-trivial Dialogflow bot. At the same time, all Dialogflow bot makers would still benefit from understanding the basics of webhooks. This tutorial will be helpful if you are technical, but not a programmer. I will explain just enough about Dialogflow webhooks to make you dangerous. 🙂 If you are a programmer, this guide will still be helpful if you are new to Dialogflow. Hello World Let us start with a simple Hello World program. First, sign up for a free account at Repl.it. You can use your Google account to sign in. Create…

DialogFlow | Training

Dialogflow training

In the video below, I describe how Dialogflow training works. Autogenerated YouTube transcript [00:00] All right so in this lesson we are going to learn about how dialog flow training works now you might have heard a lot of people say. And even i have mentioned this on my website at different points i say that dialogflow is very interesting and useful because it can get smarter over time. So what exactly do we mean by the statement the dialogflow bot gets smarter over time? And when you talk about this people usually [00:30] you know they refer to it as though it were a black box.I think that it ‘s less of a black box than most people realize….

Bot Frameworks | DialogFlow

Dialogflow vs Lex vs LUIS vs Watson vs Chatfuel

I get this question a lot. “How does Watson compare to Dialogflow?” “What do you think of LUIS?” So I am going to discuss my opinions in this article. Disclaimers The first disclaimer is that I am clearly biased. I actually work with clients to help them out in their Dialogflow projects. At the same time, I am hoping this post starts a discussion amongst people and helps people do some homework before selecting the appropriate framework. The second disclaimer is that I haven’t had time to actually work on bots using the other frameworks, and used my knowledge of Dialogflow to consider what I feel are the important features. Then I watched a bunch of online tutorials to check…

DialogFlow | Website Bots

Convert your WordPress website into a Dialogflow FAQ chatbot

I have created a tool which allows you to turn your WordPress website into a Dialogflow FAQ chatbot for your website within a few minutes. It is based on the Dialogflow Messenger integration. You can interact with the live bot (created by using this tool) here. For now, the tool is free. At some point in the future, I will probably make this a paid tool. So if you are interested, you should check it out soon. Learn more

Conversation Design | DialogFlow

When NOT to use follow up intents in DialogFlow

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…

Context | DialogFlow

Dialogflow Context Lifespan

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….

Autogenerated Bots | DialogFlow

Reader Question: Creating Dialogflow agents in web UI vs using code

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…

DialogFlow | Website Bots

Dialogflow Messenger tutorial

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…

DialogFlow | Training

Do I need to hire a developer to build MY chatbot idea?

I recently got an email from a course student: Let me describe my background first. I am an engineer, but not in computer field, so I consider myself technical, but not programmer. With many reasons I choose to change my working field, and I have tried to learn about IT and programming and end up with building a chatbot. Before I took your courses, I enrolled in Javascript + NodeJS courses, then Dialogflow course in Udemy which teaches using Dialogflow with Facebook Messenger by custom integration (REST API approach). As a programming beginner, it was very painful and costed a lot of time. Even after I completed that course I still had no confidence I could build a real thing….