-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.yml
180 lines (152 loc) · 5.14 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
version: "2.0"
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
- corona_states:
use_entities: ["state"]
- need_information
- what_covid
- symptoms_covid
- what_if_positive
- vaccine_tracker
- using_pincode
- using_district_id
entities:
- state
slots:
state:
type: text
pincode:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
date:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
district_id:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
requested_slot:
type: rasa.shared.core.slots.UnfeaturizedSlot
initial_value: null
auto_fill: true
influence_conversation: false
responses:
utter_greet:
- text: "Hey! I am Corbot. How can I help you?"
utter_cheer_up:
- text: "Here is something to cheer you up:"
image: "https://i.imgur.com/nGF1K8f.jpg"
utter_did_that_help:
- text: "Did that help you?"
utter_happy:
- text: "Great, carry on!"
utter_goodbye:
- text: "Bye"
utter_iamabot:
- text: "I am a bot, powered by Rasa."
utter_which_method:
- text: "You can find vaccine slot availability information using:"
buttons:
- title: "Pincode"
payload: 'using_pincode'
- title: "District ID"
payload: 'using_ditrict_id'
utter_ask_pincode:
- text: Enter the Pincode
utter_ask_district_id:
- text: Enter the District ID
utter_ask_date:
- text: Enter date (Use DD-MM-YYYY format)
utter_morehelp:
- text: "Anything else I can help you with?"
buttons:
- title: "Status on cases"
payload: '/need_information'
- title: "Vaccine Availabity Checker"
payload: 'vaccine_tracker'
- title: "What is Covid-19"
payload: '/what_covid'
- title: "Symptoms of Covid-19"
payload: '/symptoms_covid'
- title: "What if I have tested positive?"
payload: '/what_if_positive'
- title: "No"
payload: '/deny'
utter_positive_help:
- text: "Unlike the previous waves, where the characteristic symptoms of infection were fever and cough, the second wave has presented with more non-specific symptoms like nausea, abdominal pain and tiredness.
Once you have tested positive, it is important to isolate yourself, monitor your health and determine when you need medical attention. Most importantly, don’t panic – the majority of people will recover with only mild symptoms."
utter_help:
- text: "Hey, How can I help you"
buttons:
- title: "Covid-19 Status"
payload: '/need_information'
- title: "Vaccine Availabity Checker"
payload: 'vaccine_tracker'
- title: "What is Covid-19"
payload: '/what_covid'
- title: "Symptoms of Covid-19"
payload: '/symptoms_covid'
- title: "What if I have tested positive?"
payload: '/what_if_positive'
utter_geninfo:
- text: "Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus.
Most people infected with the COVID-19 virus will experience mild to moderate respiratory illness and recover without requiring special treatment. Older people, and those with underlying medical problems like cardiovascular disease, diabetes, chronic respiratory disease, and cancer are more likely to develop serious illness.
The best way to prevent and slow down transmission is to be well informed about the COVID-19 virus, the disease it causes and how it spreads. Protect yourself and others from infection by washing your hands or using an alcohol based rub frequently and not touching your face.
The COVID-19 virus spreads primarily through droplets of saliva or discharge from the nose when an infected person coughs or sneezes, so it’s important that you also practice respiratory etiquette (for example, by coughing into a flexed elbow)."
utter_symptoms:
- text: "Most common symptoms:
fever
dry cough
tiredness
Less common symptoms:
aches and pains
sore throat
diarrhoea
conjunctivitis
headache
loss of taste or smell
a rash on skin, or discolouration of fingers or toes
Serious symptoms:
difficulty breathing or shortness of breath
chest pain or pressure
loss of speech or movement
Seek immediate medical attention if you have serious symptoms. Always call before visiting your doctor or health facility.
People with mild symptoms who are otherwise healthy should manage their symptoms at home.
On average it takes 5–6 days from when someone is infected with the virus for symptoms to show, however it can take up to 14 days."
utter_ask_state:
- text: "Enter State's name"
actions:
- action_submit
- action_district_submit
- action_pincode_submit
# - action_send_mail
# - action_restart
forms:
corona_tracker_form:
state:
- type: from_text
# intent: corona_states
slot_pincode_form:
date:
- type: from_text
pincode:
- type: from_text
slot_district_form:
date:
- type: from_text
district_id:
- type: from_text
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true