简体   繁体   English

Amazon lex 对 Amazon Lambda 函数的未知表述

[英]Amazon lex unknown utterance to the Amazon Lambda function

I would like to know how to call lambda function from missed utterances.我想知道如何从错过的话语中调用 lambda 函数。 I created a bot I want like whenever the user request a query which is not available in the provided utterances, it will go to the error handling, instead of that I would like to call a lambda function.我创建了一个我想要的机器人,就像每当用户请求提供的话语中不可用的查询时,它就会转到错误处理,而不是我想调用 lambda 函数。 Is it possible?可能吗?

Try using the built-in intent: AMAZON.FallbackIntent尝试使用内置意图: AMAZON.FallbackIntent

When a user's input to an intent isn't what a bot expects, you can configure Amazon Lex to invoke a fallback intent.当用户对意图的输入不是机器人所期望的时,您可以将 Amazon Lex 配置为调用回退意图。 ... ...

Invoking a fallback intent uses two steps.调用回退意图使用两个步骤。 In the first step the fallback intent is matched based on the input from the user.在第一步中,根据用户的输入匹配后备意图。 When the fallback intent is matched, the way the bot behaves depends on the number of retries configured for a prompt.当回退意图匹配时,机器人的行为方式取决于为提示配置的重试次数。 For example, if the maximum number of attempts to determine an intent is 2, the bot returns the bot's clarification prompt twice before invoking the fallback intent.例如,如果确定意图的最大尝试次数为 2,则机器人会在调用回退意图之前两次返回机器人的澄清提示。

Amazon Lex matches the fallback intent in these situations: Amazon Lex 在这些情况下匹配回退意图:

  • The user's input to an intent doesn't match the input that the bot expects用户对意图的输入与机器人期望的输入不匹配
  • Audio input is noise, or text input isn't recognized as words.音频输入是噪音,或者文本输入未被识别为文字。
  • The user's input is ambiguous and Amazon Lex can't determine which intent to invoke.用户的输入不明确,Amazon Lex 无法确定调用哪个意图。

The fallback intent is invoked when:回退意图在以下情况下被调用:

  • The bot doesn't recognize the user input as an intent after the configured number of tries for clarification when the conversation is started.在对话开始时,经过配置的澄清尝试次数后,机器人不会将用户输入识别为意图。
  • An intent doesn't recognize the user input as a slot value after the configured number of tries.在配置的尝试次数后,意图不会将用户输入识别为槽值。
  • An intent doesn't recognize the user input as a response to a confirmation prompt after the configured number of tries.在配置的尝试次数后,意图不会将用户输入识别为对确认提示的响应。

You can use the following with a fallback intent:您可以将以下内容与后备意图一起使用:

  • A fulfillment Lambda function执行 Lambda 函数
  • A conclusion statement结论陈述
  • A follow up prompt跟进提示

You can't add the following to a fallback intent:您不能将以下内容添加到回退意图:

  • Utterances话语
  • Slots老虎机
  • An initialization and validation Lambda function初始化和验证 Lambda 函数
  • A confirmation prompt确认提示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 amazon lex 关于使用的插槽类型 - amazon lex regarding slot types used 如何提高连接到 Amazon MQ 的 Lambda 函数的性能 - How to Improve Performance of Lambda Function which Connects to Amazon MQ 从 lambda 函数使用 Amazon SES 的定价是多少? - What would be the pricing for using Amazon SES from a lambda function? Lex 无法访问 Lambda 函数 - Lex is unable to access the Lambda function 在 AWS lex Lambda 函数中获取 Slack userId - Get Slack userId in AWS lex Lambda function Amazon Lex 错误:调用 PutIntent 操作时发生错误 (BadRequestException):RelativeId 与 Lex ARN 格式不匹配 - Amazon Lex Error: An error occurred (BadRequestException) when calling the PutIntent operation: RelativeId does not match Lex ARN format 来自 Amazon.DynamoDBv2.DocumentModel 的 Table.LoadTable 导致 .NET 代理 Lambda 函数超时 - Table.LoadTable from Amazon.DynamoDBv2.DocumentModel causing Times out in .NET proxy Lambda Function watson assistant、dialog flow 和 amazon lex 每秒支持的请求数 - number of requests supported per second by watson assistance, dialog flow and amazon lex 为什么在使用 quarkus-amazon-lambda 和 quarkus-smallrye-openapi 包时会出现错误? - Why do I get an error when using quarkus-amazon-lambda and quarkus-smallrye-openapi packages? 在 Amazon Linux 2 中安装节点 - Install node in Amazon Linux 2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM