Reset the form and loop again

Hello,

I am trying to figure out how to reset the form and loop again if the user denies. Or just reply goodbye if he confirms. I tried creating two stories, but it doesnt work. Any idea how can I handle it?

- story: booking_confirmed
  steps:

    - intent: greet
    - action: utter_greet
    - intent: introduction
      entities:
        - PERSON
    - action: utter_PERSON
    - intent: booking_request
    - action: booking_form
    - active_loop: booking_form
    - slot_was_set:
      - requested_slot: DATE
    - slot_was_set:
      - requested_slot: n_ppl
    - slot_was_set:
      - requested_slot: breakfast
    - slot_was_set:
      - requested_slot: payment
    - active_loop: null
    - action: utter_confirmation
    - intent: confirmation
    - action: utter_goodbye


- story: booking_denied
  steps:

    - intent: greet
    - action: utter_greet
    - intent: introduction
      entities:
        - PERSON
    - action: utter_PERSON
    - intent: booking_request
    - action: booking_form
    - active_loop: booking_form
    - slot_was_set:
      - requested_slot: DATE
    - slot_was_set:
      - requested_slot: n_ppl
    - slot_was_set:
      - requested_slot: breakfast
    - slot_was_set:
      - requested_slot: payment
    - active_loop: null
    - action: utter_confirmation
    - intent: denial
    - action: booking_form
    - active_loop: booking_form
    - slot_was_set:
      - requested_slot: DATE
    - slot_was_set:
      - requested_slot: n_ppl
    - slot_was_set:
      - requested_slot: breakfast
    - slot_was_set:
      - requested_slot: payment

rules:
  - rule: Greet user
    steps:
      - intent: greet
      - action: utter_greet

  - rule: introduce user
    steps:
      - intent: introduction
      - action: utter_PERSON

  - rule: activate booking_form
    steps:
      - intent: booking_request           # intent that triggers the form activation
      - action: booking_form              # run the form
      - active_loop: booking_form         # this form is active

  - rule: submit form
    condition:
      - active_loop: booking_form         # this form must be active
    steps:
      - action: booking_form
      - active_loop: null                 # the form is no longer active, because it has been filled
      - action: utter_confirmation        # action to take after the form is complete

  - rule: confirmation
    steps:
      - intent: confirmation
      - action: utter_goodbye

  - rule: activate booking_form
    steps:
      - intent: denial
      - action: booking_form              # run the form
      - active_loop: booking_form

    #   Ask the user to rephrase whenever they send a message with low NLU confidence
  - rule: rephrase
    steps:
      - intent: nlu_fallback
      - action: utter_rephrase
1 Like