# Rasa X and action\_default\_fallback

**URL:** <https://forum.rasa.com/t/rasa-x-and-action-default-fallback/43518>\
**Category:** Rasa Open Source\
**Created:** [May 12, 2021, 5:46pm UTC](https://forum.rasa.com/t/rasa-x-and-action-default-fallback/43518 "2021-05-12T17:46:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blaabjerg96](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/blaabjerg96/32/14129_2.png) [@Blaabjerg96](https://forum.rasa.com/u/Blaabjerg96)\
**Post date:** [May 12, 2021, 5:46pm UTC](https://forum.rasa.com/t/rasa-x-and-action-default-fallback/43518/1 "2021-05-12T17:46:37Z")

</div>

Hello,

I’ve succesfully shared my bot, but the problem is it will break it self after a few messages. The problem is that it will predict `action_default_fallback` even though it can correctly identify the intent, even with high confidence.

I have not used the action, so I dont understand where it’s coming from.

I tried going into debug mode on the command interface to see if there was a meaningful error. This was the output:

`2021-05-12 19:29:52 DEBUG rasa.core.lock_store - Issuing ticket for conversation '15a51c34df1d42d58914d4caae7a647f'.2021-05-12 19:29:52`

`DEBUG rasa.core.lock_store - Acquiring lock for conversation '15a51c34df1d42d58914d4caae7a647f'.2021-05-12 19:29:52`

`DEBUG rasa.core.lock_store - Acquired lock for conversation '15a51c34df1d42d58914d4caae7a647f'. 2021-05-12 19:29:52 DEBUG rasa.core.tracker_store - Recreating tracker for id '15a51c34df1d42d58914d4caae7a647f'` `2021-05-12 19:29:52

`DEBUG rasa.core.processor - Received user message 'jeg forstår ikke hvad der menes med for lidt?' with intent '{'id': -7753130457771574260, 'name': 'Slider', 'confidence': 0.9963321089744568}' and entities '[]' 2021-05-12 19:29:52 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 11 events. 2021-05-12 19:29:52 DEBUG rasa.core.policies.memoization - Current tracker state:`

`[state 1] user intent: Slider | previous action name: action_listen`

`[state 2] user intent: Slider | previous action name: utter_Slider`

`[state 3] user intent: Slider | previous action name: utter_Assistance`

`[state 4] user intent: Slider | previous action name: action_listen`

`2021-05-12 19:29:52 DEBUG rasa.core.policies.memoization - There is no memorised next action`

`2021-05-12 19:29:52 DEBUG rasa.core.policies.rule_policy - Current tracker state:`

`[state 1] user intent: Slider | previous action name: action_listen`

`[state 2] user intent: Slider | previous action name: utter_Slider`

`[state 3] user intent: Slider | previous action name: utter_Assistance`

`[state 4] user text: jeg forstår ikke hvad der menes med for lidt? | previous action name: action_listen`

`2021-05-12 19:29:52 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.`

`2021-05-12 19:29:52 DEBUG rasa.core.policies.rule_policy - Current tracker state:`

`[state 1] user intent: Slider | previous action name: action_listen`

`[state 2] user intent: Slider | previous action name: utter_Slider`

`[state 3] user intent: Slider | previous action name: utter_Assistance`

`[state 4] user intent: Slider | previous action name: action_listen`

`2021-05-12 19:29:52 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.`

`2021-05-12 19:29:52 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.`

`2021-05-12 19:29:52 DEBUG rasa.core.policies.ensemble - Added `DefinePrevUserUtteredFeaturization(False)` event.`

`2021-05-12 19:29:52 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_RulePolicy.`

`2021-05-12 19:29:52 DEBUG rasa.core.processor - Predicted next action 'action_default_fallback' with confidence 0.30.`

`2021-05-12 19:29:52 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_default_fallback'.`

What am i doing wrong?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![anca](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/anca/32/14540_2.png) [@anca](https://forum.rasa.com/u/anca)\
**Post date:** [May 13, 2021, 8:11am UTC](https://forum.rasa.com/t/rasa-x-and-action-default-fallback/43518/2 "2021-05-13T08:11:26Z")

</div>

Hi @Blaabjerg96 `action_default_fallback` is a [default action](https://rasa.com/docs/rasa/default-actions#action_default_fallback) used by the [Fallback Classifier](https://rasa.com/docs/rasa/components#fallbackclassifier), have you enabled this in your `config.yml` file? Although in your case I think this action is predicted by the [RulePolicy.](https://rasa.com/docs/rasa/policies#rule-policy)

The debug log is showing how it’s trying to predict next action using the policies in the config but it cannot find an applicable action in stories or rules - could you please share your config, stories and rules files with me?

---

<div class="post-metadata">

**Author:** ![Blaabjerg96](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/blaabjerg96/32/14129_2.png) [@Blaabjerg96](https://forum.rasa.com/u/Blaabjerg96)\
**Post date:** [May 13, 2021, 12:55pm UTC](https://forum.rasa.com/t/rasa-x-and-action-default-fallback/43518/3 "2021-05-13T12:55:34Z")

</div>

Thank you for the quick reply.

They are as follows:

# the config file:

`language: da`

`# # No configuration for the NLU pipeline was provided. The following default pipeline was used to train your model.``# # If you'd like to customize it, uncomment and adjust the pipeline.``# # See https://rasa.com/docs/rasa/tuning-your-model for more information.`

`pipeline:`

`- name: SpacyNLP`

`model: da_core_news_md`

`- name: SpacyTokenizer`

`- name: SpacyEntityExtractor`

`- name: SpacyFeaturizer``pooling: mean`

`- name: CountVectorsFeaturizer`

` analyzer: char_wb`

` min_ngram: 1`

` max_ngram: 2`

`- name: DIETClassifier`

`- name: FallbackClassifier`

` threshold: 0.8`

` ambiguity_threshold: 0.1`

`epochs: 1`

`# Configuration for Rasa Core.`

`# https://rasa.com/docs/rasa/core/policies/`

`policies:`

`# # No configuration for policies was provided. The following default policies were used to train your model.`

`# # If you'd like to customize them, uncomment and adjust the policies.`

`# # See https://rasa.com/docs/rasa/policies for more information.`

` - name: MemoizationPolicy`

` - name: TEDPolicy`

`# max_history: 5`

`# epochs: 100`

`# constrain_similarities: true`

` - name: RulePolicy`

# Stories:

version: “2.0”

stories:

- story: happy path

- story: sad path 1

- story: sad path 2

- story: Hello Dansk

- story: Data

- story: Betafunktioner

- story: DreamPlanVsBank

- story: Kontakt bank

- story: AndreTingAfValue

- story: HvordanGorJeg

- story: DrommeFunktion

- story: Slider

- story: AndreDreamPlan

- story: Forud

- story: Fallback

# Rules:

version: “2.0”

rules:

- rule: Say goodbye anytime the user says goodbye

- rule: Say ‘I am a bot’ anytime the user challenges

- rule: fallback regler

I hope it’s somewhat readable

---

<div class="post-metadata">

**Author:** ![anca](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/anca/32/14540_2.png) [@anca](https://forum.rasa.com/u/anca)\
**Post date:** [May 13, 2021, 1:20pm UTC](https://forum.rasa.com/t/rasa-x-and-action-default-fallback/43518/4 "2021-05-13T13:20:50Z")

</div>

Hi @Blaabjerg96 Thanks for providing the contents of your files.

Returning to the debug log, did the bot identify correctly the user message as intent `Slider`? And the next expected action should have been `utter_Slider` according to the story Slider?

One initial recommendation I have is perhaps it could be a good idea to transfer these shorter stories to rules if you always expect intent `Slider` to be followed by `utter_Slider` and `utter_Assistance` actions. Let me know if that works.

---

<div class="post-metadata">

**Author:** ![Blaabjerg96](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/blaabjerg96/32/14129_2.png) [@Blaabjerg96](https://forum.rasa.com/u/Blaabjerg96)\
**Post date:** [May 13, 2021, 5:49pm UTC](https://forum.rasa.com/t/rasa-x-and-action-default-fallback/43518/5 "2021-05-13T17:49:27Z")

</div>

Ah yea that makes sense - I will try that and see if that works out

---

<div class="post-metadata">

**Author:** ![Blaabjerg96](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/blaabjerg96/32/14129_2.png) [@Blaabjerg96](https://forum.rasa.com/u/Blaabjerg96)\
**Post date:** [May 13, 2021, 6:05pm UTC](https://forum.rasa.com/t/rasa-x-and-action-default-fallback/43518/6 "2021-05-13T18:05:15Z")

</div>

Unfortunately it does not seem to work, and to answer your other question. It did correctly assume actions.

It seems to be an old problem [Link](http://forum.rasa.com/t/action-default-fallback-often-predicted-as-next-action-after-correct-action-was-predicted/2705). Don’t know if it has been fixed though.

Even tried adding a max history factor to my `MemoizationPolicy` also tried with `AugmentedMemoizationPolicy` nothing worked unfortunately.

So update: I ran the bot in rasa shell mode - it worked fine, but does not seem to work in Rasa X, is this helpful to maybe find the error?

---

<div class="post-metadata">

**Author:** ![Blaabjerg96](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/blaabjerg96/32/14129_2.png) [@Blaabjerg96](https://forum.rasa.com/u/Blaabjerg96)\
**Post date:** [May 18, 2021, 5:55pm UTC](https://forum.rasa.com/t/rasa-x-and-action-default-fallback/43518/7 "2021-05-18T17:55:38Z")

</div>

I have now fixed the error, it was probably something to do with the above mentioned changes. However the bug was still remaining until I changed language in the config file, and changed it back to the original language. I have a post regarding this issue [here](http://forum.rasa.com/t/rasa-x-on-aws/43186)
