Please enable JavaScript.
Coggle requires JavaScript to display documents.
Creating your chatbot - Coggle Diagram
Creating your chatbot
Creating the Agent
-
Steps:
-
If you're logging in Dialogflow for the first time, you should see a blue "CREATE AGENT" button in the middle. Alternatively, you can click on "+ Create Agent" near the top left.
We will give our agent a name - CarreyTheCarAgent. Here, you can give it any name you want, of course, so long it is easily understandable. When you have more agents in future, you want to be sure of the purpose of each agent.
Ensure Carrey understands English conversation, and she is in the correct timezone of GMT+8.
-
-
Setting up intents
We will begin this section by examining the "Default Welcome Intent" and "Default Fallback Intent", before going on to create the intents for ABC Automotive Workshop.
Steps:
- Click on "Default Welcome Intent"
The "Default Welcome Intent" and "Default Fallback Intent" are already there. Let's click on "Default Welcome Intent" and see what it says!
- Training Phrases (under Default Welcome Intent)
-
Scroll down and you will see a list of Training Phrases. These are what the user might type to the chatbot. For example, the user could say "heya" or "greetings" etc.
Remember, training phrases are what the customer might type to the chatbot.
Further down the "Default Welcome Intent" page, you will find there is a section for you to define parameters (and entities). We will discuss this later.
Scroll on down and you will see the "Responses" section. Based on what the end-user says, the agent will match to see if it is similar to the Training Phrases above, and if so, it's a match and the agent will reply any one of the text response.
You can also add a response variant -- give it a try. Type "Hello, I am Carrey. How can I help you?" into the text response variant.
Click "SAVE" at the top of the page. Your agent will begin to train itself, and the setting icon at the top left will be spinning. This will take about 10 minutes, so grab a coffee!
-
- Click "Save" and go back to "Intents"
Each time you add training phrases or responses, remember to click "SAVE" to apply all changes you made to the "Default Welcome Intent".
Now, click on "Intents" on the left panel to go back to the list of intent. Review "Default Fallback Intent", which is what happens when your chatbot cannot understand your user. Add in more Response Variants if needed.
We will build our chatbot such that the agent can handle different intentions of customers. To do so, click on "Intents" on the left panel, then click on "CREATE INTENT".
- Create Intent - "Types of Service"
For this intent, we also need to think of different ways which customer will ask ABC Automotive Workshop about the types of services it provides. Add the following to training phrases, and think of even more ways customers might say this.
Create more intents as outlined in this document(opens in a new tab). Be sure to input the respective training phrases and responses for each intent.
When complete, your list of intents should look like the image above.
-
-
Follow-up Intents
Steps:
- Add Follow-up Intent for "Servicing"
Mouseover the "Servicing" intent, and click on "Add follow-up intent" > custom
- Configure the Follow-up Intent
-
-
-
Response: For cars, it is a flat $300 for servicing. All checks and necessary parts replacement are included in this price.
-
Now, try to type "i wanna do servicing" in the Test Console, and when prompted for the vehicle type, type "car" into the Test Console.
- Create Another Follow-up Intent under "Servicing" Intent
Create another follow-up intent under "Servicing" using the instructions below, and when done, your list of intents should look like the above.
Mouseover the "Servicing" intent again, and click on "Add follow-up intent" > custom. For this follow-up intent, configure
-