スキップしてコンテンツを表示

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.

質問済み 1年前194ビュー
1回答
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
回答済み 1年前
  • 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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ