amazon-web-services - Amazon Lex 不支持数字输入

标签 amazon-web-services aws-lambda amazon-lex

在使用话语 99110 创建新意图时,出现以下错误

"1099" in utterance "1099" for intent "numericTest" contains an unsupported character or word. An utterance can consist only of Unicode characters, spaces, and valid punctuation marks. Valid punctuation marks are: periods for abbreviations, underscores, apostrophes, and hyphens. If there is a slot placeholder in your utterance ensure, that it's in the {slotName} format and has spaces at both ends.

lex 不会将其发送到 lambda 实例,因为它无法评估意图。如果我得到输入,我可以在 lambda 处处理输入,但 lex 只是返回“抱歉,我不明白。”

如何将此数字输入输入到我的 lambda 实例中,或者如何让 lex 识别该数字?

文档说使用 amazon.NUMBER 内置意图,但它不再存在了。

最佳答案

根据亚马逊的说法,话语可以是口头或键入的单词和短语。

您可以编写“一哦九九”或“一零九九”,而不是字面地输入“1099”作为话语,并且如果用户键入“1099”作为文本或说出它,它就会起作用。

关于amazon-web-services - Amazon Lex 不支持数字输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47120271/

相关文章:

python - S3Cmd 不适用于 S3 Ninja

java - 在 Windows Server 2016/AWS 上运行的 Springboot Web 服务器无法正常工作

chatbot - 如何在lex中创建开放式插槽

chatbot - Amazon Lex Bot - 如何删除或重命名插槽

amazon-web-services - 当 lex 不自动处理意图时如何调用 lambda?

javascript - 当 EC2 请求该文件时,S3 上的文件是否通过 EC2 加载到浏览器上

html - 我应该为 Firefox html5 下载属性使用什么 S3 cors 配置?

java - 从用 Java 编写的 lambda 函数调用 lambda 函数

javascript - 如何用数组链接 Promise

amazon-web-services - AWS IoT Core 多环境