测试Lex bot与Kendra Search Intent时出错。

0

【以下的问题经过翻译处理】 当测试包含KendraSearchIntent的Lexbot时,收到了以下错误信息。我按照这个指南将这个intent添加到bot中。https://docs.aws.amazon.com/lex/latest/dg/faq-bot-kendra-search.html根据指南,我使用了内置的Kendra intent。在创建intent时,我选择了添加Amazon Kendra权限,以避免权限问题。没有使用任何过滤器。在结束响应中,我只使用了Kendra的标准响应,比如x-amz-lex:kendra-search-response-question_answer-answer-1。

有什么建议吗?

错误: { "errorMsg": "Invalid Bot Configuration: Amazon Lex could not access your Amazon Kendra index. There is a problem with your configuration. Check the configuration and try your request again." }

profile picture
专家
已提问 8 个月前84 查看次数
1 回答
0

【以下的回答经过翻译处理】 我找到了问题的答案。出错的根本原因在于创建Lexbot Intent的角色没有编辑Lex bot的IAM服务的权限。

在授予角色(我的角色作为控制台用户)相应的权限之后,重新创建KendraSearchIntent,并更新了Lex IAM服务角色。不再出错,Lex现在可以访问Kendra了。

profile picture
专家
已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则