1 Answer
- Newest
- Most votes
- Most comments
2
Hello,
I did not get question 1, do you want to create more utterances that will send you to failback ?
responding to question 2, you could define a custom slot validation using AWS Lambda. This function should check if the input has 4 to 6 digits and reject inputs that don't meet this criterion.
Relevant content
- asked 8 months ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
thanks Giovanni, for the second second answer, let me rephrase the first question. currently the bot have only two intents, the fallback and another test intent, in the test intent I have added utterances like, "Yes, yeah, yup" to get the bot started, when I ask the question in the prompts like, If you are an employee please say yes, here if the caller says yes, then the bot will go the the slot and will ask "Whats your name", since the caller is an employee. but when the caller says some other words like no, car, bus etc, it still ask for "Whats your name" rather than go to the fallback intent. thanks
Add more utterances to the Test intent to better train the classifier. For example, add responses like "no", "not an employee", etc. This will help the bot distinguish between positive and negative answers.
Alternatively you can use intent contexts to control the flow. For example, set the employee check intent as the current context after a "yes" response. Only allow the name slot intent when this context is active.
It worked like that. I created another intent and added all the possible responses to that in the utterances. No it works fine. regarding the first question, I have to use lambda for custom validation.
thanks Giovanni, for the quick responses.