Utter_default action is not getting triggered . Rasa core story

utter_default is not getting triggered. According to my concept when it do not find any intent so it should triggered automatically. But instead it the dialogue goes on another dialogue.

DO anyone have any idea ?

are you using the fallback policy? https://rasa.com/docs/core/fallbacks/

1 Like

yeah I just found the solution by using fallback as utter_default

1 Like

do you have a solution ? I got same thing , I’m training my model with default config of rasa_core.train

Hello, @akelad do you have any idea how to solve this? I am using Rasa 3.0.4 but the problem I am facing is that “utter_default” is not been triggered after action_default_fallback. I am using rasa interactive and a see that action_default_fallback is triggered but not utter_default

According to this documentation Fallback and Human Handoff it should be triggered automatically but it does not.

This is my configuration.

config.yml

pipeline:
  - name: FallbackClassifier
    threshold: 0.4
    ambiguity_threshold: 0.1

policies:
  - name: MemoizationPolicy
  - name: RulePolicy
    core_fallback_threshold: 0.3
    core_fallback_action_name: "action_default_fallback"
    enable_fallback_prediction: True
  - name: UnexpecTEDIntentPolicy
    max_history: 5
    epochs: 100
  - name: TEDPolicy
    max_history: 5
    epochs: 100
    constrain_similarities: true

domain.yml

responses:
  utter_default:
  - text: ¨No entendí tu mensaje¨

add this to rules.

rules.yml rules:

  • rule: Ask the user to rephrase whenever they send a message with low NLU confidence steps:
    • intent: nlu_fallback
    • action: utter_default

Thanks @azizullah2017 for the response it is working perfectly for NLU Fallback# but I want to be able to handle utters for Handling Low Action Confidence#

The problem I am facing is that sometimes an action_default_fallback action is triggered and utter_default should be triggered after that but it does not.

I created my custom Action to handle this it works as I expect but just if I comment the last line.

  1. action_default_fallback
  2. utter_default_custom (is printed)
  3. action_listen

If I uncomment last line no utter_default_custom is triggered

  1. action_default_fallback
  2. action_listen
class ActionCustomFallback(Action):
    """Executes the fallback action and goes back to the previous state
    of the dialogue"""

    def name(self) -> Text:
        return "action_custom_fallback"

    async def run(
        self,
        dispatcher: CollectingDispatcher,
        tracker: Tracker,
        domain: Dict[Text, Any],
    ) -> List[Dict[Text, Any]]:
        print("ActionCustomFallback")
        dispatcher.utter_message(response="utter_default_custom")

        # Revert user message which led to fallback.
        return []
        # return [UserUtteranceReverted()]

Try this

config.yml

pipeline:
  - name: FallbackClassifier
    threshold: 0.4
    ambiguity_threshold: 0.1

policies:
  - name: MemoizationPolicy
  - name: RulePolicy
    core_fallback_threshold: 0.3
    core_fallback_action_name: "utter_default"
    enable_fallback_prediction: True
  - name: UnexpecTEDIntentPolicy
    max_history: 5
    epochs: 100
  - name: TEDPolicy
    max_history: 5
    epochs: 100
    constrain_similarities: true
1 Like

Thanks @azizullah2017 It worked but There is something I do not catch. According to Rasa documentation utter_default should be prompt after action_default_fallback automatically. and revert back to the state of conversation. Is that a bug?