| version: "2.0" | |
| rules: | |
| ## --- --- --- --- --- --- --- --- --- --- --- English Rules --- --- --- --- --- --- --- --- | |
| #this rule applies at the beginning of the conversation and not later. | |
| - rule: Say `hello` when the user starts a conversation with intent `greet` | |
| conversation_start: true | |
| steps: | |
| - intent: greet | |
| - action: utter_greet | |
| wait_for_user_input: false | |
| - rule: Say goodbye anytime the user says goodbye | |
| steps: | |
| - intent: goodbye | |
| - action: utter_goodbye | |
| wait_for_user_input: false | |
| - rule: Someone thanks you | |
| steps: | |
| - intent: thank_you | |
| - action: utter_thank_you_response | |
| - rule: faq | |
| steps: | |
| - intent: faq | |
| - action: utter_faq | |
| wait_for_user_input: false | |
| - rule: chitchat | |
| steps: | |
| - intent: chitchat | |
| - action: utter_chitchat | |
| wait_for_user_input: false | |
| - rule: out of scope | |
| steps: | |
| - intent: outofscope | |
| - action: utter_outofscope | |
| wait_for_user_input: false | |
| ## --- --- --- --- --- --- --- --- --- --- --- Luganda Rules --- --- --- --- --- --- --- --- | |
| - rule: Say `hello` in luganda when the user starts a conversation with intent `greet` | |
| conversation_start: true | |
| steps: | |
| - intent: greet_lug | |
| - action: utter_greet_lug | |
| wait_for_user_input: false | |
| - rule: Say goodbye anytime the user says goodbye in luganda | |
| steps: | |
| - intent: goodbye_lug | |
| - action: utter_goodbye_luganda | |
| wait_for_user_input: false | |
| - rule: Someone thanks you in luganda | |
| steps: | |
| - intent: thank_you_lug | |
| - action: utter_thank_you_response_lug | |
| - rule: faq_lug in luganda | |
| steps: | |
| - intent: faq_lug | |
| - action: utter_faq_lug | |
| wait_for_user_input: false | |
| - rule: chitchat_lug in luganda | |
| steps: | |
| - intent: chitchat_lug | |
| - action: utter_chitchat_lug | |
| wait_for_user_input: false | |
| - rule: out of scope in luganda | |
| steps: | |
| - intent: outofscope_lug | |
| - action: utter_outofscope_lug | |
| wait_for_user_input: false | |
| ## -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
| ## rules concerning the contact us form | |
| # | |
| # | |
| # - rule: Activate, contact us form | |
| # condition: | |
| # - active_loop: null | |
| # steps: | |
| # - intent: contact_us | |
| # - action: contact_us_form | |
| # - active_loop: contact_us_form | |
| # - rule: Deactivate contact us form | |
| # condition: | |
| # - active_loop: contact_us_form | |
| # steps: | |
| # - action: contact_us_form | |
| # - active_loop: null | |
| # - slot_was_set: | |
| # - requested_slot: null | |
| # - action: action_submit_contact_us_form | |
| # | |
| # | |
| ## End of contact us form rules | |
| ## -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
| ##ENGLISH FORM RULES | |
| ## -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
| ## Rules concerning the simple info form | |
| # | |
| # | |
| # - rule: activating simple info the form | |
| # steps: | |
| # - intent: inform_not_feeling_well | |
| # # - action: utter_greet ## | |
| # # - action: utter_greet_follow_up | |
| # - action: info_form | |
| # - active_loop: info_form | |
| # # wait_for_user_input: false | |
| # - rule: Submit info form | |
| # condition: | |
| # - active_loop: info_form | |
| # steps: | |
| # - action: info_form | |
| # - active_loop: null | |
| # - slot_was_set: | |
| # - requested_slot: null | |
| # - action: action_save_data | |
| # ## rule for handling interruptions | |
| # - rule: interrupt simple info form | |
| # condition: | |
| # # Condition that form is active. | |
| # - active_loop: info_form | |
| # steps: | |
| # # This unhappy path handles the case of an intent `bot_challenge`. | |
| # - intent: chitchat | |
| # - action: utter_chitchat | |
| # # Return to form after handling the `bot_challenge` intent | |
| # - action: info_form | |
| # - active_loop: info_form | |
| # | |
| # | |
| ## End of rules concerning the simple info form. | |
| ## --- --- --- -- -- --- ---- --- --- --- --- --- --- --- --- ----- --- --- --- ----- | |
| ## Form rules for Luganda | |
| ## --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---- | |
| # - rule: activating the luganda form | |
| # steps: | |
| # - intent: greet_lug | |
| # - action: utter_greet_lug ## | |
| # - action: utter_greet_follow_up_lug | |
| # - action: info_lug_form | |
| # - active_loop: info_lug_form | |
| # wait_for_user_input: false | |
| # - rule: Submit luganda form | |
| # condition: | |
| # - active_loop: info_lug_form | |
| # steps: | |
| # - action: info_lug_form | |
| # - active_loop: null | |
| # - slot_was_set: | |
| # - requested_slot: null | |
| # - action: action_save_data_luganda | |
| # - rule: interrupt luganda form | |
| # condition: | |
| # # Condition that form is active. | |
| # - active_loop: info_lug_form | |
| # steps: | |
| # # This unhappy path handles the case of an intent `bot_challenge`. | |
| # - intent: chitchat_lug | |
| # - action: utter_chitchat_lug | |
| # # Return to form after handling the `bot_challenge` intent | |
| # - action: info_lug_form | |
| # - active_loop: info_lug_form | |
| ## --- --- --- -- -- --- End of Form rules for Luganda ---- --- --- --- --- --- --- --- -- | |
| ## | |
| ## --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---- | |