Advanced Features
This lesson offers an overview of advanced features that you can leverage for your Alexa skills.
We'll cover the following...
This section will give us an overview of the newest features and capabilities of Alexa and the different APIs of Alexa that can be leveraged for new functionalities to further enhance your Alexa skill.
Advanced features
There are a couple of essential features worth exploring to make a Skill more interactive and useful. We will briefly cover these. Feel free to explore these in detail as you progress towards building more advanced Skills.
Persistent attributes
Remember session attributes? Session attributes help us save and use helpful information within the session. What if we want to store and retrieve information across user sessions, though? This is where persistent attributes can help.
Persistent attributes are key-value pairs that can persist in a database (DynamoDB if you use ASK SDK). We can read/write this information as required by our Skill. For example, we could store a user’s high scores in Voice Clues as a persistent attribute and let them know their highest score when the game ends along with their score for the current session.
Dialog management
Dialog management is a feature of the Alexa Skills Kit that allows us to handle multi-turn conversations without writing a lot of code on the back-end. This reduces the effort required to make conversations flow smoothly between Alexa and the users of our Skill. With dialog management, we can delegate the dialog to Alexa when we have slots in a multi-turn conversation to collect. This causes Alexa to prompt the user for required slots. It can also validate whether the input is correct.
Alexa Skill APIs
Settings API
The Alexa Settings API allows developers to retrieve customer preferences set in the Alexa app for timezone, distance measurement, and temperature measurements. As the Skill’s developer, you can access these without any extra added permissions from the user. However, you need permissions for the other APIs we’re going to discuss next.
Right now, testing of the Settings API is limited in the Alexa Test Simulator, so try it on a real Alexa-enabled device.
Device Address API
The Device Address API retrieves the address data associated with the customer’s Alexa device. This is the address the user entered manually in the Alexa app and ...