Search⌘ K

Hero Trivia: Add Intent and Utterances

Learn how to add custom intents and sample utterances to your Alexa Hero Trivia skill. Explore how to delete default intents, create a GetTriviaIntent, and provide multiple utterances to improve voice recognition. Understand the process of saving and building the interaction model to enable Alexa to correctly interpret user commands in your skill.

Now that we have got the boilerplate code running, it’s time to get started on Hero Trivia.

Adding intents

Let’s head back to the “Build” tab. Click on "Intents.” This will open up the list of intents currently in our Skill.

Intents currently defined in our Skill.
Intents currently defined in our Skill.

First, let’s delete HelloWorldIntent. Hover over to the “Actions” column of HelloWorldIntentand click “Delete.” We’ll remove this intent from the Skill and add a new one specific to our use case.

Delete HelloWorldIntent
Delete HelloWorldIntent

Add a new intent

...