-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.yml
332 lines (332 loc) · 13.3 KB
/
domain.yml
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
version: '2.0'
config:
store_entities_as_slots: true
session_config:
session_expiration_time: 120
carry_over_slots_to_new_session: true
intents:
- nlu_fallback:
use_entities: true
- chitchat:
use_entities: true
- chitchat_options:
use_entities: true
- faq:
use_entities: true
- faq_options:
use_entities: true
- greet:
use_entities: true
- goodbye:
use_entities: true
- affirm:
use_entities: true
- deny:
use_entities: true
- mood_great:
use_entities: true
- mood_unhappy:
use_entities: true
- usage_cases:
use_entities: true
- coronavirus_assessment:
use_entities: true
- stop_form:
use_entities: true
- coronavirus_information:
use_entities: true
- coronavirus_statistics:
use_entities: true
- coronavirus_guidance:
use_entities: true
- coronavirus_symptoms:
use_entities: true
- coronavirus_healthcare:
use_entities: true
- coronavirus_vaccine:
use_entities: true
entities:
- affirmative
- negative
- happy
- sad
- usage
- coronavirus
- assessment
- stop
- information
- statistics
- guidance
- symptoms
- healthcare
- quarantine
- vaccine
slots:
1_is_vaccinated:
type: rasa.shared.core.slots.BooleanSlot
initial_value: null
auto_fill: true
influence_conversation: true
2_vaccine_brand:
type: rasa.shared.core.slots.CategoricalSlot
initial_value: null
auto_fill: true
influence_conversation: true
values:
- covaxin
- covishield
- sputnik
- other
- none
3_num_doses:
type: rasa.shared.core.slots.CategoricalSlot
initial_value: null
auto_fill: true
influence_conversation: true
values:
- '0'
- '1'
- '2'
4_past_infection:
type: rasa.shared.core.slots.BooleanSlot
initial_value: null
auto_fill: true
influence_conversation: true
5_current_symptoms:
type: rasa.shared.core.slots.BooleanSlot
initial_value: null
auto_fill: true
influence_conversation: true
6_preexisting_conditions:
type: rasa.shared.core.slots.BooleanSlot
initial_value: null
auto_fill: true
influence_conversation: true
7_travel_interstate:
type: rasa.shared.core.slots.BooleanSlot
initial_value: null
auto_fill: true
influence_conversation: true
requested_slot:
type: rasa.shared.core.slots.CategoricalSlot
initial_value: null
auto_fill: true
influence_conversation: true
values:
- 1_is_vaccinated
- 2_vaccine_brand
- 3_num_doses
- 4_past_infection
- 5_current_symptoms
- 6_preexisting_conditions
- 7_travel_interstate
responses:
utter_chitchat_options:
- quick_replies:
- payload: What is your name?
title: Your Name
- payload: What's the weather like today?
title: Weather
text: I can also make some small talk. What would you like to know?
utter_chitchat:
- text: say default
utter_chitchat/ask_name:
- text: My name is Cova, short for COVID-19 Assistant.
- text: I am COVID-19 Assistant, but sometimes I go by Cova.
- text: You can call me Cova, if you prefer it over COVID-19 Assistant.
utter_chitchat/ask_weather:
- text: Today, it is going to rain like cats and dogs, not good for sunbathing. :(
- text: Today, it is going to be mildy cloudy, you might just get a sneak peek at the Sun. :)
- text: Today, it is going to be sunny, and you can expect the temperatures to soar. :(
utter_faq_options:
- quick_replies:
- payload: What is COVID-19?
title: COVID-19 disease
- payload: How do you get infected by COVID-19?
title: COVID-19 infection
text: 'Here are some of the most frequently asked COVID-19 questions:'
utter_faq:
- text: say default
utter_faq/ask_covid_details:
- text: Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus. Most people who fall sick with COVID-19 will experience mild to moderate symptoms and recover without special treatment.
utter_faq/ask_covid_infection:
- text: The virus that causes COVID-19 is mainly transmitted through droplets generated when an infected person coughs, sneezes, or exhales. These droplets are too heavy to hang in the air, and quickly fall on floors or surfaces. You can be infected by breathing in the virus if you are within close proximity of someone who has COVID-19, or by touching a contaminated surface and then your eyes, nose or mouth.
utter_greet:
- text: Hey! I am here to help you.
- text: Hello! I hope I can be of assistance.
- text: Greetings! It's a pleasure to talk to you.
utter_goodbye:
- text: Good bye! It was nice talking to you.
- text: See you soon! It was truly a pleasure to converse with you.
- text: Godspeed! I had a fun time chatting with a fun person like you.
utter_cheer_up:
- text: "How about I tell you a joke: 'Why do we tell actors to break a leg? ...because every play has a cast.' ;D"
- text: "Maybe some comedy will help you: 'I can recommend a really good restaurant called Karma. There is no menu, you get what you deserve.' ;D"
- text: "Some humor can make you feel better: 'Did you hear about the claustrophobic astronaut? He just needed a little space.' ;D"
utter_did_cheering_help:
- text: Was that enough to make you giggle? Laugh? If not, then I'll come back with a better joke soon.
- text: I hope that I made you feel better, right? I'll be happy to become wittier next time.
- text: What are your thoughts on my sense of humor? Pretty sure everybody can appreciate it.
utter_happy:
- text: I'm glad that I could help you! :D
- text: Oh, you flatter me! Always happy to see a friend smiling. :D
- text: So excited to see you smiling, and I'll keep telling you nice jokes so don't worry. :D
utter_not_happy:
- text: Oh, sorry then! I will try to be smarter in the future. :)
- text: I hope I can make you feel better soon, I will try to learn more. :)
- text: It's sad to see you unhappy, please let me know what I can do to turn that frown upside down. :)
utter_did_info_help:
- text: Was that helpful? If not, please let me know so that I can improve.
- text: I resolved your query, right? I'll be happy to become better and more informative.
- text: What do you think of my conversation skills? I think I provided you with appropriate information in a digestible manner.
utter_usage_cases:
- quick_replies:
- payload: /coronavirus_assessment
title: COVID-19 Self-Assess
- payload: /coronavirus_information
title: COVID-19 Information
- payload: /chitchat_options
title: Chitchat
- payload: /faq_options
title: FAQs
text: What can I do for you?
utter_coronavirus_information:
- quick_replies:
- payload: /coronavirus_statistics
title: COVID-19 Statistics
- payload: /coronavirus_guidance
title: COVID-19 Guidance
- payload: /coronavirus_symptoms
title: COVID-19 Symptoms
- payload: /coronavirus_healthcare
title: COVID-19 Healthcare
- payload: /coronavirus_vaccine
title: COVID-19 Vaccine
text: What information would you like to receive about COVID-19?
utter_coronavirus_statistics:
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Statistics.png
text: The latest COVID-19 statistics are available at https://www.worldometers.info/coronavirus for your information.
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Statistics.png
text: Please go to https://www.worldometers.info/coronavirus to find the updated COVID-19 statistics!
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Statistics.png
text: Looking for COVID-19 statistics? Find the most recent COVID-19 statistics at https://www.worldometers.info/coronavirus.
utter_coronavirus_guidance:
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Guidance.png
text: The latest guidelines for COVID-19 are available at https://www.who.int/emergencies/diseases/novel-coronavirus-2019/advice-for-public, follow them diligently to minimize your risk of infection.
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Guidance.png
text: Please go to https://www.who.int/emergencies/diseases/novel-coronavirus-2019/advice-for-public for the latest guidelines for COVID-19.
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Guidance.png
text: Looking for the latest guidelines for COVID-19? Find the updated guidelines at https://www.who.int/emergencies/diseases/novel-coronavirus-2019/advice-for-public.
utter_coronavirus_symptoms:
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Symptoms.png
text: The list of common symptoms of COVID-19 are available at https://www.cdc.gov/coronavirus/2019-ncov/symptoms-testing/symptoms.html for greater awareness.
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Symptoms.png
text: Please go to https://www.cdc.gov/coronavirus/2019-ncov/symptoms-testing/symptoms.html to look at some common symptoms of COVID-19.
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Symptoms.png
text: Looking for the common symptoms of COVID-19? Find a comprehensive list at https://www.cdc.gov/coronavirus/2019-ncov/symptoms-testing/symptoms.html.
utter_coronavirus_healthcare:
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Healthcare.png
text: The updated healthcare options for COVID-19 patients are available at https://coronabeds.jantasamvad.org, it will be really helpful!
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Healthcare.png
text: Please go to https://coronabeds.jantasamvad.org to view the most reliable healthcare options for COVID-19 patients.
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Healthcare.png
text: Looking for updated healthcare options for COVID-19 patients? Find a list of reliable healthcare facilities at https://coronabeds.jantasamvad.org.
utter_coronavirus_vaccine:
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Vaccine.png
text: The latest COVID-19 vaccines are available at https://www.cowin.gov.in, for your awareness.
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Vaccine.png
text: Please go to https://www.cowin.gov.in to get a slot for receiving the COVID-19 vaccination.
- image: https://raw.githubusercontent.com/AVS1508/elementary_chatbot/main/assets/COVID-19%20Vaccine.png
text: Looking to get vaccinated? Find the most reliable COVID-19 vaccination slots at https://www.cowin.gov.in.
utter_ask_1_is_vaccinated:
- buttons:
- payload: 'true'
title: Yes
- payload: 'false'
title: No
text: Have you taken the vaccination for COVID-19?
utter_ask_2_vaccine_brand:
- quick_replies:
- payload: Covaxin
title: Covaxin
- payload: Covishield
title: Covishield
- payload: Sputnik
title: Sputnik
- payload: Other
title: Other
- payload: None
title: None
text: Which vaccine have you taken (if you have not, choose None)?
utter_ask_3_num_doses:
- quick_replies:
- payload: '0'
title: '0'
- payload: '1'
title: '1'
- payload: '2'
title: '2'
text: How many vaccine dose(s) have you taken?
utter_ask_4_past_infection:
- buttons:
- payload: 'true'
title: Yes
- payload: 'false'
title: No
text: Have you had COVID-19 in the past 3 months or after taking the shot?
utter_ask_5_current_symptoms:
- buttons:
- payload: 'true'
title: Yes
- payload: 'false'
title: No
text: |-
Are you currently experiencing any of the following symptoms?
• Cough • Fever • Sore Throat • Chest Congestion • Runny Nose • Body Ache • Difficulty in Breathing • Loss of Smell • Loss of Taste • Pink Eyes • Hearing Impairment • Gastrointestinal Unease
utter_ask_6_preexisting_conditions:
- buttons:
- payload: 'true'
title: Yes
- payload: 'false'
title: No
text: |-
Do you have any of the following pre-existing conditions?
• Diabetes • Hypertension • Lung Disease • Heart Disease • Kidney Disorder • Asthma
utter_ask_7_travel_interstate:
- buttons:
- payload: 'true'
title: Yes
- payload: 'false'
title: No
text: Have you travelled in the past 14 days to any state other than where you currently reside?
utter_ask_continue:
- buttons:
- payload: Yes
title: Yes
- payload: No
title: No
text: Do you want to continue with the COVID-19 self-assessment form?
actions:
- utter_faq
- utter_chitchat
- action_reset_slots
- explain_coronavirus_assessment
- validate_form_coronavirus_assessment
forms:
form_coronavirus_assessment:
required_slots:
1_is_vaccinated:
- type: from_text
2_vaccine_brand:
- type: from_text
3_num_doses:
- type: from_text
4_past_infection:
- type: from_text
5_current_symptoms:
- type: from_text
6_preexisting_conditions:
- type: from_text
7_travel_interstate:
- type: from_text
e2e_actions: []