Hi,
I am new to Rasa and trying to create a bot to help with product registration and registration checking. I have come up with the following story so far.
## greet
* greet
- utter_greet
- utter_howCanIHelp
## check warranty
* greet
- utter_greet
- utter_howCanIHelp
* check_warranty
- utter_enterSerialNumber
* inform_serialnumber{"serial_number":""}
- action_validate_serial
- utter_moreHelp
* affirm
- utter_howCanIHelp
* deny
- utter_goodbye
- action_restart
## say goodbye
* goodbye
- utter_goodbye
## bot challenge
* bot_challenge
- utter_iamabot
The bot works as expected, but it is picking up intent randomly. for example, if I don’t follow the greet part and just type in my serial number, it is validating the serial number, which is correct, but this validation action will be different in different context. When user wants to check the registration details, it would run a custom action and when user wants to register the product, it would run a custom action. Now for both the intents (check and register), I’ll ask user to enter the serial number and run the action accordingly. Bot must ignore serial numbers if it is not in a particular context. How can I achieve this? I know that in the validate registration number action, I can detect the previous intent and if user just entered the a serial number without saying “I want to check” or “I want to register”, then I may ask the user what to do with the provided serial number. But I believe there must be a better way.