codingstreets
Search
Close this search box.

Google Dialogflow Chatbot Tutorial for Beginner

Google-Dialogflow-Chatbot-Tutorial-for-Beginner
Credit: Canava

Overview

Google Dialogflow Chatbot is the AI+ML designed Chatbot that can train the Chatbot and return the output according to the user’s requirements. It is a simple, easy, and end-to-end AI + ML trained Chatbot for beginners.

What’s Next!

This Google Dialogflow Chatbot tutorial will explore the term how to get started with the default Google Dialogflow Chatbot i,e., how to understand the default Dialogflow’s intents. Moving around the Dialogflow Chatbot, further explain what Google Dialogflow is, moving around how to create a Chatbot with Google Dialogflow like how Google Dialogflow works, how to access it, what are the basic functions and so on.

Table of Contents

How to create a Chatbot with Dialogflow

Step 1: To visit the Google Dialogflow website, go to https://dialogflow.cloud.google.com/

Step 2: Sign in with your Google Account.

Step 3: Click on the button “CREATE AGENT”, fill details and your first agent is ready.

Step 4: Click on the button “CREATE INTENT” and write the Intent Name as per your convenience. But write it simply to don’t get confused!

Step 5: In the section of “Training Phrases” write the different examples of your query and question, you want to ask from the Chatbot.

Step 6: In the section of “Responses”, write a few simple natural responses a Chatbot can return or respond to your intents/questions.

That’s it!, Congratulations! You’ve built your very first AI+ML Chatbot with the help of Google Dialogflow. 

But before following up the above steps to create your own Chatbot, let’s first go with the default intents defined by the Dialogflow, to understand how exactly Chatbot works.

Start with default Intents

  • Here the phrase “Default Welcome Intent”, is the intent name.
     
  • Under this, you will see an option for “Training Phrases”, which receives the user’s questions as input that a user wants to ask from Chatbot.

  • Here, you will see the text field “Add user expression”, in this field, users write similar examples of their questions, and what they want to ask!  As many as questions you add, that many “Training Phrases” will be able to train the Chatbot.

  • Now, in the option of “Responses”, you will see a text field, “Enter a text response variant”, in this field, write the similar responses you want to get from the Chatbot in return for your intents or questions.

Now, let’s get back to the “Training Phrases” of the “Default Welcome Intent”.

  • In this field, you will some pre-defined “user expressions” that have already been added, which are used to initiate the chat with a Chatbot.

  • Down below, in the “Response” field, you will see some pre-defined “text response variants” that have already been added, which are used to respond to a user in exchange for questions asked by Chatbot.

Now, in the right hand, you will see a text field option of “Try it now” with a mike icon too. This is the field where you as a user can write your question and pass it as input to ask from the Chatbot.

  • Let’s say you write “hi there” in one of the responses from the “Training Phrases” in the field of “Try it now”.

  • Now the Chatbot will find which “intent” matches the user’s query, and then from the “Responses” tab of that “Intent” a default “text response variant” will be selected for the Chatbot to respond or return to the user.

This is the simple procedure to train the Chatbot to return your query’s response.

The “Training Phrases” are used as input to the Chatbot to train what a user can ask, whereas the “Responses” are used as the answer to the user’s input, a Chatbot will respond.

Now let’s take a look at the next intent i.e., “Default Fallback Intent

  • A Chatbot will return the response from the “Default Fallback Intent” if only the user’s query does not match with any of the intents.

  • You ask the Chatbot “I need Help!!!!!”, now if this exact query does not match any of the Intents, then by default the Chatbot will return a response from “Default Fallback Intent”.

  • The “Default Fallback Intent” is created for the case if the user’s query does not match with any of the intents, then by default, the Chatbot will return a response from this intent.
  •  

Conclusion

For beginners, the Google Dialogflow Chatbot is the best Artificial intelligence + Machine Learning Chatbot enhanced by the Natural Language Understanding (NLU). It not only trains the user how to learn to use the Chatbot but also teaches users to build a high-profile Chatbot to integrate with their business. With its simple functions and features, it is much more capable of understanding the user’s query and responding to it after training its models. Overall, Google Dialogflow is the best Chatbot to initiate as a beginner in the Chatbot field.

Recent Articles