Creating Chatbots With Google Dialogflow
Creating Chatbots With Google Dialogflow
WITH GOOGLE
DIALOGFLOW
1. Chatbot Fundamentals
1.1 What is a chatbot?
A chatbot is a software application that mimics conversation with a human
in natural languages through various platforms like messaging, websites,
mobiles etc. The chatbot responds by identifying the intent of the
conversation and then responding accordingly.
2. Google Dialogflow
2.1 Introduction:
Dialogflow is a natural language understanding platform that makes it easy
to design and integrate a conversational user interface into your mobile app,
web application, device, bot, interactive voice response system, and so on.
Using Dialogflow, you can provide new and engaging ways for users to
interact with your product.
c) Select your google account and once you are redirected, click on ‘Go To
Console’ on the upper right corner of the screen.
Create Agents
Create Intents
Create entities
To build a chatbot which can answer all the queries of a customer and
whenever a customer does an enquiry, it automatically send the customer
the course details. Also an email is sent to the support team to assist the
customer futher with their queries.
3.2 Agent:
b) Provide the name of the agent and click on the SAVE button to create
the Agent.
c) After saving, the agent is shown in the left hand side of your console.
You can click the gear icon (highilighted in orange) to edit the agent
settings.
3.3 Intent:
The following diagram shows the basic flow for intent matching and
responding to the end-user:
3.3.1 Creating an Intent:
3.4 Fulfillment:
a) Sending an email to the customer with the syllabus and all the course
details based on the course selected.
To see the request being sent to the webhook call, click the ‘Diagnostic
info’ button.
"responseId": "f1f8df5c-0fdf-43cc-aca9-a41bfd70acfa-ab1309b0",
"queryResult": {
"queryText": "1234567890",
"parameters": {
"cust_name": "vss",
"cust_email": "",
"course_name": "DataScienceMasters",
"cust_contact": "1234567890"
},
"allRequiredParamsPresent": true,
"fulfillmentMessages": [
"text": {
"text": [
"We have sent the course syllabus and other relevant details to
you via email. An email has been sent to the Support Team with your
contact information, you'll be contacted soon. Do you have further
queries?"
],
"intent": {
"name": "projects/faq-goilum/agent/intents/64b7ea04-23a9-4a5a-
bcc5-08e971134d9c",
"displayName": "course_selection"
},
"intentDetectionConfidence": 1,
"diagnosticInfo": {
"webhook_latency_ms": 4731
},
"languageCode": "en"
},
"webhookStatus": {
The Request above gives you the idea of how to parse the requests in
your webhook service.
d) Select FAQ and text/CSV and the upload the FAQ CSV file
created and then click Create.
You can now test the agent from the ‘test it now’ section.
3.7 Integration:
Dialogflow integrates with many popular conversation platforms like
Google Assistant, Slack, and Facebook Messenger. If you want to
build an agent for one of these platforms, you should use one of the
many integrations options. Direct end-user interactions are handled
for you, so you can focus on building your agent.
a) Telegram account.
b) Click on the Telegram tile
d) Click the Start button
Now you can search your bot in telegram and you can chat with it.