I have following situation. If a users asks for paid special leave the bot is answering the following: Choose from the list:
 – Baby is born
 – Fatality
after that I made a custom action which tracks the latest user message, here is the snippet:
def name(self): return 'action_extra_vacation' def run(self, dispatcher, tracker, domain): user_msg = tracker.latest_message.get('text') print(user_msg) if user_msg == 1: response='congratz' .... dispatcher.utter_message(response)
If I type 1 the bot falls into default fallback I add and says “Sorry, I can´t help you”. Is there any option I can use to allow user inputs which only affects the message which is generated in the custom action script?
Here is a story example to make things clear:
* ask_extra_vacation - utter_ask_extra_vacation_topic - action_extra_vacation * say_thank_you - utter_you_are_welcome * goodbye - utter_goodbye