File size: 5,078 Bytes
cf11dad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
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 ---- --- --- --- --- --- --- --- --
  ##
  ## --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ----