Google Dialogbox
Google Dialogbox
1. Go to https://dialogflow.cloud.google.com/
2. Login with a Gmail account when prompted.
Intents is use by the chatbot to understand what the clients or users want. It’s inside the intents
that we should provide to the chatbot the examples of phrases that the clients may ask and some
responses that the chatbot should use to answer to the clients.
Note: When we create a new agent, it comes with two defaults intents named Default Fallback
Dialogflow provides basic presets like a Default Welcome Intent and a Default Fallback Intent.
This is just telling the bot what to do when welcoming someone or when the bot doesn’t know
Expressions that a user might say to our BurgerBot. Note that all of these convey the same
message, and are therefore categorized under one Intent: ‘Default Welcome Intent’.
You can type your own expressions in all the ways a user might start the conversation .
In the top right section you can test how the Default Welcome performs. Type a
conversation starter, like Hey or Hi or Hello.
2.1 Creating a custom response under Default Welcome
Scroll down to the ‘Responses’ section. Here you can see the different responses that we
created .
We are going to create a special welcoming response that suits our case
Add this text below the existing responses. We can simply delete the other generic responses
since we don’t need them anymore. To delete, simply press the ‘trashcan’ button to the right of
every response.
But our response is not complete yet. Let’s finish it by adding a second line. To add a new line,
Never forget to click the ‘Save’ button at the top. Your changes will not take effect if you have
not selected ‘Save’. Always look for these icons that give you the green signal to go ahead:
Let’s develop our BurgerBot to assist our users with some common queries:
We’ll create Intents for each of these question-types, then add it to the appropriate Expressions
& Responses.
To create a new Intent, simply click the ‘+’ next to the ‘Intents’ button in the left menu.
Step 4: Create Entities ,Actions & Parameters
1. Click the ‘+’ next to the ‘Entities’ button in the left menu.
1. Create a New Intent and Name the new Intent ‘Placing Orders’ & Scroll down to add
parameters first
3 . Enter the ‘Entity’ that you created, starting with the ‘@’ symbol and Enter
corresponding ‘Value’, starting with the ‘$’ sign Check the ‘Required’ box to enable
‘Prompts’
4. Add prompt messages like shown below
Step 5: Adding Expressions
3. Manually annotate (if required) by right clicking the phrases and assigning the
entities
Step 5.1 : Adding the Response
Step 6 : Integration
Let’s get back to the Dialogflow framework. It is important to keep training the chatbot to
improve its accuracy, fix errors and accommodate fallbacks. Remember that this is a
smart bot; it uses machine learning to improve itself. It constantly learns based on it’s
4. Study the session. If an Intent has been mismatched, then right click and
correct it.
5. Double check before approving. Incorrect approving will only teach the bot to
6. Check this example where our BurgerBot misread the Intent when the
For example –
To tackle such questions, create a response in the Default Fallback Intent to adjust
expressions from users asking about new things, you can collate them to continue
adding Intents.
Step 7.3: Building new skills