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." }

asked 2 years ago601 views
1 Answer
0
Accepted Answer

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.

answered 2 years ago
profile picture
EXPERT
reviewed 10 months ago
  • can you please explain more the solution

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions