Is there a way to lock the user in a story, once a specific intent has been said?

Is there a way that when the user starts with an intent, lets say ordering pizza. I would like that user to stick in that intent, unless he explicitly mentions to stop the intent. I don’t want other intents accidently starting within. So is there a way to lock the user in a story, until they explicitly mention to stop it, or is that not possible in Rasa?

Here’s an example of my problem:

Your input → I need help with creating an invoice please

Bot-> Alright! What type of Solution are you looking for?

Your input → I’ll be looking for a solution for my home please

Bot-> Where is your home?

Your input → Its in California

Bot-> What units would you prefer?

Your input → I would like cm

Bot-> Alright! What type of Solution are you looking for?

See how the bot goes back to one of the intents. What’s a good approach to prevent this from happening and locking the user?

Thanks for your time!

I think the forms is what you need.
Some examples. User need to fill the all slots that can leave the form. (By default)

2 Likes