In this exercise, we will walk you through the steps to create a new skill and add synonyms to the values for a MOVIE_GENRE
custom slot type. If you need a refresher on how to create a skill, you should look at Codecademy’s Build Your First Skill course.
The video to the right shows you how to create this slot and add synonyms (steps 5-8) in the Amazon Developer Console.
- Create a new skill called
Movie Match
- Choose Custom model to add to your skill
- Type the invocation name ‘movie match’
- Create a new slot type called
MOVIE_GENRE
- Create these values for the
MOVIE_GENRE
slot type —action
,comedy
,horror
, anddrama
. - Click the “Add synonym” input field for your action slot value, and type each of its synonyms, like
fight
,battle
,combat
,war
etc. Press enter after each. Note: The optional ID field is not necessary. - Do the process described in step 6 for
comedy
,horror
, anddrama
slot values as well. - Create a new intent called
FindMovieByGenreIntent
- Add the sample utterance,
find me a {genre} movie
. - In the section titled “Intent Slots” at the bottom of the page, choose the Slot Type
MOVIE_GENRE
for thegenre
slot. - Save and Build your model.
Important: Wait until the model built before you proceed to the next step. This may take a few minutes.
Congrats! You successfully created the synonyms. In the next exercise, you will learn how to test your skill.
Instructions
Follow the instructions above, and the video (which shows steps 4-6) to add synonyms to your own skill.
You may want to go back to the previous exercise to see the synonyms that you came up with.