Passer au contenu

Can Kendra search intent results be returned first?

0

Is there a way in Lex to delegate Kendra results to an intent first? For example for a payment intent, I want Kendra to return search results first instead of the payment intent response. Is there a way to delegate to the Kendra Search Intent? Trying to avoid programmatically suggesting Kendra and looking for a way to do this in Lex.

demandé il y a un an194 vues
1 réponse
1

In LexV2, you can use the conditional next steps to switch to different intents when required. If I understand correctly, if Payment Intent is triggered, before we start eliciting the slots within the intent we want to trigger kendra search Intent? if yes, then yeah in the payments intent initial response block, set the next step to switch to Kendra intent, and in the Kendra intent block set the fulfillment next step to switch to first slot of Payment intent. When eliciting this slot, the context should contain the Kendra response in the request attributes that you can use as required.

AWS
répondu il y a un an
  • Thank you for the answer. I tried as suggested and received a 'Invalid Bot Configuration: Switching to Kendra intent via next actions is not allowed' when testing. In my application it is just intents with utterances and no slots what would be done in that case? Also when setting the next step in the successful fulfillment I can only input one intent...how would I set Kendra for two intents? Thanks in advance.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.