# Two Stage Fallback unexpected behaviour

**URL:** <https://forum.rasa.com/t/two-stage-fallback-unexpected-behaviour/8811>\
**Category:** Rasa Open Source\
**Created:** [April 20, 2019, 11:17pm UTC](https://forum.rasa.com/t/two-stage-fallback-unexpected-behaviour/8811 "2019-04-20T23:17:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hossa95](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hossa95/32/1766_2.png) [@hossa95](https://forum.rasa.com/u/hossa95)\
**Post date:** [April 20, 2019, 11:17pm UTC](https://forum.rasa.com/t/two-stage-fallback-unexpected-behaviour/8811/1 "2019-04-20T23:17:36Z")

</div>

I am trying to use the two stage fallback policy as mentioned in the rasa-demo but it doesn’t behave as expected. I used interactive learning to see the action sequence and here is what I found after an input with low nlu confidence,

- action\_default\_ask\_affirmation
- action\_listen
- user input: yes
- classified as affirm
- action\_revert\_fallback\_events
- action\_default\_fallback

which is not the flow mentioned in docs as it should continue after yes as it was originally well classified, same happens with “deny” it runs the `action_default_fallback` from the first time instead of running `action_default_ask_rephrase`

here is my policy:

```
  - name: KerasPolicy
    epochs: 50
    max_history: 6
  - name: AugmentedMemoizationPolicy
    max_history: 6
  - name: TwoStageFallbackPolicy
    nlu_threshold: 0.8
    core_threshold: 0.3
  - name: FormPolicy

```

I am using core 0.13.2, also I am not overriding any actions from the default action classes for fallback

---

<div class="post-metadata">

**Author:** ![hossa95](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hossa95/32/1766_2.png) [@hossa95](https://forum.rasa.com/u/hossa95)\
**Post date:** [April 21, 2019, 9:14am UTC](https://forum.rasa.com/t/two-stage-fallback-unexpected-behaviour/8811/2 "2019-04-21T09:14:32Z")

</div>

@juste Help needed here

---

<div class="post-metadata">

**Author:** ![azizullah2017](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/azizullah2017/32/241_2.png) [@azizullah2017](https://forum.rasa.com/u/azizullah2017)\
**Post date:** [April 30, 2019, 7:31am UTC](https://forum.rasa.com/t/two-stage-fallback-unexpected-behaviour/8811/3 "2019-04-30T07:31:12Z")

</div>

can you share your stories and actions ?

---

<div class="post-metadata">

**Author:** ![hossa95](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hossa95/32/1766_2.png) [@hossa95](https://forum.rasa.com/u/hossa95)\
**Post date:** [April 30, 2019, 10:50pm UTC](https://forum.rasa.com/t/two-stage-fallback-unexpected-behaviour/8811/4 "2019-04-30T22:50:38Z")

</div>

i didn’t write any custom actions or stories for the two satge fall back policy … i just wanted to run it with the default messages … should I write stories or actions to make it work??

i followed the example in rasa-demo … they didn’t write stories for it… do you have any example or steps in how to make it work?

---

<div class="post-metadata">

**Author:** ![hossa95](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hossa95/32/1766_2.png) [@hossa95](https://forum.rasa.com/u/hossa95)\
**Post date:** [April 30, 2019, 11:02pm UTC](https://forum.rasa.com/t/two-stage-fallback-unexpected-behaviour/8811/5 "2019-04-30T23:02:53Z")

</div>

here is my stories:

```
##happy path 1
* greet
    - action_greet
* carSearch
    - carSearch_form
    - form{"name": "carSearch_form"}
    - form{"name": "null"}
    - action_carSearch
* bookAppointment
    - bookAppointment_form
    - form{"name": "bookAppointment_form"}
    - form{"name": "null"}
    - action_bookAppointment
* goodbye
    - action_goodbye

## happy path 2
* greet
    - action_greet
* bookAppointment
    - bookAppointment_form
    - form{"name": "bookAppointment_form"}
    - form{"name": "null"}
    - action_bookAppointment
* carSearch
    - carSearch_form
    - form{"name": "carSearch_form"}
    - form{"name": "null"}
    - action_carSearch
* goodbye
    - action_goodbye

## only bookAppointment
* bookAppointment
    - bookAppointment_form
    - form{"name": "bookAppointment_form"}
    - form{"name": "null"}
    - action_bookAppointment

## only greet
* greet
    - action_greet

## only carSearch
* carSearch
    - carSearch_form
    - form{"name": "carSearch_form"}
    - form{"name": "null"}
    - action_carSearch

## only goodbye
* goodbye
    - action_goodbye
```

---

<div class="post-metadata">

**Author:** ![azizullah2017](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/azizullah2017/32/241_2.png) [@azizullah2017](https://forum.rasa.com/u/azizullah2017)\
**Post date:** [May 2, 2019, 5:07am UTC](https://forum.rasa.com/t/two-stage-fallback-unexpected-behaviour/8811/6 "2019-05-02T05:07:28Z")

</div>

I just wanted to on your setup. If you possibly share the actions and some data. so I can try and test.

---

<div class="post-metadata">

**Author:** ![AllBecomesGood](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/allbecomesgood/32/2684_2.png) [@AllBecomesGood](https://forum.rasa.com/u/AllBecomesGood)\
**Post date:** [July 30, 2019, 7:50am UTC](https://forum.rasa.com/t/two-stage-fallback-unexpected-behaviour/8811/7 "2019-07-30T07:50:23Z")

</div>

@hossa95Have you adjusted domain.yml: utter\_ask\_rephrase:

- text: “Could you rephrase this please blabla some message?”

Not sure what’s happened to your yes answer path though
