aws-solutions / qnabot-on-aws

AWS QnABot is a multi-channel, multi-language conversational interface (chatbot) that responds to your customer's questions, answers, and feedback. The solution allows you to deploy a fully functional chatbot across multiple channels including chat, voice, SMS and Amazon Alexa.
https://aws.amazon.com/solutions/implementations/aws-qnabot
Apache License 2.0
392 stars 251 forks source link

Mechanism to force a custom intent. #480

Closed GGONCONCENTRIX closed 1 year ago

GGONCONCENTRIX commented 2 years ago

The customer is looking for a mechanism to force a custom intent. By default, Lex uses the fallback intent, where the customer is looking for a specific custom intent. To get around this, a Lambda function was hooked to handle this and force the fallback intent. The issue now is that Lex isn’t returning a ‘retries’ value to lambda as a session attribute. This means that it isn’t possible to terminate the interaction after ‘x’ number of invalid entries. AWS recommendations:

Request: Include a mechanism for solution to force a custom intent, with appropriate error handling.

ihmaws commented 1 year ago

Hi @GGONCONCENTRIX, sorry for the delay in getting around to this.

Unfortunately, it isn't clear to me what the request in this issue is. If you or your customer are still experiencing challenges with this, please create a new issue stating the version you are on, the problem you have, and what you'd like to see.

A simple example to help reproduce will go a long way!