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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
# Rules, along with stories are used as training data for the bot and define
# how a conversation should always happen provided an intent.
# If in doubt, use stories and do not over-use rules.
version: "2.0"

rules:
  - rule: Say Hi
    steps:
      - intent: greet
      - action: utter_greet

  - rule: Say goodbye anytime the user says goodbye
    steps:
      - intent: goodbye
      - action: utter_goodbye

  - rule: Ask the user to rephrase whenever they send a message with low NLU confidence
    steps:
      - intent: nlu_fallback
      - action: zir_action_fallback

  - rule: booking_1
    steps:
      - intent: booking_1
      - action: utter_booking_1
  - rule: booking_2
    steps:
      - intent: booking_2
      - action: utter_booking_2
  - rule: booking_3
    steps:
      - intent: booking_3
      - action: utter_booking_3
  - rule: booking_4
    steps:
      - intent: booking_4
      - action: utter_booking_4
  - rule: booking_5
    steps:
      - intent: booking_5
      - action: utter_booking_5
  - rule: booking_6
    steps:
      - intent: booking_6
      - action: utter_booking_6
  - rule: booking_7
    steps:
      - intent: booking_7
      - action: utter_booking_7

  - rule: rooms_1
    steps:
      - intent: rooms_1
      - action: utter_rooms_1
  - rule: rooms_2
    steps:
      - intent: rooms_2
      - action: utter_rooms_2
  - rule: rooms_3
    steps:
      - intent: rooms_3
      - action: utter_rooms_3
  - rule: rooms_4
    steps:
      - intent: rooms_4
      - action: utter_rooms_4
  - rule: rooms_5
    steps:
      - intent: rooms_5
      - action: utter_rooms_5
  - rule: rooms_6
    steps:
      - intent: rooms_6
      - action: utter_rooms_6
  - rule: rooms_7
    steps:
      - intent: rooms_7
      - action: utter_rooms_7
  - rule: rooms_8
    steps:
      - intent: rooms_8
      - action: utter_rooms_8
  - rule: rooms_9
    steps:
      - intent: rooms_9
      - action: utter_rooms_9
  - rule: rooms_10
    steps:
      - intent: rooms_10
      - action: utter_rooms_10

  - rule: visit_1
    steps:
      - intent: visit_1
      - action: utter_visit_1
  - rule: visit_2
    steps:
      - intent: visit_2
      - action: utter_visit_2
  - rule: visit_3
    steps:
      - intent: visit_3
      - action: utter_visit_3
  - rule: visit_4
    steps:
      - intent: visit_4
      - action: utter_visit_4
  - rule: visit_5
    steps:
      - intent: visit_5
      - action: utter_visit_5
  - rule: visit_6
    steps:
      - intent: visit_6
      - action: utter_visit_6
  - rule: visit_7
    steps:
      - intent: visit_7
      - action: utter_visit_7
  - rule: visit_8
    steps:
      - intent: visit_8
      - action: utter_visit_8
  - rule: visit_9
    steps:
      - intent: visit_9
      - action: utter_visit_9
  - rule: visit_10
    steps:
      - intent: visit_10
      - action: utter_visit_10
  - rule: visit_11
    steps:
      - intent: visit_11
      - action: utter_visit_11
  - rule: visit_12
    steps:
      - intent: visit_12
      - action: utter_visit_12
  - rule: visit_13
    steps:
      - intent: visit_13
      - action: utter_visit_13
  - rule: visit_14
    steps:
      - intent: visit_14
      - action: utter_visit_14
  - rule: visit_15
    steps:
      - intent: visit_15
      - action: utter_visit_15
  - rule: visit_16
    steps:
      - intent: visit_16
      - action: utter_visit_16
  - rule: visit_17
    steps:
      - intent: visit_17
      - action: utter_visit_17
  - rule: visit_18
    steps:
      - intent: visit_18
      - action: utter_visit_18
  - rule: visit_19
    steps:
      - intent: visit_19
      - action: utter_visit_19
  - rule: visit_20
    steps:
      - intent: visit_20
      - action: utter_visit_20
  - rule: visit_21
    steps:
      - intent: visit_21
      - action: utter_visit_21
  - rule: restaurant_1
    steps:
      - intent: restaurant_1
      - action: utter_restaurant_1
  - rule: restaurant_2
    steps:
      - intent: restaurant_2
      - action: utter_restaurant_2
  - rule: restaurant_3
    steps:
      - intent: restaurant_3
      - action: utter_restaurant_3
  - rule: restaurant_4
    steps:
      - intent: restaurant_4
      - action: utter_restaurant_4
  - rule: restaurant_5
    steps:
      - intent: restaurant_5
      - action: utter_restaurant_5
  - rule: restaurant_6
    steps:
      - intent: restaurant_6
      - action: utter_restaurant_6
  - rule: restaurant_7
    steps:
      - intent: restaurant_7
      - action: utter_restaurant_7
  - rule: restaurant_8
    steps:
      - intent: restaurant_8
      - action: utter_restaurant_8
  - rule: restaurant_9
    steps:
      - intent: restaurant_9
      - action: utter_restaurant_9
  - rule: restaurant_10
    steps:
      - intent: restaurant_10
      - action: utter_restaurant_10
  - rule: restaurant_11
    steps:
      - intent: restaurant_11
      - action: utter_restaurant_11
  - rule: restaurant_12
    steps:
      - intent: restaurant_12
      - action: utter_restaurant_12
  - rule: restaurant_13
    steps:
      - intent: restaurant_13
      - action: utter_restaurant_13
  - rule: restaurant_14
    steps:
      - intent: restaurant_14
      - action: utter_restaurant_14
  - rule: restaurant_15
    steps:
      - intent: restaurant_15
      - action: utter_restaurant_15
  - rule: restaurant_16
    steps:
      - intent: restaurant_16
      - action: utter_restaurant_16
  - rule: restaurant_17
    steps:
      - intent: restaurant_17
      - action: utter_restaurant_17
  - rule: restaurant_18
    steps:
      - intent: restaurant_18
      - action: utter_restaurant_18
  - rule: restaurant_19
    steps:
      - intent: restaurant_19
      - action: utter_restaurant_19
  - rule: restaurant_20
    steps:
      - intent: restaurant_20
      - action: utter_restaurant_20
  - rule: restaurant_21
    steps:
      - intent: restaurant_21
      - action: utter_restaurant_21
  - rule: restaurant_22
    steps:
      - intent: restaurant_22
      - action: utter_restaurant_22
  - rule: restaurant_23
    steps:
      - intent: restaurant_23
      - action: utter_restaurant_23
  - rule: restaurant_24
    steps:
      - intent: restaurant_24
      - action: utter_restaurant_24
  - rule: restaurant_25
    steps:
      - intent: restaurant_25
      - action: utter_restaurant_25
  - rule: restaurant_26
    steps:
      - intent: restaurant_26
      - action: utter_restaurant_26
  - rule: restaurant_27
    steps:
      - intent: restaurant_27
      - action: utter_restaurant_27
  - rule: restaurant_28
    steps:
      - intent: restaurant_28
      - action: utter_restaurant_28
  - rule: restaurant_29
    steps:
      - intent: restaurant_29
      - action: utter_restaurant_29
  - rule: restaurant_30
    steps:
      - intent: restaurant_30
      - action: utter_restaurant_30
  - rule: dolphin_1
    steps:
      - intent: dolphin_1
      - action: utter_dolphin_1
  - rule: dolphin_2
    steps:
      - intent: dolphin_2
      - action: utter_dolphin_2
  - rule: dolphin_3
    steps:
      - intent: dolphin_3
      - action: utter_dolphin_3
  - rule: dolphin_4
    steps:
      - intent: dolphin_4
      - action: utter_dolphin_4
  - rule: dolphin_5
    steps:
      - intent: dolphin_5
      - action: utter_dolphin_5
  - rule: dolphin_6
    steps:
      - intent: dolphin_6
      - action: utter_dolphin_6
  - rule: dolphin_7
    steps:
      - intent: dolphin_7
      - action: utter_dolphin_7
  - rule: dolphin_8
    steps:
      - intent: dolphin_8
      - action: utter_dolphin_8
  - rule: dolphin_9
    steps:
      - intent: dolphin_9
      - action: utter_dolphin_9
  - rule: dolphin_10
    steps:
      - intent: dolphin_10
      - action: utter_dolphin_10
  - rule: dolphin_11
    steps:
      - intent: dolphin_11
      - action: utter_dolphin_11
  - rule: dolphin_12
    steps:
      - intent: dolphin_12
      - action: utter_dolphin_12
  - rule: dolphin_13
    steps:
      - intent: dolphin_13
      - action: utter_dolphin_13
  - rule: aqua_1
    steps:
      - intent: aqua_1
      - action: utter_aqua_1
  - rule: aqua_2
    steps:
      - intent: aqua_2
      - action: utter_aqua_2
  - rule: aqua_3
    steps:
      - intent: aqua_3
      - action: utter_aqua_3
  - rule: aqua_4
    steps:
      - intent: aqua_4
      - action: utter_aqua_4
  - rule: aqua_5
    steps:
      - intent: aqua_5
      - action: utter_aqua_5
  - rule: aqua_6
    steps:
      - intent: aqua_6
      - action: utter_aqua_6
  - rule: aqua_7
    steps:
      - intent: aqua_7
      - action: utter_aqua_7
  - rule: aqua_8
    steps:
      - intent: aqua_8
      - action: utter_aqua_8
  - rule: aqua_9
    steps:
      - intent: aqua_9
      - action: utter_aqua_9
  - rule: aqua_10
    steps:
      - intent: aqua_10
      - action: utter_aqua_10
  - rule: aqua_11
    steps:
      - intent: aqua_11
      - action: utter_aqua_11
  - rule: aqua_12
    steps:
      - intent: aqua_12
      - action: utter_aqua_12
  - rule: aqua_13
    steps:
      - intent: aqua_13
      - action: utter_aqua_13
  - rule: aqua_14
    steps:
      - intent: aqua_14
      - action: utter_aqua_14
  - rule: aqua_15
    steps:
      - intent: aqua_15
      - action: utter_aqua_15
  - rule: aqua_16
    steps:
      - intent: aqua_16
      - action: utter_aqua_16
  - rule: kids_1
    steps:
      - intent: kids_1
      - action: utter_kids_1
  - rule: kids_2
    steps:
      - intent: kids_2
      - action: utter_kids_2
  - rule: kids_3
    steps:
      - intent: kids_3
      - action: utter_kids_3
  - rule: kids_4
    steps:
      - intent: kids_4
      - action: utter_kids_4
  - rule: kids_5
    steps:
      - intent: kids_5
      - action: utter_kids_5
  - rule: kids_6
    steps:
      - intent: kids_6
      - action: utter_kids_6
  - rule: kids_7
    steps:
      - intent: kids_7
      - action: utter_kids_7
  - rule: kids_8
    steps:
      - intent: kids_8
      - action: utter_kids_8
  - rule: kids_9
    steps:
      - intent: kids_9
      - action: utter_kids_9
  - rule: kids_10
    steps:
      - intent: kids_10
      - action: utter_kids_10
  - rule: kids_11
    steps:
      - intent: kids_11
      - action: utter_kids_11
  - rule: kids_12
    steps:
      - intent: kids_12
      - action: utter_kids_12
  - rule: kids_13
    steps:
      - intent: kids_13
      - action: utter_kids_13
  - rule: kids_14
    steps:
      - intent: kids_14
      - action: utter_kids_14
  - rule: kids_15
    steps:
      - intent: kids_15
      - action: utter_kids_15
  - rule: kids_16
    steps:
      - intent: kids_16
      - action: utter_kids_16
  - rule: kids_17
    steps:
      - intent: kids_17
      - action: utter_kids_17
  - rule: kids_18
    steps:
      - intent: kids_18
      - action: utter_kids_18
  - rule: kids_19
    steps:
      - intent: kids_19
      - action: utter_kids_19
  - rule: kids_20
    steps:
      - intent: kids_20
      - action: utter_kids_20
  - rule: kids_21
    steps:
      - intent: kids_21
      - action: utter_kids_21
  - rule: kids_22
    steps:
      - intent: kids_22
      - action: utter_kids_22
  - rule: kids_23
    steps:
      - intent: kids_23
      - action: utter_kids_23
  - rule: spa_1
    steps:
      - intent: spa_1
      - action: utter_spa_1
  - rule: spa_2
    steps:
      - intent: spa_2
      - action: utter_spa_2
  - rule: pool_1
    steps:
      - intent: pool_1
      - action: utter_pool_1
  - rule: pool_2
    steps:
      - intent: pool_2
      - action: utter_pool_2
  - rule: pool_3
    steps:
      - intent: pool_3
      - action: utter_pool_3
  - rule: retail_1
    steps:
      - intent: retail_1
      - action: utter_retail_1
  - rule: retail_2
    steps:
      - intent: retail_2
      - action: utter_retail_2
  - rule: retail_3
    steps:
      - intent: retail_3
      - action: utter_retail_3
  - rule: retail_4
    steps:
      - intent: retail_4
      - action: utter_retail_4
  - rule: retail_5
    steps:
      - intent: retail_5
      - action: utter_retail_5
  - rule: retail_6
    steps:
      - intent: retail_6
      - action: utter_retail_6