AlexaDev Tuesday: Alexa Literal Slot Deprecation

Last week Amazon announced the Literal slot type in the Alexa interaction model is being deprecated.

 

Programmer

 

On 11/25/16, Amazon Senior Alexa Evangelist Michael Palermo shared this:

We’ve been listening to your feedback for Alexa feature requests and questions. As such, this post provides details around the deprecation of literal slots. By the time you finish reading this post, you will see it doesn’t matter that the LITERAL slot type is going away because it already has a better replacement: custom slot types.

Before we get into the details, it’s clear that the community needs more time to experiment with custom slot types and to make the transition. So, we’re moving the LITERAL deprecation date for US skills to Feb 6th 2017. From the beginning, custom slot types (and not LITERAL) have been the solution in the UK or Germany.

Slots let you to build interaction models and pass phrases from the user to your skill. Amazon provides a set of built-in slot types that cover common things like numbers, names, and dates. Custom slot types go beyond these to enable support for the scenarios that you’ve chosen to build. They are a superset of the LITERAL slot type that we’re deprecating.


Click here to read Palermo’s full post, which goes on to describe the three most typical use cases for the Literal slot type and how a Custom slot type can be used to the same or even better effect. Sample code is included.

 

Going forward in Alexa development, wherever you’d use a Literal slot in the past you should now go with the Custom slot type.

 

* * *

The LIFX Color 1000 BR30 Wi-Fi Smart LED Light Bulb, Adjustable, Multicolor, Dimmable, No Hub Required, Works with Alexa (UK visitors click here) is an inexpensive, easy way to dip a toe into the smart home pool without investing in a costly, complex hub-based system. All you need is one LIFX bulb and one Alexa-enabled device, and you’re ready to start controlling lighting with your voice.

Advertisements make it possible for Love My Echo to bring you great content for free, so thanks for your support.

* * *

 

Tags: , , , , ,

Top