Good work so far! Let’s make sure that slot elicitation works before moving on.
Add an endpoint
- You haven’t made a Lambda function for the Video Match skill yet, but don’t worry! Codecademy has provided one for testing. Copy this ARN (Amazon Resource Name).arn:aws:lambda:us-east-1:776991280512:function:codecademyLearnAlexaDialogManagementL1
- In the Developer Console, in the Interaction Model, click on Endpoint in the left sidebar.
- Choose AWS Lambda ARN.
- In the Default Region, paste the ARN you copied.
- Click Save Endpoints.
Your interaction model is now linked to Codecademy’s Lambda function, which will handle the actual video recommendation.
Test slot elicitation
- Go to the Test tab to open the Alexa Simulator.
- Enable testing by clicking the slider.
- You are testing that your Interaction Model elicits the
videoTypeslot when it is not provided by the user. Enter a phrase that does not specify the video type, like:
ask video match to find me a video -- or -- ask video match to give me a recommendation
- Alexa should elicit the video type by saying: “what type of video would you like. you can say movie or tv show”
If Alexa asked for the video type, then your Interaction Model passes the test! It elicited the
videoType slot. Alexa may mention something about a “problem” after that point in the conversation. That’s expected, and will be fixed later in this lesson.
If Alexa did not respond as expected, the test failed…It’s good that we caught the error so early! Go back through the previous exercises to make sure that you followed the steps exactly. If that doesn’t work, make sure that you don’t have any other skills in your Developer Console with the same invocation (“video match”).
Follow along with the steps above and the video to test for slot elicitation of the