如何接受自由格式文本作为Amazon Skill Kit的输入? [英] How to accept the Free form text as input to Amazon Skill Kit?

查看:96
本文介绍了如何接受自由格式文本作为Amazon Skill Kit的输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个Amazon Skill Kit才能在售票工具中打开票。
通过查看Amazon Skill Kit的示例,我找不到一种接受自由格式文本作为输入的方法。另一种选择是通过创建一个自定义插槽,将所有可能的输入集作为自定义插槽输入。

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.

推荐答案

与我的评论正确……我和其他人可能误解了AMAZON.LITERAL。我发现自定义广告位仍会通过与预定义条目不匹配的文字内容。如果您有一个带有鲍勃和约翰条目的自定义位置,并且我说塞缪尔,我的技能仍然会发送塞缪尔。这似乎与以前的AMAZON.LITERAL行为相同。 (AMAZON.LITERAL要求您提供示例话语,就像自定义插槽要求提供示例话语一样,因此看起来只是定义上的差异,而不是功能。)

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.)

这篇关于如何接受自由格式文本作为Amazon Skill Kit的输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆