Hi., I am building a legal assistant chat bot.
Let’s assume in a situation where client is clearing her mundane doubts with questions like ‘what is a bail’, ‘how much hiring a lawyer cost?’ or ‘how to file a divorce’ then these queries do not fall under any predefined intents but nlu_fallback.
My question is how to handle the repetitive sequence of [ nlu_fallback → action_handle_fallback ]+ (+ indicates 1 or more occurrence in Regex ) scenarios in story.yml ?
repetitive sequence of [ nlu_fallback → action_handle_fallback ]+ (+ indicates 1 or more occurrence in Regex ) scenarios
If the goal is to just tell the user “We’re not able to handle that question”, then define an out_of_scope intent with all the examples you gave, and add a regular rule or story:
If the goal is to handle all these mundane messages with a single intent: how about defining a single intentmundane_questions which groups all of these mundane questions?
Then you could then handle the regex in a couple of ways: