Why does it does not follows stories flow, sometimes from nowhere it gives different output which is not even related to it by any chance? Working model starts predicting wrongly, doesn’t give solution, get Stucks in between ongoing conversation, sometimes recognizing particular intents and sometimes doesn’t even recognize and get stucked. Why all such things happens and how to deal with it, how to make bot capable of doing things as said in stories and other given files?
Without looking at the bot, it’s hard to say but this can happen with multiple long stories when there is confusion between the stories. In general, I would recommend not using stories by default. Instead, use rules and forms as much as possible.
so do I need to mention twice for using rules, or if it’s mentioned in stories then it doesn’t require to be added in rules or vice versa, and I clearly want my bot to run exactly same according to my stories, so do i need to mention everything in rules for getting exactly what is written in stories and that is also i think not possible as in stories a big conversation flow is written which in rules is not expected , so this i don’t think so will work
In general, try to delete stories and use only rule if possible.
rules don’t support a conversation flow it just supports one or two intent and action that’s it , so how can we design whole workflow of conversation with just by using rules only, if this is possible please elaborate how to write long stories in rules.
Sure, I’ll provide an example of a re-write that is in process for all of the example bots in the Rasa repo.
Here are the storles.yml for the example concert bot and here is the re-write using only rules:
version: "3.1"
rules:
- rule: fallback
steps:
- intent: nlu_fallback
- action: utter_default
- rule: greet
steps:
- intent: greet
- action: utter_greet
- rule: thankyou
steps:
- intent: thankyou
- action: utter_youarewelcome
- rule: goodbye
steps:
- intent: goodbye
- action: utter_goodbye
- rule: challenge
steps:
- intent: bot_challenge
- action: utter_iamabot
- rule: search_venues
steps:
- intent: search_venues
- action: action_search_venues
- rule: search_concerts
steps:
- intent: search_concerts
- action: action_search_concerts
- rule: compare_reviews_concerts
steps:
- action: action_search_concerts
- intent: compare_reviews
- action: action_show_concert_reviews
- rule: compare_reviews_venues
steps:
- action: action_search_venues
- intent: compare_reviews
- action: action_show_venue_reviews
- rule: how_to_get_started, doesn't like music
steps:
- intent: how_to_get_started
- action: utter_get_started
- rule: how_to_get_started, doesn't like music
steps:
- action: utter_get_started
- intent: deny
- action: action_set_music_preference
- action: utter_goodbye
- rule: how_to_get_started, likes music
steps:
- action: utter_get_started
- intent: affirm
- action: action_set_music_preference
- action: utter_awesome