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

posta 2 anni fa621 visualizzazioni
1 Risposta
0
Risposta accettata

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.

con risposta 2 anni fa
profile picture
ESPERTO
verificato 10 mesi fa
  • can you please explain more the solution

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande