How get the bot designed using Amazon Lex V2 to recognize Intents without sample utterances when its input contexts are active

0

I have designed a QnA bot that has some intents without sample user utterances. Since in QnA bot the questions the users can ask cannot be predetermined. I however have a clear set of input contexts set for these intents. I want to know how to ensure that such an intent gets triggered when all the input contexts are active and fallback intent doesn't get triggered.

On a side note is there a way to disable fallback intent on Lex V2?

已提问 1 年前769 查看次数
1 回答
2

To ensure that an intent without sample utterances gets triggered when all input contexts are active, you can use slot filling. When a user asks a question that triggers an intent with active input contexts but without sample utterances, the bot can prompt the user to provide more information through slot filling. The bot can ask questions to get more information and determine the appropriate response.

Here is an example:

Let's say you have an intent called "FindRestaurant" with active input contexts "City" and "Cuisine." The user asks, "What are some good restaurants in Boston?" The bot recognizes that the input contexts "City" and "Cuisine" are active and prompts the user to provide more information using slot filling. The bot can ask, "What type of cuisine are you interested in?" The user can respond with "Italian," and the bot can then provide a list of Italian restaurants in Boston.

Regarding your second question, there is no way to disable the fallback intent in Amazon Lex V2. The fallback intent is automatically triggered when the bot cannot match the user's input to any of the other intents. However, you can customize the fallback intent to provide a more meaningful response to the user.

AWS_Guy
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则