Weird behaviour stories

Hi,

I am using the restaurant example for forms and I am getting a weird behaviour. I separated greetings from the rest of the stories, and left everything the same. My issue is when I finish the form, the bot won’t recognise any other intent. So after finishing the form and saying thank you the state is

All done! I am going to run a restaurant search using the following parameters:

  • cuisine: mexican
  • num_people: 4
  • outdoor_seating: False
  • preferences: Nothing
  • feedback: Good Your input → thanks 2020-02-06 14:19:30 DEBUG rasa.core.tracker_store - Recreating tracker for id ‘default’ 2020-02-06 14:19:30 DEBUG rasa.core.processor - Received user message ‘thanks’ with intent ‘{‘name’: ‘thankyou’, ‘confidence’: 0.9833043813705444}’ and entities ‘’ 2020-02-06 14:19:30 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 50 events. 2020-02-06 14:19:30 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-02-06 14:19:30 DEBUG rasa.core.policies.memoization - Current tracker state [{}, {‘intent_request_restaurant’: 1.0, ‘prev_action_listen’: 1.0}, {‘prev_restaurant_form’: 1.0, ‘intent_request_restaurant’: 1.0}, {‘intent_request_restaurant’: 1.0, ‘prev_utter_slots_values’: 1.0}, {‘prev_action_listen’: 1.0, ‘intent_thankyou’: 1.0}] 2020-02-06 14:19:30 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘19’ 2020-02-06 14:19:30 DEBUG rasa.core.policies.form_policy - There is no active form 2020-02-06 14:19:30 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_MemoizationPolicy 2020-02-06 14:19:30 DEBUG rasa.core.processor - Predicted next action ‘utter_noworries’ with confidence 1.00. 2020-02-06 14:19:30 DEBUG rasa.core.processor - Action ‘utter_noworries’ ended with events ‘[BotUttered(‘you are welcome :)’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {}, 1580995170.9186711)]’. 2020-02-06 14:19:30 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-02-06 14:19:30 DEBUG rasa.core.policies.memoization - Current tracker state [{‘intent_request_restaurant’: 1.0, ‘prev_action_listen’: 1.0}, {‘prev_restaurant_form’: 1.0, ‘intent_request_restaurant’: 1.0}, {‘intent_request_restaurant’: 1.0, ‘prev_utter_slots_values’: 1.0}, {‘prev_action_listen’: 1.0, ‘intent_thankyou’: 1.0}, {‘prev_utter_noworries’: 1.0, ‘intent_thankyou’: 1.0}] 2020-02-06 14:19:30 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘0’ 2020-02-06 14:19:30 DEBUG rasa.core.policies.form_policy - There is no active form 2020-02-06 14:19:30 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘thankyou’. 2020-02-06 14:19:30 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_MemoizationPolicy 2020-02-06 14:19:30 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00. 2020-02-06 14:19:30 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘’. 2020-02-06 14:19:30 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘default’. you are welcome :)`

And then if I say hi it understand the intent, but he is not able to track the conversation anymore, same happens if I try to book a table again, not recognition of Stories:

2020-02-06 14:19:34 DEBUG rasa.core.tracker_store - Recreating tracker for id ‘default’ 2020-02-06 14:19:34 DEBUG rasa.core.processor - Received user message ‘Hi’ with intent ‘{‘name’: ‘greet’, ‘confidence’: 0.9993686079978943}’ and entities ‘’ 2020-02-06 14:19:34 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 54 events. 2020-02-06 14:19:34 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-02-06 14:19:34 DEBUG rasa.core.policies.memoization - Current tracker state [{‘prev_restaurant_form’: 1.0, ‘intent_request_restaurant’: 1.0}, {‘intent_request_restaurant’: 1.0, ‘prev_utter_slots_values’: 1.0}, {‘prev_action_listen’: 1.0, ‘intent_thankyou’: 1.0}, {‘prev_utter_noworries’: 1.0, ‘intent_thankyou’: 1.0}, {‘intent_greet’: 1.0, ‘prev_action_listen’: 1.0}] 2020-02-06 14:19:34 DEBUG rasa.core.policies.memoization - There is no memorised next action 2020-02-06 14:19:34 DEBUG rasa.core.policies.form_policy - There is no active form 2020-02-06 14:19:34 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_FallbackPolicy 2020-02-06 14:19:34 DEBUG rasa.core.processor - Predicted next action ‘action_default_fallback’ with confidence 0.30. 2020-02-06 14:19:34 DEBUG rasa.core.processor - Action ‘action_default_fallback’ ended with events ‘[BotUttered(‘sorry, I didn’t understand you, please try input something else’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {}, 1580995174.773692), <rasa.core.events.UserUtteranceReverted object at 0x1c68c818d0>]’. 2020-02-06 14:19:34 DEBUG rasa.core.processor - Current slot values: cuisine: mexican feedback: Good num_people: 4 outdoor_seating: False preferences: Nothing requested_slot: None 2020-02-06 14:19:34 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2020-02-06 14:19:34 DEBUG rasa.core.policies.memoization - Current tracker state [{‘intent_request_restaurant’: 1.0, ‘prev_action_listen’: 1.0}, {‘prev_restaurant_form’: 1.0, ‘intent_request_restaurant’: 1.0}, {‘intent_request_restaurant’: 1.0, ‘prev_utter_slots_values’: 1.0}, {‘prev_action_listen’: 1.0, ‘intent_thankyou’: 1.0}, {‘prev_utter_noworries’: 1.0, ‘intent_thankyou’: 1.0}] 2020-02-06 14:19:34 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘0’ 2020-02-06 14:19:34 DEBUG rasa.core.policies.form_policy - There is no active form 2020-02-06 14:19:34 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘thankyou’. 2020-02-06 14:19:34 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_MemoizationPolicy 2020-02-06 14:19:34 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00. 2020-02-06 14:19:34 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘’. 2020-02-06 14:19:34 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘default’.

My stories file:

happy path

  • request_restaurant
    • restaurant_form
    • form{“name”: “restaurant_form”}
    • form{“name”: null}
    • utter_slots_values
  • thankyou
    • utter_noworries

hello

  • greet
    • utter_greet

unhappy path

  • request_restaurant
    • restaurant_form
    • form{“name”: “restaurant_form”}
  • chitchat
    • utter_chitchat
    • restaurant_form
    • form{“name”: null}
    • utter_slots_values
  • thankyou
    • utter_noworries

Thanks

Hi there, it’s probaby because the stories don’t handle what happens after the form is over! This is a super simple example of a form that’s not meant to do much else other than show you how a form works. If you use the AugmentedMemoizationPolicy instead of the MemoizationPolicy, you should be able to follow multiple paths in succession. Another option would be to add action_restart to the end of each story – once you get to that spot the bot would clean the conversation history and start over.