-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.yml
308 lines (295 loc) · 6.73 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
---
actions:
- utter_greet
- utter_ask_username
- utter_ask_mailid
- utter_ask_phone_number
- utter_ask_proceed
- utter_goodbye
- utter_iamabot
- utter_not_serving
- action_default_fallback
- utter_ask_complain_text
- utter_ask_complain_type
- utter_ask_rating
- utter_ask_feedback_text
- action_show_menu
- utter_query_type
- utter_ask_faq_choice
- utter_ask_faq_text
- action_greet_back
- utter_ask_give_rating
- utter_ask_order_rating
entities:
- username
- mailid
- phone_number
- dish_name
- dish_category
- proceed
- continue
- moveon
- confirm
- complain_type
- complain_text
- rating
- feedback_text
- quantity
- any_thing
- faq_choice
- faq_text
- navigator
forms:
- info_form
- order_form
- complain_form
- feedback_form
- faq_form
- order_rating_form
intents:
- greet
- goodbye
- order_food
- inform
- bot_challenge
- deny
- affirm
- complain
- complaint_init
- feedback_init
- faq_init
- query_init
- rating
- quant
- faq_choice
- question
- navigations
- greetback
responses:
utter_ask_complain_text:
-
text: "Please Describe your complain."
buttons:
-
payload: "/navigations{\"navigation\": \"back2\"}"
title: Back
utter_ask_complain_type:
-
buttons:
-
payload: "/complain{\"complain_type\": \"Food Quality\"}"
title: "Food Quality"
-
payload: "/complain{\"complain_type\": \"Delivery\"}"
title: Delivery
-
payload: "/complain{\"complain_type\":\"Naaniz App\"}"
title: "Naaniz App"
-
payload: "/complain{\"complain_type\":\"Other\"}"
title: Other
-
payload: "/complain{\"complain_type\":\"back1\"}"
title: Back
text: "What is complain regarding ?"
utter_ask_confirm:
-
buttons:
-
payload: "/affirm{\"confirm\":\"back3\"}"
title: Back
text: "Please confirm your details:\n\
\x20name: {username} \n\
\x20Contact no.: {phone_number} \n\
\x20email: {mailid} "
utter_ask_faq_choice:
-
buttons:
-
payload: "/faq_choice{\"faq_choice\": \"1\"}"
title: "Choose from our set of FAQs"
-
payload: "/faq_choice{\"faq_choice\": \"2\" }"
title: "Type your own question."
-
payload: "/faq_choice{\"faq_choice\": \"back2\"}"
title: Back
text: "How should we get your FAQ?"
utter_ask_faq_text:
-
buttons:
-
payload: "/navigations{\"navigation\": \"back3\"}"
title: Back
text: "Please enter your question."
utter_ask_feedback_text:
-
text: "Please enter your feedback."
buttons:
-
payload: "/navigations{\"navigation\":\"back2\"}"
title: Back
utter_ask_mailid:
-
buttons:
-
payload: "/inform{\"mailid\":\"back1\"}"
title: Back
text: "Please enter your mail id."
utter_ask_phone_number:
-
buttons:
-
payload: "/inform{\"phone_number\":\"back2\"}"
title: Back
text: "Please enter your phone number."
utter_ask_proceed:
-
buttons:
-
payload: "/inform{\"proceed\":\"add to cart\"}"
title: "Add to Cart"
-
payload: "/inform{\"proceed\":\"buy now\"}"
title: "Buy Now"
-
payload: "/inform{\"proceed\":\"change dish\"}"
title: "Select Other Food item"
-
payload: "/inform{\"proceed\":\"switch category\"}"
title: "Switch category"
-
payload: "/inform{\"proceed\":\"change quantity\"}"
title: "Change quantity"
text: "Please select above options"
utter_ask_quantity:
-
text: "Please enter the quantity"
utter_ask_rating:
-
buttons:
-
payload: "/rating{\"rating\":\"1\"}"
title: 1
-
payload: "/rating{\"rating\": \"2\"}"
title: 2
-
payload: "/rating{\"rating\":\"3\"}"
title: 3
-
payload: "/rating{\"rating\":\"4\"}"
title: 4
-
payload: "/rating{\"rating\":\"5\"}"
title: 5
-
payload: "/rating{\"rating\":\"back1\"}"
title: Back
text: "Please rate your experience out of 5 ?"
utter_ask_username:
-
text: "What is your name?"
utter_goodbye:
-
text: Bye
utter_ask_give_rating:
-
text: "Would you like to rate us?"
buttons:
-
payload: "/inform{\"confirm\":\"YES\"}"
title: "Yes"
-
payload: "/inform{\"confirm\":\"NO\"}"
title: "No"
utter_ask_order_rating:
-
text: "Please rate your experience out of 5 ?"
buttons:
-
payload: "/rating{\"rating\":\"1\"}"
title: 1
-
payload: "/rating{\"rating\": \"2\"}"
title: 2
-
payload: "/rating{\"rating\":\"3\"}"
title: 3
-
payload: "/rating{\"rating\":\"4\"}"
title: 4
-
payload: "/rating{\"rating\":\"5\"}"
title: 5
utter_greet:
-
buttons:
-
payload: /order_food
title: "Order Food"
-
payload: /query_init
title: Query
-
payload: /faq_init
title: FAQ
text: "How can we help you today?"
utter_iamabot:
-
text: "I am a bot, powered by Rasa."
utter_not_serving:
-
text: "Currently we are not serving this dish. Would you like to have something else?"
utter_query_type:
-
buttons:
-
payload: /feedback_init
title: Feedback
-
payload: /complaint_init
title: Complaint
-
payload: /greetback
title: Back
text: "What kind of query is it?"
session_config:
carry_over_slots_to_new_session: true
session_expiration_time: 180
slots:
complain_text:
type: unfeaturized
complain_type:
type: unfeaturized
confirm:
type: unfeaturized
dish_name:
type: unfeaturized
dish_category:
type: unfeaturized
faq_choice:
type: unfeaturized
navigation:
type: unfeaturized
faq_text:
type: unfeaturized
feedback_text:
type: unfeaturized
mailid:
type: unfeaturized
phone_number:
type: unfeaturized
proceed:
type: unfeaturized
quantity:
type: unfeaturized
rating:
type: unfeaturized
username:
initial_value: John
type: unfeaturized
give_rating:
type: unfeaturized
order_rating:
type: unfeaturized