Internal Slots

This is where we need to start making the skill more advanced than last time. We need to store information such as the size, cost, doors, and whether the user wants to have automatic or manual gears. To add a new slot, scroll down to Intent Slots and click on Create a new slot. In here, you can name your slot and then add that to your intent by pressing Enter or clicking the + icon. Do this for size, cost, doors, and gears:

Intent Slots

Before we can store any information in these slots, we need to set their SLOT TYPE. The number of doors is simple as it is just a number, so AMAZON.NUMBER can be chosen as its slot type. For ...

Get Hands-On Chatbot Development with Alexa Skills and Amazon Lex now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.