Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I create custom slot types dynamically in alexa voice service?

I want to create slot type for the response that I am getting from the user because I want to query again using that slot. Could not find any official documentation saying whether this is possible or not.

like image 749
Tejas Tasgaonkar Avatar asked Jun 27 '16 06:06

Tejas Tasgaonkar


People also ask

What is a dynamic entity?

Dynamic Entity: holds values that can change during time.

What is auto delegation in Alexa?

There are two ways to delegate the dialog: Enable auto delegation, either for the entire skill or for specific intents. In this case, Alexa completes all of the dialog steps based on your dialog model. Alexa sends your skill a single IntentRequest when the dialog is complete. Delegate manually with the Dialog.

Does Amazon Echo have an API?

The Alexa Skill Management API (SMAPI) provides RESTful HTTP interfaces for programmatically performing Alexa skill management tasks, such as creating a new skill or updating an interaction model.


1 Answers

I think that, in fact, this is possible. You have to define a custom slot type, as explained here: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/defining-the-voice-interface#custom-slot-types

Now, the custom slot type asks you to provide possible values, which you should do. BUT! It seems that Alexa will still parse slot values correctly even if they are not in the list of possible values that you provided!

This seems to be an undocumented feature and what I am telling you is based on my own observations: My custom slot type is taking on unexpected values

In general, my impression is that the interaction model as a whole should be seen less as a strict set of rules and more as a guideline that is interpreted at the discretion of the Alexa Voice Service.

like image 159
Konstantin Schubert Avatar answered Oct 03 '22 16:10

Konstantin Schubert