# Cannot handle unhappy path with rasa interactive learning

**URL:** <https://forum.rasa.com/t/cannot-handle-unhappy-path-with-rasa-interactive-learning/14087>\
**Category:** Rasa Open Source\
**Created:** [August 8, 2019, 9:26am UTC](https://forum.rasa.com/t/cannot-handle-unhappy-path-with-rasa-interactive-learning/14087 "2019-08-08T09:26:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TQuy](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tquy/32/3893_2.png) [@TQuy](https://forum.rasa.com/u/TQuy)\
**Post date:** [August 8, 2019, 9:26am UTC](https://forum.rasa.com/t/cannot-handle-unhappy-path-with-rasa-interactive-learning/14087/1 "2019-08-08T09:26:56Z")

</div>

I want to handle unhappy path by using interactive learning to write stories about forms. However, it doesn’t work as in [Forms](https://rasa.com/docs/rasa/core/forms/#handling-unhappy-paths). [domain.yml](https://forum.rasa.com/uploads/short-url/aOkIMIlVpldsDd031PHeDFXseZe.yml) (6.1 KB) [stories.md](https://forum.rasa.com/uploads/short-url/qNF9brUACrpLFLvXEcKtEhkstUE.md) (1.7 KB)

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [August 8, 2019, 11:39am UTC](https://forum.rasa.com/t/cannot-handle-unhappy-path-with-rasa-interactive-learning/14087/2 "2019-08-08T11:39:27Z")

</div>

What’s the expected behavior and what’s the actual behavior? Can you please point out where it went wrong?

---

<div class="post-metadata">

**Author:** ![TQuy](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tquy/32/3893_2.png) [@TQuy](https://forum.rasa.com/u/TQuy)\
**Post date:** [August 9, 2019, 2:21am UTC](https://forum.rasa.com/t/cannot-handle-unhappy-path-with-rasa-interactive-learning/14087/3 "2019-08-09T02:21:17Z")

</div>

I want to handle stories just like this

## chitchat

- request\_restaurant
  - restaurant\_form
  - form{“name”: “restaurant\_form”}

- stop
  - utter\_ask\_continue

- deny
  - action\_deactivate\_form
  - form{“name”: null}

I tried to write the stories both manually and using interactive learning but I can’t quit the form once it started in neither way, even though the deny intent is recognize correctly

---

<div class="post-metadata">

**Author:** ![TQuy](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tquy/32/3893_2.png) [@TQuy](https://forum.rasa.com/u/TQuy)\
**Post date:** [August 9, 2019, 8:56am UTC](https://forum.rasa.com/t/cannot-handle-unhappy-path-with-rasa-interactive-learning/14087/4 "2019-08-09T08:56:01Z")

</div>

there is an advice that I should set requested\_slot to categorical to handle unhappy path

```
slots:
  fee:
    auto_fill: false
    type: unfeaturized
  goods_value:
    auto_fill: false
    type: unfeaturized
  ids:
    auto_fill: false
    type: unfeaturized
  local_address:
    auto_fill: false
    type: unfeaturized
  order_code:
    auto_fill: false
    type: unfeaturized
  receive_address:
    auto_fill: false
    type: unfeaturized
  send_address:
    auto_fill: false
    type: unfeaturized
  transportation_type:
    auto_fill: false
    type: unfeaturized
  weight:
    auto_fill: false
    type: unfeaturized
  requested_slot:
    type: categorical

```

However, there are errors when I train rasa again

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/b/b4ae88be93696f978e560257e2ceac72969fe259.png)

And I still cannot quit the form with deny intent [stories.md](https://forum.rasa.com/uploads/short-url/648h3NUHN699DYtK18QbVWGE43g.md) (1.9 KB) [domain.yml](https://forum.rasa.com/uploads/short-url/wf3EwsRt4qTz38TIILb7zN4R7cL.yml) (5.8 KB)

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [August 12, 2019, 6:17pm UTC](https://forum.rasa.com/t/cannot-handle-unhappy-path-with-rasa-interactive-learning/14087/5 "2019-08-12T18:17:24Z")

</div>

@TQuy Could try removing the `requested_slot` from your domain file or making it at least `unfeaturized`? How did you get this domain file? Exported by interactive learning?

---

<div class="post-metadata">

**Author:** ![TQuy](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tquy/32/3893_2.png) [@TQuy](https://forum.rasa.com/u/TQuy)\
**Post date:** [August 13, 2019, 2:17am UTC](https://forum.rasa.com/t/cannot-handle-unhappy-path-with-rasa-interactive-learning/14087/6 "2019-08-13T02:17:56Z")

</div>

> [@Tobias\_Wochinger](#):
>
> @TQuy Could try removing the `requested_slot` from your domain file or making it at least `unfeaturized` ? How did you get this domain file? Exported by interactive learning?

Thank you but it was solved here [Cannot handle unhappy path with form - #5 by JulianGerhard](http://forum.rasa.com/t/cannot-handle-unhappy-path-with-form/14210/5)

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [August 13, 2019, 8:16am UTC](https://forum.rasa.com/t/cannot-handle-unhappy-path-with-rasa-interactive-learning/14087/7 "2019-08-13T08:16:53Z")

</div>

great!
