Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alexa - How to accept free text as input / slot. Is there any way apart from using a custom slot and providing a huge list?

How to accept free text as input / slot? Is there any way apart from using a custom slot and providing a huge list? Since Literal slot types are deprecated, how to provide a free text/string input to alexa?

like image 364
Tushar Joshi Avatar asked Feb 10 '17 05:02

Tushar Joshi


People also ask

How do I make a custom Alexa slot?

To add a new custom slot typeFrom the left-hand navigation, click Add next to Slot Types. Select the Create custom slot type option. Enter a name for the slot type and click Create custom slot type. Enter each value and click the plus or press Enter.

What is an utterance in Alexa?

Utterance. Utterances are the specific phrases that people will use when making a request to Alexa. These can be hugely varied — just think of the number of ways that people can ask for the time; “What time is it?”

How do you use Alexa skill slots?

To assign a slot type to a slotOpen the Alexa developer console, and then sign in. On the Skills tab, in the SKILL NAME column, click the name of your custom skill. From the left-hand sidebar, click Custom > Interaction Model > Intents. Click an intent to open the detail page for the intent.

What is intent slot annotation?

“Intent” describes the action that the skill is being asked to perform, such as PlayTune or ActivateAppliance. And “slot” describes the entities and classes of entities on which the action is to operate, such as “song,” “'Thriller,'” and “Michael Jackson” in the command “Play 'Thriller' by Michael Jackson.”


2 Answers

For a slot that accepts a free text you can use the Slot-type: AMAZON.SearchQuery

like image 110
Vas Giatilis Avatar answered Nov 13 '22 22:11

Vas Giatilis


No, just custom slots or the literal type. You're question is addressed in this Amazon blog post:

Why a Custom Slot is the Literal Solution https://developer.amazon.com/blogs/post/Tx3IHSFQSUF3RQP/why-a-custom-slot-is-the-literal-solution

But note the recent update "Based on developer feedback we will not remove the LITERAL slot type and you can continue to submit skills that include its functionality."

But the literal type was never supported outside EN-US (US customers) and I imagine that will remain the case which limits its usefulness.

like image 23
Tom Avatar answered Nov 13 '22 22:11

Tom