# Rasa not following the rules

**URL:** <https://forum.rasa.com/t/rasa-not-following-the-rules/42728>\
**Category:** Rasa Open Source\
**Created:** [April 21, 2021, 7:20pm UTC](https://forum.rasa.com/t/rasa-not-following-the-rules/42728 "2021-04-21T19:20:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadiak](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@fadiak](https://forum.rasa.com/u/fadiak)\
**Post date:** [April 21, 2021, 7:20pm UTC](https://forum.rasa.com/t/rasa-not-following-the-rules/42728/1 "2021-04-21T19:20:15Z")

</div>

I am confused on how the rules work. Here are two cases where I get unexpected results:

```
- rule: Custom action sets irrelevant slot for the rule, then activate form
  steps:
  - action: some_action ## Custom action setting a slot that is not relevant for this rule
  - slot_was_set:
    - irrelevant_slot: True ## Problem 1: The rest of the rule is ignored without specifying this irrelevant slot.
  - action: utter_something1
  - action: ask_data_form
  - active_loop: ask_data_form

- rule: Submit form
  condition:
  - active_loop: ask_data_form
  steps:
  - action: ask_data_form
  - slot_was_set:
    - requested_slot: null
  - active_loop: null
  - action: process_data ## Problem 2: fallback predicted :(

```

How can I resolve these problems?

---

<div class="post-metadata">

**Author:** ![YuaNWA](https://avatars.discourse-cdn.com/v4/letter/y/ce73a5/32.png) [@YuaNWA](https://forum.rasa.com/u/YuaNWA)\
**Post date:** [April 22, 2021, 3:58am UTC](https://forum.rasa.com/t/rasa-not-following-the-rules/42728/2 "2021-04-22T03:58:40Z")

</div>

Does your irrelevant\_slot have influence\_conversation: true?

---

<div class="post-metadata">

**Author:** ![fadiak](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@fadiak](https://forum.rasa.com/u/fadiak)\
**Post date:** [April 22, 2021, 4:17am UTC](https://forum.rasa.com/t/rasa-not-following-the-rules/42728/3 "2021-04-22T04:17:43Z")

</div>

Yes, but I don’t want it to have any influence for this rule. I have other rules that depend on the slot but for this rule it is irrelevant.

---

<div class="post-metadata">

**Author:** ![YuaNWA](https://avatars.discourse-cdn.com/v4/letter/y/ce73a5/32.png) [@YuaNWA](https://forum.rasa.com/u/YuaNWA)\
**Post date:** [April 22, 2021, 4:20am UTC](https://forum.rasa.com/t/rasa-not-following-the-rules/42728/4 "2021-04-22T04:20:00Z")

</div>

If you have influence\_conversation: true and you set it in the action “some\_action” then you need to have that line in the story.

---

<div class="post-metadata">

**Author:** ![fadiak](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@fadiak](https://forum.rasa.com/u/fadiak)\
**Post date:** [April 22, 2021, 4:43am UTC](https://forum.rasa.com/t/rasa-not-following-the-rules/42728/5 "2021-04-22T04:43:54Z")

</div>

Ok, so Problem 1 can be solved by creating two rules one for true and another for false. Not a clean solution, but fine.

There is still Problem 2.
