Collect Slots Turn-by-Turn

Wrap-Up

You learned the following things in Module 4:

  • How to add both custom and built-in intents to your skill
  • How to create handlers for both
  • How to define slots and make sure they get filled.
  • How to receive the slot values in your code so you can do something with them

In Module 5, you'll build out a full-scale quiz by adding memory to the skill.

Code

If your skill isn't working or you're getting some kind of syntax error, download the code sample in Node.js or Python from the following links. Then, go to the Code tab in the Alexa developer console, and copy and paste the code into the index.js file or the lambda_function.py file. Make sure to save and deploy the code before you test it.

Then, in the Alexa developer console, click the Code tab, and copy and paste the code into the index.js or lambda_function.py file. Be sure to save and deploy the code before testing it.

Self test

Now that you've finished, try a self-test to see how much you remember. Click to expand to see the answer.


1: What does APL stand for?

  • A. Alexa Presentation Language
  • B. Advanced Presentation Language
  • C. Abstract Proposal Level
Click here to see the answer

2: What is a slot?

  • A. One complete exchange between Alexa and the customer.
  • B. A variable you define in an intent to get a value passed to the data access layer.
  • C. The time allotted for the user to reply to Alexa.
Click here to see the answer

3: If you have multiple slots in an intent and you want to make sure Alexa automatically collects them all, what technique do you enable?

  • A. intent completion
  • B. slot filling
  • C. auto-delegation
Click here to see the answer

Continue to Module 5 to learn how to add memory to your skill.


Was this page helpful?