Salta al contenuto

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.

posta un anno fa194 visualizzazioni
1 Risposta
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
con risposta un anno fa
  • 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.

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.