codingstreets
Search
Close this search box.

How to create a Chatbot with Google Dialogflow?

How-to-create-a-Chatbot-with-Google-Dialogflow
Credit: Canva

Overview

Google Dialogflow 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 Google Dialogflow. Start from 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.

This article is divided into two parts: 

The first part contains –

We will start with creating an AI + ML designed Chatbot by Google Dialogflow, in which we will have a conversion between the human and AI Chatbot on the topic of “Hosting service – Login Issues”.

In this conversion, there are two ways the user can solve the login issue, but here the user will go with the 2nd option to solve the issue. In the second part of the article, we will follow up on the 1st option to solve the login issue.

Before getting started, If you’re not familiar with Google Dialogflow Chatbot, you must first take the basic knowledge and for that, you can go with the articles given below.

How To Get Started With Google Dialogflow Chatbot?

Google Dialogflow Chatbot Tutorial For Beginner

Table of Contents

How to create a Chatbot with Google Dialogflow?

I assume that you have the basic knowledge of Google Dialogflow Chatbot, and are done with creating your first agent. Now move ahead and create a couple of intents with users’ queries and the corresponding responses.

1. 1st intent: Default.Welcome.Intent.

Training Phrases: In this intent, the user starts chatting with the Chatbot by messaging like “need help”, “hello”, etc.

Responses: The user fills in some similar responses like:

Hi there! We appreciate you reaching out to our hosting services support. How may I help you today? 

Please choose the option given below: 1. Login Issues 2. Renew Plan.

2. 2nd Intent: login.issues

Training Phrases: In this intent, the user replies to the Chatbot by selecting the option “Login Issues”

Responses: The user fills in some similar responses like:

Please choose the option given below:

  1. Forgot Username 2. Forgot Password

3rd Intent: forgot.password

Training Phrases: In this intent, the user replies to the Chatbot by selecting the option “Forgot Password”

Responses: The user fills in some similar responses like:

I’m sorry you’re experiencing difficulties. Can you verify the email address associated with your account?

Is your email address associated with us [email protected]?

Please confirm, 1. Yes, 2. No

4. 4th Intent: enter.user.email.address

Training Phrases: In this intent, the user replies to the Chatbot by writing “Yes”

Responses: The user fills in some similar responses like:

Write down your complete email address to verify it.

5. 5th Intent: user.email.address.verify

Training Phrases: In this intent, the user replies to the Chatbot by writing the full email address i.e., “[email protected]

Responses: The user fills in some similar responses like:

Thanks for the confirmation of your email address! Please wait a moment while I verify your account information.

6. 6th Intent: password.reset.permission

Training Phrases: In this intent, the user replies to the Chatbot by writing phrases like “ok”, “sure”, “okay”, etc.

Responses: The user fills in some similar responses like:

We’ve confirmed your email address. There seems to be a problem with your password. Would you like me to initiate a reset?

Choose the option below:

  1. Please, do it now 2. Not now

7. 7th Intent: password.reset.email.sent

Training Phrases: In this intent, the user replies to the Chatbot by writing the phrase “Please, do it now”

Responses: The user fills in some similar responses like:

The email address associated with your account has been sent a password reset link. Please check your inbox and follow the instructions to reset your password.

8. 8th Intent: customer.problem.solved

Training Phrases: In this intent, the user replies to the Chatbot by writing phrases like “password is rest, thanks”, “Thank you, I have reset password”, “thanks, password is reset now”, etc.

Responses: The user fills in some similar responses like:

Excellent! Do you need help with anything else today?

Fantastic! Do you have any other questions or needs I can help with?

9. 9th Intent: chatbot.ask

Training Phrases: In this intent, the user replies to the Chatbot by writing phrases like “no, thanks”, “no”, “no, thank you so much”, etc.

Responses: The user fills in some similar responses like:

You’re welcome! If you ever need assistance again, feel free to get in touch. Have a great day!

With this, the conversion ends here.

Conversion in the Human and Chatbot form

Customer: anybody to help me out.


AI-Chatbot: Hello and thank you for getting in touch with our hosting services support. How can I help you today? 

Please choose the option given below: 1. Login Issues 2. Renew Plan.

Customer: Login Issues


AI-Chatbot: Please choose the option given below:

1. Forgot Username 2. Forgot Password

Customer: Forgot Password


AI-Chatbot: I’m sorry you’re experiencing difficulties. Can you verify the email address associated with your account? Is your email address associated with us [email protected]?
Please confirm, 1. Yes, 2. No

Customer: Yes


AI-Chatbot: To confirm your email address, write it out in full.

Customer: [email protected]


AI-Chatbot: Thank you for verifying your email address. We appreciate it! Let me quickly review your account details.

Customer: okay


AI-Chatbot: We’ve confirmed your email address. There seems to be a problem with your password. Would you like me to initiate a reset?
Choose the option below: 1. Please, do it now 2. Not now

Customer: Please, do it now


AI-Chatbot: I’ve sent a password reset link to the email address linked to your account. To reset your password, please check your inbox and follow the instructions provided in the email.

Customer: thank you, password is reset now


AI-Chatbot: Wonderful! Is there any other way I can assist you today?

Customer: no, thanks


AI-Chatbot: You’re welcome! If there’s anything else you need help with later on, don’t hesitate to reach out. Have a fantastic day!

With this, the conversion ends here.

Download Conversion Documentation

The user’s Intents and Chatbot’s Responses can be downloaded from here.

Recent Articles