Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slot_was_set doesn't work as expected for categorical slots #8743

Closed
behnam354 opened this issue May 25, 2021 · 4 comments
Closed

slot_was_set doesn't work as expected for categorical slots #8743

behnam354 opened this issue May 25, 2021 · 4 comments
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@behnam354
Copy link
Contributor

Rasa version: 2.6.0

Python version: 3.6.8

Operating system (windows, osx, ...): ubuntu 18.04

Issue:

When defining a rule with slot_was_set conditioned on a categorical slot .. the rule is applied when slot is not null and don't really care about the category values. For example if we create a categorical slot say session_complete .. then Rasa 2.6.0 complains about the two following rules conflicting with one another:

## in rule.yml
# submit form if success
  - rule: submit my form
    condition:
    - active_loop: my_form
    steps:
    - action: my_form
    - active_loop: null
    - slot_was_set:
      - requested_slot: null
    - slot_was_set:
      - session_complete: success
    - action: action_submit_my_form


  - rule: deactivate my form and restart session if failure
    condition:
    - active_loop: my_form
    steps:
    - action: my_form
    - active_loop: null
    - slot_was_set:
      - requested_slot: null
    - slot_was_set:
      - session_complete: failure ## changing this to null resolves the conflict
    - action: action_restart

Content of domain file (domain.yml) (if relevant):

slots:
  session_complete:
    type: categorical
    initial_value: null
    auto_fill: true
    influence_conversation: true
    values:
      - null
      - success
      - failure
@behnam354 behnam354 added area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. labels May 25, 2021
@sara-tagger
Copy link
Collaborator

Thanks for the issue, @koernerfelicia will get back to you about it soon!

You may find help in the docs and the forum, too 🤗

@koernerfelicia
Copy link
Contributor

Hi @behnam354, I think this is related to a bug we fixed in 2.6.2. Could you please update your rasa version and let me know whether the problem persists?

@behnam354
Copy link
Contributor Author

@koernerfelicia Yes that's fixed in rasa 2.6.2. Thanks!

@indam23 indam23 closed this as completed May 27, 2021
@vmandalapu1994
Copy link

vmandalapu1994 commented Sep 8, 2023

I think this bug still not fixed...With rasa:3.6.2 also I see this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

5 participants