As always, we will be making use of the Alexa Skills Kit (ASK) Console to configure the Ambience Manager Skill:
- Navigate to https://developer.amazon.com/alexa, and click on the Sign In button located in the top-right corner of the screen:
- After signing in, click on the Alexa Skills Kit menu item on the top-left, and from the menu, select Get Started | Alexa Skills Kit:
- On the screen that appears next, click on the Start a Skill button, located in the center of the screen:
- This should land you on the ASK Console:
Click on the Create Skill button located at the bottom of the screen.
- The next screen is the Create a new skill screen, which will require a SkillName to proceed further:
Please name the skill Ambience Manager and click on the Next button.
- The next page will display the type of prebuilt interaction models that can be added to the skill:
Click on the Select button under the Custom model to select it, and click on the Create skill button in the top-right corner of the screen.
- After skill creation, we will need to configure its Interaction Model via the dashboard:
We will configure the Interaction Model by completing the Skill builder checklist.
- Select the first option, Invocation Name, under the Skill builder checklist to land on the following screen:
Enter the Skill Invocation Name as ambience manager and click on the Save Model button in the top-left corner.
- Click on the Build tab item to end up on the Skill builder checklist, which should have the Invocation Name option marked and selected since we just completed setting it up:
Now, as our Invocation Name is set up, please select the Intents, Samples, and Slots item from the checklist to land on the Add Intent screen:
Name the intent OneShotFetchTemperatureIntent and click on the Create custom intent button.
- Clicking on the Create custom intent button should land you on the Sample Utterances page for the OneShotFetchTemperatureIntent intent:
Did you notice how we called our intent as a One Shot... intent. The One-Shot intents are different than regular intents due to the fact that One-Shot intents launch your skill and ask it to do some work (fetch some data, and so on). Please note that the naming convention of starting the name of the intent with OneShot... is not mandatory and you can name it what you like, however it is a good practice that the intent name reflects its purpose. One-Shot intents are simply a different way of launching a skill. You will also notice this difference when we write our Lambda code.
We can now add a few utterances for our model, as shown in the following screenshot:
Please click on the Save Model button after configuring the utterances.
- Once you have finished setting up the utterances, select the Build tab (as seen in Figure 6.28) to land on the dashboard:
Finally, select the Build Model option to build the Interaction Model. The process should take a few minutes. The Build Model button on the dashboard should turn green after the build finishes successfully.
- After the Interaction Model has finished building, we now need to supply it with a Lambda endpoint to connect to. We will postpone this step for a little bit while we code our Lambda. But before we start configuring the Lambda, click on the Endpoint button on the dashboard shown in the preceding screenshot to navigate to the Endpoint screen:
Select AWS Lambda ARN from the given options, and copy the Skill ID from this page and save it somewhere. We will need it shortly.