I am new to AWS, and facing a problem with Amazon Connect and Lex. I have 11 intents in my Lex bot. In Amazon Connect Contact Flow inside the "Get Customer Input" I have included only 5 out of 11 intents. Get Customer Input screenshot. My problem is that I want to restrict Lex to those certain intents, i.e. when a user speaks, "Get Customer Input" should trigger only one of those 5 intents instead of triggering one of all 11 intents that are in the bot.
Intents that I have inside Get Customer Input:
- newRes: when a customer says New Reservation
- removePreviousRes: when a customer says Delete my Reservation or Cancel my Reservation
- updatePreviousRes: when a customer says Change my Reservation or Update my Reservation
- checkRideStatus: when a user says What is the status of my ride
- getAnOperator: when a user says Talk to operator
I also have a newUser intent in the Lex bot which can be triggered by saying New User or New Account or something similar. Now if a user says New User or New Account at Get Customer Input block, newUser intent will be triggered even though I have not added it inside Get Customer Input block as a parameter. Is there a way to restrict Lex to only those 5 intents? Because I need the newUser intent later in the Contact Flow, and I don't want the user to trigger it at the start of Contact Flow. Any ideas? Can I restrict it using Lambda function?