flow.yml:
choose:
description: asks user to choose from the given options
steps:
- collect: user_choice
ask_before_filling: true
next:
- if: slots.user_choice = "option_1"
then:
- action: utter_option_1
- link: confirmation
- else:
- action: utter_option_2
- link: confirmation
confirmation:
description: to confirm with user for booking appointment
steps:
- collect: final_confirmation
ask_before_filling: true
next:
- if: not slots.final_confirmation
then:
- action: utter_appointment_cancelled
- link: anything_else
- else:
- collect: user_place
- collect: user_pincode
rejections:
- if: not (slots.user_pincode matches "^\d{6}$")
utter: utter_invalid
next: appointment_successful
- action: utter_appointment_booked
id: appointment_successful
- link: anything_else
anything_else:
description: This flow asks for anything else to help with.
if: False
steps:
- action: utter_anything_else
next: END
domain.yml:
utter_anything_else:
- text: "is there anythign else to do?"
- In anyway I try to make this flow stop at the end, it is not stopping rather repeating the utterances of the one before the previous flow again and again.
The issue is as shown in the picture beloe:
If anything else is required, let me know to share. Can anybody explain why the flow is not stopping?
Any correcting replies are appreciated.