Skip to content

Fallback and rules does not works in case of dynamic form implementation if form is active #7557

Closed
@kaustuk

Description

Rasa version: 2.1.3

Rasa SDK version (if used & relevant): 2.1.2

Rasa X version (if used & relevant): 0.34.0

Python version: 3.7.9

Operating system (windows, osx, ...): Darwin-19.6.0-x86_64-i386-64bit

Issue:

So basically the issue is if we have Fallback and rules for some intent in bot and we have implemented the a dynamic form (i.e overwrite required_slots method and adding some required slot base on some condition met) in this case if the fallback/rules is triggered when form is active then this rules and fallback action/utterance will not be triggered.
P.S: Also attaching the tar of the bot which can help in reproduce it rasa_init_bot.tar.gz

Step to reproduce the error:

  1. Download above tar in local
  2. Run rasa train
  3. Wait for model is trained. After model is trained we will explore 2 cases

Case 1: Fail case if dynamic form is implemented

  1. Bring rasa action server: rasa run actions
  2. Bring rasa shell: rasa shell
  3. Interact with bot as follow screenshot:

Screenshot 2020-12-15 at 21 32 24

  1. Here the action action_test_1 is not being triggered

Case 2: Normal case without dynamic form implemented

  1. comment the required_slots function in actions/actions.py file
  2. Bring rasa action server up again: rasa run actions
  3. Bring rasa shell: rasa shell
  4. Interact with bot as follow screenshot:

Screenshot 2020-12-15 at 21 35 17

  1. Here the action action_test_1 being triggered

Metadata

Assignees

Labels

area:rasa-oss 🎡Anything related to the open source Rasa frameworktype:bug 🐛Inconsistencies or issues which will cause an issue or problem for users or implementors.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions