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

查看:19
本文介绍了如何接受自由格式文本作为 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 的弃用.我发现自定义插槽仍然通过与预定义条目不匹配的文字内容.如果您有一个包含条目Bob"和John"的自定义插槽,并且我说Samuel",我的技能仍然发送Samuel".这似乎与之前的 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天全站免登陆