# Help me change rules to stories

**URL:** <https://forum.rasa.com/t/help-me-change-rules-to-stories/54369>\
**Category:** Rasa Open Source\
**Created:** [July 18, 2022, 6:54pm UTC](https://forum.rasa.com/t/help-me-change-rules-to-stories/54369 "2022-07-18T18:54:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vapdev](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vapdev/32/18469_2.png) [@vapdev](https://forum.rasa.com/u/vapdev)\
**Post date:** [July 18, 2022, 6:54pm UTC](https://forum.rasa.com/t/help-me-change-rules-to-stories/54369/1 "2022-07-18T18:54:43Z")

</div>

Hello, I have some rules, that i think should be stories, because I cannot add more actions to them. The problem is they dont work properly as stories, because of the conditions, at least I did not find a good way. If you guys could help me change this rules to stories, i would really appreciate it.

```auto
version: "3.1"

rules:

- rule: Say goodbye anytime the user says goodbye
  condition:
  - slot_was_set:
    - bot_active: True
  steps:
  - intent: goodbye
  - action: utter_goodbye

- rule: greet - activate profile form
  condition:
  - slot_was_set:
    - bot_active: True
    - platform_verified: False
    - crisp_verified: False
  steps:
  - intent: greet
  - action: utter_greet
  - action: utter_ask_info
  - action: profile_form
  - active_loop: profile_form

- rule: Submit profile form and do actions
  condition:
  # Condition that form is active.
  - slot_was_set:
    - crisp_verified: False
  - active_loop: profile_form
  steps:
  # Form is deactivated
  - action: profile_form
  - active_loop: null
  - slot_was_set:
    - requested_slot: null
  # The actions we want to run when the form is submitted.
  - action: action_create_profile
  - action: action_deactivate_bot
  - action: action_resolve_conversation

- rule: talk to human
  condition:
  - slot_was_set:
    - bot_active: True
  steps:
  - intent: talk_to_human
  - action: utter_talk_to_human
  - action: action_deactivate_bot
  - action: action_resolve_conversation

- rule: out-of-scope
  condition:
    - slot_was_set:
      - bot_active: True
  steps:
  - intent: out_of_scope
  - action: utter_out_of_scope

# - rule: Ask the user to rephrase whenever they send a message with low NLU confidence
# condition:
# - slot_was_set:
# - bot_active: True
# steps:
# - intent: nlu_fallback
# - action: utter_please_rephrase

- rule: greet known user
  condition:
    - slot_was_set:
      - crisp_verified: True
      - platform_verified: True
      - bot_active: True
  steps:
  - intent: greet
  - action: utter_greet_known
  - action: utter_how_can_i_help

- rule: greet known crisp user without platform
  condition:
    - slot_was_set:
      - crisp_verified: True
      - bot_active: True
      - platform_verified: False
  steps:
  - intent: greet
  - action: utter_greet_known
  - action: utter_ask_info
  - action: profile_form
  - active_loop: profile_form

- rule: Submit profile form and do actions / CRISP VERIFIED
  condition:
    - slot_was_set:
      - crisp_verified: True
    - active_loop: profile_form
  steps:
  - action: profile_form
  - active_loop: null
  - slot_was_set:
    - requested_slot: null
  - action: action_create_profile
  - action: action_deactivate_bot
  - action: action_resolve_conversation

# - rule: Handle the option anytime the user gives it
# condition:
# - slot_was_set:
# - bot_active: True
# steps:
# - intent: give_option
# - action: action_handle_options

```

I have this bot\_active slot, that needs to be true, in order to respond.

I tried the stories like these:

```auto
version: "3.1"

stories:

  - story: greet activate profile form
    steps:
    - slot_was_set:
      - bot_active: true
    - slot_was_set:
      - platform_verified: False
    - slot_was_set:
      - crisp_verified: False
    - intent: greet
    - action: utter_greet
    - action: utter_ask_info
    - action: profile_form
    - active_loop: profile_form

  - story: greet known user
    steps:
      - slot_was_set:
        - crisp_verified: true
      - slot_was_set:
        - platform_verified: true
      - slot_was_set:
        - bot_active: true
      - intent: greet
      - action: utter_greet_known
      - action: utter_how_can_i_help

  - story: greet known crisp user without platform
    steps:
      - slot_was_set:
        - crisp_verified: true
      - slot_was_set:
        - bot_active: true
      - slot_was_set:
        - platform_verified: false
      - intent: greet
      - action: utter_greet_known
      - action: utter_ask_info
      - action: profile_form
      - active_loop: profile_form

```

But unfortunalety it does not respect the slots specifications, for example, when crisp\_verified, platform\_verified, and bot\_active are true, it should trigger story greet known user. but it is actually triggering greet known crisp user without platform
