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?
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.
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?”
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.
“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.”
For a slot that accepts a free text you can use the Slot-type: AMAZON.SearchQuery
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With