I have been struggling with something that is supposed to be simple, but I am stuck here. I have a form that is collecting some data from the customer. My problem is that, during the form filling, there is a time that a question is asked which the response can be an affirm or deny. But the same intent triggers another slot and it is filled as well. I tried to avoid the problem by establishing a request_slot condition, but it did not work.
rules:
- rule: Activate health insurance form
steps:
- intent: greet
- action: utter_greet
- action: health_insurance_form
- active_loop: health_insurance_form
- rule: Submit form
condition:
- active_loop: health_insurance_form
steps:
- slot_was_set:
- requested_slot: null
- action: health_insurance_form
- active_loop: null
- action: action_validate_and_clean_data
- action: utter_confirm_data
- action: action_save_user_datatype or paste code here
Slots:
cnpj:
type: text
mappings:
- type: from_intent
intent: affirm
value: Yes
- type: from_intent
intent: deny
value: No
conditions:
- active_loop: health_insurance_form
requested_slot: cnpj
confirmation:
type: text
influence_conversation: false
mappings:
- type: from_intent
intent: affirm
value: Yes
- type: from_intent
intent: deny
value: No
conditions:
- active_loop: health_insurance_form
requested_slot: confirmation