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.

  1. Create a new skill called Movie Match
  2. Choose Custom model to add to your skill
  3. Type the invocation name ‘movie match’
  4. Create a new slot type called MOVIE_GENRE
  5. Create these values for the MOVIE_GENRE slot type — action, comedy, horror, and drama.
  6. 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.
  7. Do the process described in step 6 for comedy, horror, and drama slot values as well.
  8. Create a new intent called FindMovieByGenreIntent
  9. Add the sample utterance, find me a {genre} movie.
  10. In the section titled “Intent Slots” at the bottom of the page, choose the Slot Type MOVIE_GENRE for the genre slot.
  11. 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.


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.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?