Action doesn't follow the rules or the story

I have two rule and one story

- rule: activate collection form
  conversation_start: true
  steps:
    - intent: greet
    - action: utter_replyGreetStart

- rule: activate collection form
  steps:
    - intent: greet
    - action: utter_replyGreet
    - action: collection_form
    - active_loop: collection_form
> -story: 3 times not repay
>       steps:
>         - action: collection_form
>         - active_loop: collection_form
>         - intent: replyNo
>         - action: utter_persuade1
>         - action: collection_form
>         - active_loop: collection_form
>         - intent: replyNo
>         - action: utter_persuade2
>         - action: collection_form
>         - active_loop: collection_form
>         - intent: replyNo
>         - action: utter_persuade3
>         - action: utter_goodbye

I except

- intent: greet
- action: utter_replyGreetStart
- intent: greet
- action: utter_replyGreet
- action: collection_form
- active_loop: collection_form
- intent: replyNo
- action: utter_persuade1
- action: collection_form
- active_loop: collection_form
- intent: replyNo
- action: utter_persuade2
- action: collection_form
- active_loop: collection_form
- intent: replyNo
- action: utter_persuade3
- action: utter_goodbye

but actually.

- intent: greet
- action: utter_replyGreetStart
- intent: greet
- action: utter_replyGreet
- action: collection_form
- active_loop: collection_form
- intent: replyNo
- action: utter_default

can you help me?

Hi @kyle_pjk can you share your collection_form from the domain file as well? It looks like you want to capture the number of times a person says and then condition the response based on the number of times they have replied no. If that’s the case you might want to consider handling that logic on the action server instead of in your stories.