How to accept the Free form text as input to Amazon Skill Kit?
Asked Answered
S

3

16

I'm required to create a Amazon Skill Kit to open a ticket in our ticketing tool. By looking at the examples for Amazon Skill Kit, I couldn't find a way of accepting the free form text as input. Other option is by creating a custom slot with all probable set of inputs as custom slot inputs.

But in my case, all i have to do is capture the full content of user input to log it somewhere in the ticket which is very unlikely to expect the probable utterances before hand.

Shropshire answered 26/3, 2016 at 18:35 Comment(4)
Possible duplicate of Amazon Alexa: store user's wordsDagostino
Sathish, did you figure this out yet? I am on the same boat and am struggling to wrap my head around this one.Oshea
@Kal and Are you guy's get the success on it? Facing the same issueCatch
@Shropshire did get this working? I have the exact same requirement using Lex. Thanks!Hannis
M
5

Correction to my comment... I, and others, may be misunderstanding the deprecation of the AMAZON.LITERAL. I found that custom slots still pass through literal content that did not match the predefined entries. If you have a custom slot with the entries "Bob" and "John" and I say "Samuel" my skill is still sent "Samuel". Which seems identical to previous AMAZON.LITERAL behavior. (AMAZON.LITERAL required you to provide example utterances, just as custom slots require to provide example utterances, so it seems only a difference in definition, not function.)

Marxism answered 1/10, 2016 at 11:25 Comment(0)
S
3

As you think about what users are likely to ask, consider using a built-in or custom slot type to capture user input that is more predictable, and the AMAZON.SearchQuery slot type to capture less-predictable input that makes up the search query.

You can read more here

To get the value in your application you will have to this

event.request.intent.slots.IntentName.value

Sadness answered 3/4, 2018 at 16:50 Comment(0)
B
2

Update: This is no longer possible as of October 2018.

AMAZON.LITERAL is deprecated as of October 22, 2018. Older skills built with AMAZON.LITERAL do continue to work, but you must migrate away from AMAZON.LITERAL when you update those older skills, and for all new skills.

You can use the AMAZON.LITERAL slot type to capture freeform text. Amazon recommends providing sample phrases, but according to this thread, you may be able to get away with not providing them.

Bee answered 31/3, 2016 at 16:59 Comment(7)
Thank you Jack. I've tried making changes to ASK to literal, How ever it is only considering the words are approximately matching Utterance.Shropshire
The AMAZON.LITERAL is going away November 30, 2016 (developer.amazon.com/public/solutions/alexa/alexa-skills-kit/…)Marxism
Slight correction to @QuinxyvonBesiex. AMAZON.LITERAL isn't going away but its use will make it so you can't publish your skill. It's still useable for non-published skills. more information can be found hereProsthodontist
@Prosthodontist Is that an important distinction? (I'm not being argumentative, just curious.)Marxism
@QuinxyvonBesiex I think it's important. If you are just going to make a skill for yourself or just your company and never plan to publish the skill on the Alexa "Store" then it might be good to know that you can still get the entire message. An unpublished skill is only available to the dev account associated, but you can either share the account on the Alexa account or make multiple dev accounts and copy the skill.Prosthodontist
As of January 2017, AMAZON.LITERAL is not deprecated anymore: developer.amazon.com/public/solutions/alexa/alexa-skills-kit/…Woodchuck
Based on developer feedback, the AMAZON.LITERAL slot is not being removed as previously described. You can continue to submit new and updated English (US) skills with AMAZON.LITERAL. However, in many cases, custom slot types provide better accuracy than AMAZON.LITERAL, so we recommend that you consider migrating to custom slot types if possible.Archaeornis

© 2022 - 2024 — McMap. All rights reserved.