Hi, I have two forms that I am using to collect information.
The forms are called my_form
and cc_form
. The my_form
is taking user input and has an action utter_ask_payment
. The user is meant to respond with 1
or 2
and this value will set to the payment_choice
slot.
In the rule Activate CC Form
I am using condition
to check if the value of payment_choice
is 1
or not. If it is, I want the cc_form
to start seamlessly. This is what I have been expecting to happen but it’s not working.
The payment_choice
slot is being set to 1
perfectly but the cc_form
is not starting. I would appreciate if anyone can correct my code. Also this is the rules.yml
file. I don’t have anything in stories.yml
file.
Specs:
- Windows 10
- Rasa Open Source
- Python 3.10
version: "3.1"
rules:
- rule: Activate My Form
steps:
- intent: take_policy
- action: my_form
- active_loop: my_form
- rule: Submit My Form
condition:
- active_loop: my_form
steps:
- action: my_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: action_search_customer_policy
- action: action_get_customer_policy
- slot_was_set:
- isPayable: true
- action: utter_ask_payment
- intent: inform
- rule: Activate CC Form
condition:
- slot_was_set:
- payment_choice: 1
steps:
- action: cc_form
- active_loop: cc_form
- rule: Submit CC Form
condition:
- active_loop: cc_form
steps:
- action: cc_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: action_make_payment