Creating Intents of Agent
Dialogflow uses intents to categorize a user’s intentions. Intents have Training Phrases, which are examples of what a user might say to your agent.
- Click on to Intents in the left menu and write intent name (for e.g Mobile_order).
- click on Add Training Phrases and enter the following, pressing enter after each entry:
-
- What time shop will open ?
- Do you have samsung phone?
- I want to buy redmi 7 phone on 3 December 2018 at 9 am.
- When shop will close?
- In the Responses section, under Text Responses, enter the following response in the text field:Welcome To Mobile_shop and then click save button
- Now try it out using the simulator on the right by asking the question: I want to buy redmi 8
Notice that even though your query was a little different from the training phrases, Dialogflow still matched the query to the right intent. This due to inbuilt machine learning on it. The machine learning model checks the query against every intent in the agent, gives every intent a score, and the highest-scoring intent is matched. If the highest-scoring intent has a very low score, the fallback intent is matched. - Next Step is to Create Entities.
Create Your own Intents and Entities in Dialogflow Chatbot
Dialogflow is a powerful, natural language understanding engine to process and understand natural language input. In other words, it lets you easily achieve a conversational user experience by handling the natural language understanding for you.