Hello guys, welcome to the sixth session of create custom ALEKS escape using AWS lambda function to good for beginners. In this session we will see what is not and how to use it. A slot is an argument to an intended use an exam more information about each slot map with slot type. In simple terms, we can say that the slot is variable within a trance. And slot type is just like a data type. For example, when the user says I want to order pizza, or I want to order pizza, here 10 pizza or pasta is a slot.
In real one usage, the user may order any other products such as a burger. Alex's skill has some predefined slot types available. We can also create our own custom slot type to let me switch to the browser. For this. I'm going to create new intent within a message Name display greetings. In this intent the user will specify name and we will display greeting message with person.
For example, here user may say I am Elaine or My name is Millie. Here the formula is a slot, which can be verified by users request. To make it slot we need to double click on this one. If you have already created any slots, then it will be missed out here. We don't have any existing slots so we need to create a new one with named person now, by clicking the Add button. You can see that it was added to intense lat tendon as well as in a transit it was placed with the name of this node and enclosed with curly braces.
That is select name again. This time we have a slot so selected. From here we can change the order of slots. If you have multiple slots in intent from this drop down, you can select slot time, because of this slot will represent the name of the person. So, I'm going to select a person as a slot. By clicking Edit dialog button we can add dialogues for reproved or confirmation.
If this note is required, then enable it and write text that will be used when the user does not provide slot value that is use please say what is your name? And for the reply this user may see and personally. We can also add confirmation from if we want to confirm user before proceeding. Here I am writing your name is personally right. No thanks for making these we must need to enable dialogues for now. I'm going to remove that Here we have added slot within utterances and select building slot type for it.
Let us save it now I'm going to create custom slot type. Click on slot types. Here is a table contains a list of all slots that your skill is using. Click on Add to add building or custom slot a built in slot types are classified into different categories. First is list and another is other. Amazon provides many lists types laws, such as actor airlines, animal book, colors, city festivals, movies, sports, games, or many more.
Along with those It also provides the duration literal number for numbering time. If you want to use any from these, you just need to click on Add button. If you're going to create your own custom list, which does not provide by Amazon, then we need to use a custom slot. I'm going to create a new slot with the name programming languages. Here we need to add possible values for this slot. I'm going to add JavaScript, PHP C sharp and Python.
We can also add ID for those value to identify. Let us add numeric value for those all items. So delete this value, click on Delete button. We can also add synonyms for these for example, for Python user may say, Fine, for C sharp user may say C sharp or dotnet. Let us save the model. Now I'm going to create a new intent for offering programming language that user likes.
Click on Add intent button. With name coded language here the user may say I like language name or I love language name or my favorite languages language learning type of this naughties programming language and builds the model. Now, let us see what we are learning this session. intent provides information required by a skill within an utterance. There are two kind of slot a first is building Amazon provide various types and we can also create custom list type to in next session we will see required request and response format to create lambda function. Thanks for watching this video.
If you have any doubts, please feel free to contact me. Have a nice day.