My use case is to create a bot using the YAML file. When a user asks questions related to my knowledge base, I need the bot to provide answers. I tried using the QnA intent in the AWS console, but it’s not available in CloudFormation. So, I created a Lambda function and added it as a fulfillment hook to the intent. However, my problem is that the user can ask anything about the intents, and I can’t predefined all possible utterances. How can I capture the user’s questions and pass them to the Lambda function?
1 Answer
Based on your question, it sounds like you need to use the Fallback Intent to call your Lambda function whenever the user enters something that your intents are not trained for.
Read about it here.
You can then perform the necessary processing through the Lambda function.
You can also use the built-in Kendra integration to search through your knowledge base to answer the user's questions.
1 Comment
Thomas Joseph
yes i have done this using the fallback but i wanted to know that if there is any other ways to do this