O'Reilly logo

Hands-On Chatbot Development with Alexa Skills and Amazon Lex by Sam Williams

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required