Home / DialogFlow ES / How to create a Chatfuel style decision tree chatbot in Dialogflow
DialogFlow ES

How to create a Chatfuel style decision tree chatbot in Dialogflow

First published: 2017 | Last updated: May 2022

One of the nice things about tools like Chatfuel and ManyChat is their visual interface for creating decision tree chatbots.

What are decision tree chatbots?

These go by many names – conditional logic chatbots, click-bots, scripted bots (which I like the best).

The important thing is that the entire conversation is pre-scripted, there isn’t any Natural Language Understanding or AI of any sort, and people chat with your bot by simply choosing (clicking on) one of the options presented as buttons.

You can create similar chatbots using Dialogflow, and I will explain how in this article.

In this article, I will explain how to create a Decision Tree chatbot using Dialogflow ES.

A decision tree chatbot, as the name suggests, is a “scripted” bot which will ask the user to select between two or more options and move the conversation based on the user’s choice.

Dichotomous Key Bot

We will be building a Dichotomous Key bot, which will ask the user to answer Yes/No questions and based on the answer, will identify a given vertebrate as either a mammal, or a bird, or a reptile, or a fish or an amphibian.

This is a tree structure so technically, it CAN be built using follow up intents. However, because the answers are of the Yes/No type, this could lead to conflicts between follow up intents.

Here is the Mindomo flowchart for this decision tree

So we just go through this flowchart and build out our intents to reflect it.

Add an intent called identify.vertebrate

Add an intent called hasfur.YES

Add a corresponding intent for hasfur.NO

Keep following this pattern for all the nodes in the flowchart

Finally we come to hasgills.YES

And hasgills.NO

Here is a demo of the bot in action

<— End of article —>

This website contains affiliate links. See the disclosure page for more details. 
"The magic key I needed as a non-programmer"

The custom payload generator was the magic key I needed (as a non-programmer) to build a good demo with rich responses in DialogFlow Messenger. I've only used it for 30 minutes and am thrilled. I've spent hours trying to figure out some of the intricacies of DialogFlow on my own. Over and over, I kept coming back to Aravind's tutorials available on-line. I trust the other functionalities I learn to use in the app will save me additional time and heartburn.

- Kathleen R
Cofounder, gathrHealth
"Much clearer than the official documentation to be honest"

Thanks a lot for the advice (of buying and following your videos)! They helped a lot indeed. Everything is very clear when you explain, much clearer than the official documentation to be honest 🙂

Neuraz T
Review for Learn Dialogflow CX
"I will strongly recommend this course because even I can learn how to design chatbot (no programming background)"

I think Aravind really did a great job to introduce dialogflow to people like me, without programming background. He organizes his course in very clear manner since I have been a college professor for 20 years. It is very easy for me to recognize how great Aravind’s course is! Very use-friend and very easy to follow. He doesn’t have any strong accent when he gives the lectures. It is so easy for me to understand. Really appreciate it.

Yes, I will strongly recommend this course because even I can learn how to design chatbot (no programming background) after studying Avarind’s course, you definitely can!

Ann Cai
Review for Learn Dialogflow ES

Similar Posts

  • Mr. Mohanoor, I want to thank you for your investment in the DialogFlow community! Your site (and your wisdom shown in the content) is helping many. I am a regular to your site. If I have a question, I will check your site first, then go to dialogflow docs. Thanks!