Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Latest commit

 

History

History
executable file
·
73 lines (42 loc) · 6.25 KB

1-voice-user-interface.md

File metadata and controls

executable file
·
73 lines (42 loc) · 6.25 KB

Quickly Build A Multi Modal Quiz & Dictionary Alexa Skill

Voice User InterfaceLambda FunctionConnect VUI to CodeTestingCustomizationPublication

Setting up Your Voice User Interface

There are two parts to an Alexa skill. The first part is the Voice User Interface (VUI). This is where we define how we will handle a user's voice input, and which code should be executed when specific commands are uttered. The second part is the actual code logic for our skill, and we will handle that in the next step of this step-by-step guide.

  1. Go to the Amazon Developer Portal. In the top-right corner of the screen, click the "Sign In" button.
    (If you don't already have an account, you will be able to create a new one for free.)

  2. Once you have signed in, click the Alexa button at the top of the screen.

  3. On the Alexa page, select 'Create Skill'.

  4. Fill out a skill name (leave locale to US)

  5. For skill type, select Custom Skill

  6. Set an invocation name for our skill

This is the name that your users will need to say to start your skill. We have provided some common issues developers encounter in the list below, but you should also review the entire Invocation Name Requirements.

    | Invocation Name Requirements | Examples of incorrect invocation names |
    | ---------------------------- | -------------------------------------- |
    | The skill invocation name must not infringe upon the intellectual property rights of an entity or person. | korean air; septa check |
    | Invocation names should be more than one word (unless it is a brand or intellectual property), and must not be a name or place | horoscope; trivia; guide; new york |
    | Two word invocation names are not allowed when one of the words is a definite article, indefinite article, or a preposition | any poet; the bookie; the fool |
    | The invocation name must not contain any of the Alexa skill launch phrases and connecting words.  Launch phrase examples include "launch," "ask," "tell," "load," and "begin."  Connecting word examples include "to," "from," "by," "if," "and," "whether." | trivia game for star wars; better with bacon |
    | The invocation name must not contain the wake words "Alexa," "Amazon," "Echo," or the words "skill" or "app." | hackster initial skill; word skills |
    | The invocation name must be written in each language you choose to support.  For example, the German version of your skill must have an invocation name written in German, while the English (US) version must have an invocation name written in English. | kitchen stories (German skill) |

When you have one, select invocation name on the left menu, and input your invocation name in the provided box.

  1. Enable the Render Template directive for your skill

You should see a bunch of built-in intent types added to your interaction model. This is normal!

  1. Copy the interaction model from this template into your skill.

Select JSON Editor to the left and you should be presented with an input box.

In the textfield provided, replace the existing code with the code provided in the Interaction Model, then click "Save Model" & "Build Model".

  1. Add some more sample utterances for your newly generated intents if you like (selectable on the left). These are the things a user would say to make a specific intent happen.

Don't forget to select Save Model if you add any new ones.

  1. Double check you've got everything by clicking on the Save Model button, and then click on the Build Model button.

Ready to move on? Lets look at how we get our Alexa Skill to respond!

Next: Lambda Function