Creating Entities Of agent And mapping to intents
Entities are two types,i.e system based or inbuilt and user-defined. Inbuilt entities are sys.date, sys.time, sys.number, etc. We have to map entities to our intent so that chatbot understands what kind of data it is. Just like a programming language, in C we define the data type of variable similarly we can term entities as data type and variable as intents
- Click on the Plus Symbol(“+”) next to Entities in the left menu.
- Add the name size into the “Mobile_type” text field.
- Make sure the “Define Synonyms” checkbox is checked.
- Enter the following values in the text boxes that say “Click here to edit entry.” You can use the tab button as you enter the values so they are used as synonyms too, and hit Enter to get to the next row.
- Samsung
- Nokia
- Redmi
- vivo
- Realme
- Now click save and go to intents section
- Now Map the entities to intents for example:given intents is “I want to buy Redmi 7 at 8 pm on 29 January ” in this 7,8pm,29 january are inbuilt entities. 7 will map to Sys.Number, 8pm will map to sys.time and 29 january will map to sys.date. To map this u have to select Corresponding data of entity and click on its match entity.Here Redmi belong to entity that we have created that is mobile_type so, select Redmi and click on Mobile_type from dialog box that appear after selecting Redmi.
- Entity Is now mapped to intents ,Now test your result From simulator
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.