Error when testing Lexbot with Kendra Search Intent

0

I receive the following error message when testing a Lexbot that contains a KendraSearchIntent. I followed this guide to add the intent to the bot. https://docs.aws.amazon.com/lex/latest/dg/faq-bot-kendra-search.html. Per guide, I used the built-in Kendra intent. In creating the intent, I chose Add Amazon Kendra permissions, to try to avoid permission issues. I didn't use any filters. In Closing response, I used only Kendra's standard responses, like x-amz-lex:kendra-search-response-question_answer-answer-1.

Any suggestions?

Error: { "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." }

已提問 2 年前檢視次數 621 次
1 個回答
0
已接受的答案

I found the answer to my question. The underlying reason for the error was that the assumed role that was creating the Lexbot intent did not have the ability to edit the IAM service role on the Lexbot.

After the assumed role (mine as the console user) was granted this permission, I recreated the KendraSearchIntent, and the Lex IAM service role was updated. The error no longer appears, and Lex can access the Kendra.

已回答 2 年前
profile picture
專家
已審閱 10 個月前
  • can you please explain more the solution

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南