Hello guys, welcome to the fifth session of the ba da da tutorials for beginners. In this lesson we will learn about the entities and how to use it in the our intent and it is used to extract the parameter values from the users input. If we want to retrieve the data from the user's request, we must need to create the corresponding entity. There are three types of entities first is a system entity which are defined by the APA Dotty itself, which include the language date city country capitals, zip code, color, email person, number you are and many more. Next is a developer which is created by the developer that we will see in this session. And next is user which is created by the each end user user request.
User Entity Data parcel ID is a send data which include the SSN ID. Let's switch to the browser and use the system entity first. For this, I'm going to create the new intent, name system and PT demo a which I will take the Edit from the user for making something like real reminder for this user may say remind me on today. After pressing the enter it will automatically highlight the today and add the entity of type date on the air today. EPA Dotty is smart enough to identify the sensor data from the power user says light add the another like set reminder On tomorrow it will automatically highlight the on end tomorrow however you want to use only tomorrow as entity. For this we need to select the text and select the entity type from this drop down.
Now it will highlight the only tomorrow and bind the tomorrow with the data type that use the inform me on any date that you enter. Here it is not highlighted as an entity. To make it entity we just need to select the date from it. And from this drop down we need to search and select here. Let's select it and save it and let the street with the today. What is right the remind me of Today here we go the parameter name date with the value of the today's date.
Now I'm going to use the specific date. father tried to remind me on remind me on 20 August hit the enter, you can see that it you the 28th of 2018 because the 20 august of 2017 is gone, it is a smart enough to identify it and you the dog the year next year, here we are using the system entity, which are defined by the da da da. Now we will see the entities defined by the developer. For this we need to open the entities and create a new one. First of all, we need to specify the name for the identity. I'm going to use the custom person has a name, in which we will retrieve the air in person name from the user.
Click here and add the reference value for the entity. I am going to add the Shawn as reference value. Its synonym can be its own itself. choni as whereas, enjoy and save it and create a new intent for these with the name of the custom person demo in which user will provide the name let's use the Add Custom person. JOHN after hitting enter you See that the Johnny's automatically highlighted as the entity of the type custom person. Let's save it.
And let's send add custom person George. Here we got the values shown in the parameter. And now I'm going to write custom person a name. Here we are not getting the any value in the parameter. Because within the entity we specify that the value is a john, Johnny or joy. Then the our parameter values would be a john.
So if I'm going to write add, custom, person, joy, still, it written the john. Let's say it, record that In simple atom, here we specify the least op term in which we will receive this value for the time it will return the null. Let's see what we are learning in this lesson. We see what is the entity and use the system entity. Then create the custom entity and use it. Thanks for watching, have a nice day.
If you have any doubt feel free to contact me