# Issue with the Form Action

**URL:** <https://forum.rasa.com/t/issue-with-the-form-action/13160>\
**Category:** Rasa Open Source\
**Created:** [July 19, 2019, 7:17am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160 "2019-07-19T07:17:16Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raju](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Raju](https://forum.rasa.com/u/Raju)\
**Post date:** [July 19, 2019, 7:17am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/1 "2019-07-19T07:17:16Z")

</div>

Hi Team,

I am getting issue with Form Action, Once all the slots are filled and even after deactivating the current form every next conversation went to default\_fallback\_action. Can you please help with this abnormality of Rasa. Its only getting reset after triggering the action\_restart. Is there any way to continue the conversation on the same thread without restarting the entire thread. I have implement AllSlotReset() as well but still its not coming out of that Form Action.

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [July 21, 2019, 7:51am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/2 "2019-07-21T07:51:17Z")

</div>

Can you show me what your stories look like?

---

<div class="post-metadata">

**Author:** ![Raju](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Raju](https://forum.rasa.com/u/Raju)\
**Post date:** [July 22, 2019, 8:59am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/3 "2019-07-22T08:59:03Z")

</div>

## Basic FLow

- greet
  - utter\_greet

- request\_onboard
  - onboard\_form
  - slot{“requested\_slot”:“migration”}

- affirm
  - onboard\_form
  - slot{“migration”:true}
  - slot{“requested\_slot”:“project\_name”}

- inform{“project\_name”:“ESUVTYUI”}
  - onboard\_form
  - slot{“project\_name”:“ESUVTYUI”}
  - slot{“requested\_slot”:“id”}

- inform{“id”:“henry”}
  - onboard\_form
  - slot{“id”:“henry”}
  - slot{“requested\_slot”:“domain”}

- inform{“domain”:“SALES”}
  - onboard\_form
  - slot{“domain”:“SALES”}
  - slot{“requested\_slot”:“feedback”}

- inform
  - onboard\_form
  - slot{“feedback”:“Its good”}
  - slot{“requested\_slot”:null}

- thankyou
  - utter\_noworries

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [July 22, 2019, 11:57am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/4 "2019-07-22T11:57:20Z")

</div>

please take a look at the forms docs page, this is not the correct story format. [Forms](https://rasa.com/docs/rasa/core/forms/#id1)

---

<div class="post-metadata">

**Author:** ![Raju](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Raju](https://forum.rasa.com/u/Raju)\
**Post date:** [July 22, 2019, 2:14pm UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/5 "2019-07-22T14:14:04Z")

</div>

Hi Akelad,

Thanks for reviewing the story. I have removed all other stories and implement the simple one. It’s kind of improved a lot as of now, but once all the slots are filled and after completing the on-going conversation if I initiate the new conversation on the same thread its going to default fallback action. Can you please suggest how can i avoid this. PFB Story as of now.

## on-board form Story

- greet
  - utter\_greet

- request\_onboard
  - onboard\_form
  - form{“name”: “onboard\_form”}
  - form{“name”: null}
  - utter\_slots\_values

Many Thanks for your suggestion.

---

<div class="post-metadata">

**Author:** ![tyd](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tyd/32/3030_2.png) [@tyd](https://forum.rasa.com/u/tyd)\
**Post date:** [July 22, 2019, 3:44pm UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/6 "2019-07-22T15:44:05Z")

</div>

@Raju Can you share your debug log for Rasa Core?

---

<div class="post-metadata">

**Author:** ![Raju](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Raju](https://forum.rasa.com/u/Raju)\
**Post date:** [July 23, 2019, 9:02am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/7 "2019-07-23T09:02:36Z")

</div>

@tyd Thanks for your response, but I can’t see anything captured under rasa\_core.log file. Is there any way we can track log in rasa\_core.log file? JFYI , As of now I am not using the Enterprise edition.

I guess there are certain issues with Form Action. After all the slots are filled it’s not closing the active form. Do we need to use action\_deactivate\_form to get rid of active form?

---

<div class="post-metadata">

**Author:** ![Raju](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Raju](https://forum.rasa.com/u/Raju)\
**Post date:** [July 23, 2019, 9:57am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/8 "2019-07-23T09:57:34Z")

</div>

Once all the slots are filled and uttering the slot values , if again I utter greet, why its considering the next action as action\_default\_fallback?

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [July 23, 2019, 11:30am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/9 "2019-07-23T11:30:27Z")

</div>

I guess, your story is still incorrect. Please try

```auto
## on-board form Story
* greet
  * utter_greet
* request_onboard
  * onboard_form
  * form{“name”: “onboard_form”}

```

---

<div class="post-metadata">

**Author:** ![Raju](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Raju](https://forum.rasa.com/u/Raju)\
**Post date:** [July 23, 2019, 11:46am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/10 "2019-07-23T11:46:48Z")

</div>

It’s not able to recognize the above story, even greet is failing and redirected to action\_default\_fallback. Can you provide me some sample stories apart from formbot wherein post form action, its able to recognize the general conversation.

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [July 23, 2019, 12:50pm UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/11 "2019-07-23T12:50:01Z")

</div>

[Sara](https://github.com/RasaHQ/rasa-demo), our Rasa demo bot, is using forms. You can find an example story here: [rasa-demo/closetheloop.md at master · RasaHQ/rasa-demo · GitHub](https://github.com/RasaHQ/rasa-demo/blob/master/data/core/closetheloop.md)

Can you maybe share your `config.yml` file and your complete story file? Then I can have a closer look. Thanks.

---

<div class="post-metadata">

**Author:** ![Raju](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Raju](https://forum.rasa.com/u/Raju)\
**Post date:** [July 24, 2019, 9:29am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/12 "2019-07-24T09:29:32Z")

</div>

# Configuration for Rasa NLU.

# [Components](https://rasa.com/docs/rasa/nlu/components/)

language: en pipeline: supervised\_embeddings

# Configuration for Rasa Core.

# [Policies](https://rasa.com/docs/rasa/core/policies/)

policies:

- name: MemoizationPolicy
- name: KerasPolicy
- name: MappingPolicy
- name: FormPolicy
- name: “FallbackPolicy” nlu\_threshold: 0.4 core\_threshold: 0.3 fallback\_action\_name: “action\_default\_fallback”

## onboard form Story

- greet
  - utter\_greet

- request\_onboard
  - onboard\_form
  - form{“name”: “onboard\_form”}
  - form{“name”: null}
  - utter\_slots\_values

## Greet Story

- greet
  - utter\_greet

---

<div class="post-metadata">

**Author:** ![Raju](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Raju](https://forum.rasa.com/u/Raju)\
**Post date:** [July 24, 2019, 2:07pm UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/13 "2019-07-24T14:07:41Z")

</div>

Hi @Tanja,

Can you please elaborate how all the slots are reset to none once all the slots are filled and ready to take the next new conversation in sara?

- form{“name”: null} --\> I guess it’s not serving that purpose.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 24, 2019, 3:51pm UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/14 "2019-07-24T15:51:48Z")

</div>

Hey there @Raju. I think this unfortunately might be a rasa x bug. To be clear, did you create this story via interactive learning from within the Rasa X UI?

---

<div class="post-metadata">

**Author:** ![Raju](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Raju](https://forum.rasa.com/u/Raju)\
**Post date:** [July 25, 2019, 7:10am UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/15 "2019-07-25T07:10:02Z")

</div>

Hi @erohmensing,

I tried earlier creating the stories via interactive learning using Rasa X UI, later I was suggested by one of the Rasa team member to follow the standard template . So as of now all stories are created as part of standard template only.

When can we expect that bug to be fixed?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 26, 2019, 8:38pm UTC](https://forum.rasa.com/t/issue-with-the-form-action/13160/16 "2019-07-26T20:38:28Z")

</div>

We are working on it! It will not make the next release as we have focused a lot on UI fixes but will be in a future release, we still have to debug what exactly is going wrong. In the meantime you can still create stories with forms via interactive learning in the command line.
