-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdomain.yml
More file actions
738 lines (727 loc) · 21.8 KB
/
Copy pathdomain.yml
File metadata and controls
738 lines (727 loc) · 21.8 KB
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
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
version: "2.0"
config:
store_entities_as_slots: true
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
intents:
- download_policy:
use_entities: true
- locate_our_centres:
use_entities: true
- renew_policy:
use_entities: true
- start:
use_entities: true
- ask_for_help:
use_entities: true
- greet:
use_entities: true
- goodbye:
use_entities: true
- affirm:
use_entities: true
- deny:
use_entities: true
- bot_challenge:
use_entities: true
- new_id_card:
use_entities: true
- claim_status:
use_entities: true
- get_a_quote:
use_entities: true
- inform:
use_entities: true
- update_member_info:
use_entities: true
- file_a_claim:
use_entities: true
- out_of_scope:
use_entities: true
- nlu_fallback:
use_entities: true
- uncertain:
use_entities: true
- make_payment:
use_entities: true
- cancel_action:
use_entities: true
- stop:
use_entities: true
- recommend_new_policies:
use_entities: true
- buy_insurance:
use_entities: true
entities:
- claim_id
- coverage
- quote_insurance_type
- scroll_status
- amount-of-money
- number
- payment_type
- state
- ordinal
- phone-number
- quote_number_persons
- insurance_provider
- fullname
- dob
- gender
- policy_duration
- annual_income
slots:
firstname:
type: text
auto_fill: false
influence_conversation: false
insurance_provider:
type: rasa.shared.core.slots.AnySlot
auto_fill: false
influence_conversation: false
insurance_policy_type:
type: any
auto_fill: false
influence_conversation: false
fullname:
type: rasa.shared.core.slots.TextSlot
auto_fill: false
influence_conversation: false
dob:
type: rasa.shared.core.slots.TextSlot
auto_fill: false
influence_conversation: false
gender:
type: rasa.shared.core.slots.CategoricalSlot
values:
- Male
- Female
influence_conversation: true
number_of_persons:
type: any
auto_fill: false
influence_conversation: false
coverage:
type: float
auto_fill: false
influence_conversation: false
annual_income:
type: float
auto_fill: false
influence_conversation: false
policy_duration:
type: any
auto_fill: false
influence_conversation: false
address_city:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
address_state:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
address_street:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
address_zip:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
amount-of-money:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
claim_amount_submit:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
claim_balance:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
claim_id:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
claim_pay_amount:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: false
influence_conversation: false
claims:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
confirm_file_new_claim:
type: rasa.shared.core.slots.BooleanSlot
initial_value: null
auto_fill: true
influence_conversation: true
confirm_payment:
type: rasa.shared.core.slots.BooleanSlot
initial_value: null
auto_fill: true
influence_conversation: true
full_address:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
has_outstanding_balance:
type: rasa.shared.core.slots.BooleanSlot
initial_value: null
auto_fill: true
influence_conversation: true
number:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
page:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
AA_quote_insurance_type:
type: any
auto_fill: false
influence_conversation: false
quote_number_persons:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: false
influence_conversation: false
quote_state:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
recent_claims:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
requested_slot:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
scroll_active_claim:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
scroll_claims:
type: rasa.shared.core.slots.AnySlot
initial_value: null
auto_fill: true
influence_conversation: false
scroll_status:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
state:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: false
verify_address:
type: rasa.shared.core.slots.BooleanSlot
initial_value: null
auto_fill: true
influence_conversation: true
responses:
utter_start:
- text: Hello! Am Sibley. Your converastional insurance agent serving you today.
utter_confirm:
- buttons:
- payload: /inform{{"affirm":"sure"}}
title: Sure
text: Any way we can serve you today!
utter_ask_firstname:
- text: Alright! Please share your name that I may address you by name.
# buy insurance responses
utter_get_best_rates:
- text: To get you the best plans, i need to get a few quick details.
utter_ask_fullname:
- text: Can i have your fullname as displayed on National ID?
# utter_ask_insurance_provider:
# - buttons:
# - payload: /inform{{"insurance_provider":"Jubilee"}}
# title: Jubilee
# - payload: /inform{{"insurance_provider":"Prudential"}}
# title: Prudential
# - payload: /inform{{"insurance_provider":"UAP"}}
# title: UAP
# - payload: /inform{{"insurance_provider":"ICEA"}}
# title: ICEA
# - payload: /inform{{"insurance_provider":"SWICO"}}
# title: SWICO
# text: Select an insurance provider
# utter_ask_insurance_policy_type:
# - buttons:
# - payload: /inform{{"quote_insurance_type":"health"}}
# title: Health
# - payload: /inform{{"quote_insurance_type":"life"}}
# title: Life
# - payload: /inform{{"quote_insurance_type":"auto"}}
# title: Auto
# - payload: /inform{{"quote_insurance_type":"home"}}
# title: Home
# text: What kind of insurance would you like to buy?
# button_type: vertical
utter_ask_dob:
- text: How about your date of birth? {in the format dd/mm/yyyy}
utter_ask_coverage:
- text: |-
And what is the coverage amount your looking for?
1. $40,000
2. $70,000
3. $100,000
utter_ask_policy_duration:
- text: |-
Please choose a policy duration
1. 3 years
2. 5 years
3. 10 years
utter_ask_number_of_persons:
- text: How many people do you want to include on your policy?
utter_ask_annual_income:
- text: How much do you earn a year?
utter_ask_gender:
- buttons:
- payload: /inform{{"gender":"male"}}
title: Male
- payload: /inform{{"gender":"female"}}
title: Female
text: How about your gender?
# quote insurance responses
utter_ask_address_street:
- text: What is your mailing street number and name?
utter_ask_address_city:
- text: What city do you live in?
utter_ask_address_state:
- text: What state do you live in?
utter_ask_address_zip:
- text: What is your mailing zip code?
utter_ask_file_new_claim_form_claim_amount_submit:
- text: How much are you claiming?
utter_ask_file_new_claim_form_confirm_file_new_claim:
- buttons:
- payload: /affirm
title: Yes
- payload: /deny
title: No
text: "Would you to submit a {AA_quote_insurance_type} claim for ${claim_amount_submit}?"
utter_ask_knows_claim_id:
- buttons:
- payload: /affirm
title: Yes
- payload: /deny
title: No
text: Do you know the claim ID you want to check?
# utter_ask_quote_form_AA_quote_insurance_type:
# - buttons:
# - payload: /inform{{"quote_insurance_type":"health"}}
# title: Health
# - payload: /inform{{"quote_insurance_type":"life"}}
# title: Life
# - payload: /inform{{"quote_insurance_type":"auto"}}
# title: Auto
# - payload: /inform{{"quote_insurance_type":"home"}}
# title: Home
# text: What kind of insurance are you interested in?
utter_ask_file_new_claim_form_AA_quote_insurance_type:
- buttons:
- payload: /inform{{"quote_insurance_type":"health"}}
title: Health
- payload: /inform{{"quote_insurance_type":"life"}}
title: Life
- payload: /inform{{"quote_insurance_type":"auto"}}
title: Auto
- payload: /inform{{"quote_insurance_type":"home"}}
title: Home
text: What type of claim would you like to file?
utter_ask_quote_form_quote_number_persons:
- text: How many people do you want to include on the policy for your quote?
utter_ask_quote_form_quote_state:
- text: What state would you like your quote for?
utter_anything_else:
- text: Is there anything else I can help you with?
utter_ask_claim_pay_amount:
- text: "Claim {claim_id} has an outstanding balance of ${claim_balance}. How much would you like to pay?"
utter_ask_claim_status_form_claim_id:
- text: What is the claim ID you'd like to lookup?
utter_ask_confirm_address:
- buttons:
- payload: /affirm
title: Yes
- payload: /deny
title: No
text: |-
Is this address correct?
{address_street}
{address_city}, {address_state} {address_zip}
utter_ask_get_claim_form_claim_id:
- text: What is the ID of the claim you'd like to lookup?
utter_ask_pay_claim_form_claim_id:
- text: What claim would you like to make a payment for?
utter_ask_pay_claim_form_confirm_payment:
- buttons:
- payload: /affirm{{"confirm_payment":"true"}}
title: Yes
- payload: /deny{{"confirm_payment":"false"}}
title: No
text: "Would you like to pay ${claim_pay_amount} for claim {claim_id}?"
utter_ask_pay_claim_form_amount-of-money:
- text: "Claim {claim_id} has an outstanding balance of ${claim_balance}. How much would you like to pay?"
utter_ask_update_address:
- buttons:
- paylaod: /affirm
title: Yes
- payload: /deny
title: No
text: Would you like to update your address?
utter_cancel_address_change:
- text: No problem. Your address change request has been canceled.
utter_cancel_info_update:
- text: Ok. You can always check back to update your info later!
utter_cancel_new_claim_file:
- text: Filing a new claim has been canceled.
utter_cancel_payment:
- text: Your payment has been cancelled.
utter_claim_payment_success:
- text: |-
Thank you for your claim payment of ${amount_to_pay} for claim {claim_id}.
The remaining balance for the claim is ${claim_balance}
utter_confirm_address:
- buttons:
- payload: /affirm
title: Yes
- payload: /deny
title: No
text: |-
Is this your current address?
{full_address}
utter_final_quote:
- text: |-
Your monthly payment given the information provided is: ${final_quote} per month
Insurance Type: {insurance_type}
Policy State: {quote_state}
Number of people on policy: {n_persons}
utter_buy_insurance:
- text: |-
{first_name}, Based on your details, your premium would be:
1. ${final_rate} per month for {policy_duration} years if you are to pay monthly
2. ${final_rate_quarterly} for {policy_duration} years if you are to pay quarterly
3. ${final_rate_annually} for {policy_duration} years if you are to pay annually.
Policy Details:
Insurance Provider: {insurance_provider}
Insurance Policy: {insurance_type}
Policy Holder: {policy_holder}
Sum assured: ${sum_assured}
Number of people on policy: {n_persons}
Here is the payment link should you want to go ahead now. https://vidabot.com/buy_insurance_policy/
utter_greet:
- buttons:
- payload: /buy_insurance
title: Buy Insurance
- payload: /file_a_claim
title: File a Claim
- payload: /claim_status
title: Check Claim Status
- payload: /get_a_quote
title: Get a Quote
- payload: /renew_policy
title: Renew Policy
- payload: /download_policy
title: Download Policy Copy
- payload: /new_id_card
title: Order New ID Card
- payload: /make_a_payment
title: Pay a Claim
- payload: /get_a_quote
title: Get a Quote
- payload: /locate_our_centres
title: Locate our Centres
- payload: /faq
title: FAQ/ Knowledge Repository
text: |-
Howdy! {firstname}, Pleasure to meet you.
What can I help you with today?
button_type: vertical
utter_has_no_balance:
- text: This claim has no outstanding balance.
utter_here_are_recent_claims:
- text: Okay. Here are some of your recent claims.
utter_new_id_address_change:
- text: Okay. Let's update your address so your new ID cards are sent to the right address.
utter_new_id_card:
- text: Sure, I can help you get a new id card!
utter_notify_active_claim:
- text: Thanks! You have selected claim {claim_id}.
utter_pay_outstanding_balance:
- text: Looks like your claim has an outstanding balance would you like to make a payment?
utter_scroll_status_next:
- buttons:
- payload: /inform{{"scroll_status":"next"}}
title: Next
- payload: /inform{{"scroll_status":"select"}}
title: Select
- payload: /inform{{"scroll_status":"cancel"}}
title: Cancel
text: What would you like to do next?
utter_scroll_status_prev:
- buttons:
- payload: /inform{{"scroll_status":"prev"}}
title: Previous
- payload: /inform{{"scroll_status":"select"}}
title: Select
- payload: /inform{{"scroll_status":"cancel"}}
title: Cancel
text: What would you like to do next?
utter_scroll_status_prev_next:
- buttons:
- payload: /inform{{"scroll_status":"prev"}}
title: Previous
- payload: /inform{{"scroll_status":"select"}}
title: Select
- payload: /inform{{"scroll_status":"next"}}
title: Next
- payload: /inform{{"scroll_status":"cancel"}}
title: Cancel
text: What would you like to do next?
utter_claims_scroll_exit_suggest_action:
- text: I can also help you make a payment towards one of your claims.
utter_claim_detail:
- text: 'Claim ID: {claim_id}\nClaim Date: {claim_date}\nAmount Owed: {claim_balance}\nClaim Status: {claim_status}'
utter_claim_id_provided:
- text: Let me get the status for claim {claim_id}
utter_claim_status:
- text: Get the claim status. Ask for claim ID. Maybe suggest latest claim?
utter_did_that_help:
- text: Did that help you?
utter_happy:
- text: Great, carry on!
utter_goodbye:
- text: Okay. I'll be here to help you with all of your future insurance needs. Have a stupendous day!
utter_iamabot:
- text: I am a bot, powered by Rasa.
utter_zero_balance:
- text: Claim {claim_id} is fully paid.
utter_out_of_scope:
- text: I don't understand what you're asking.
utter_please_rephrase:
- text: I didn't quite understand that. Could you please rephrase?
utter_chitchat:
- text: This is a piece of chitchat.
utter_default:
- text: Sorry I didn't get that. Can you rephrase?
utter_cancel_insurance_quote:
- text: Ok. I can help you get an insurance quote another time!
utter_new_card_address:
- text: Sure thing. I can send you a new ID card. First, let's make sure I send it to the correct address.
utter_start_new_id_order:
- text: I can help you get a new ID card. First, let's confirm some information.
utter_my_capability:
- text: I can help manage your insurance account by reviewing claims, making claim payments, ordering a new ID card, and getting a quote for insurance.
utter_acknowledge_update_info:
- text: Certainly. I can help you update your address. Let's look at the address on file.
utter_start_new_quote:
- text: I can help you get a new insurance quote. Let's learn a little more about you.
actions:
- action_ask_AA_quote_insurance_type
- action_ask_insurance_provider
- validate_get_firstname
- action_get_firstname
- validate_quote_form
- validate_buy_insurance_form
- action_buy_insurance
- action_get_quote
- action_stop_quote
- action_claim_status
- validate_claim_status_form
- action_ask_recent_claim
- validate_get_claim_form
- action_ask_verify_address
- action_ask_recent_claims
- validate_verify_address_form
- action_verify_address_form
- action_reset_address
- action_ask_insurance_policy_type
- action_get_address
- action_new_id_card
- action_update_address
- validate_change_address_form
- action_ask_scroll_claims
- validate_scroll_claims_form
- action_scroll_claims_form_exit
- action_pay_claim
- action_cancel_payment
- action_stop_new_claim_form
- validate_pay_claim_form
- action_file_new_claim_form
- validate_file_new_claim_form
- action_recent_claims
- action_check_claim_balance
- notify_new_policies
forms:
quote_form:
AA_quote_insurance_type:
- entity: quote_insurance_type
type: from_entity
- not_intent: stop
type: from_text
quote_number_persons:
- entity: quote_number_persons
type: from_entity
- not_intent: stop
type: from_text
quote_state:
- entity: state
type: from_entity
- not_intent: stop
type: from_text
buy_insurance_form:
insurance_provider:
- entity: insurance_provider
type: from_entity
insurance_policy_type:
- entity: quote_insurance_type
type: from_entity
- not_intent: get_a_quote
type: from_text
number_of_persons:
- entity: quote_number_persons
type: from_entity
- not_intent: stop
type: from_text
- entity: number
type: from_entity
policy_duration:
- entity: policy_duration
type: from_entity
- entity: number
type: from_entity
- not_intent: get_a_quote
type: from_text
- type: from_text
fullname:
- entity: fullname
type: from_entity
- type: from_text
dob:
- entity: dob
type: from_entity
- type: from_text
gender:
- entity: gender
type: from_entity
annual_income:
- type: from_entity
entity: annual_income
- type: from_text
- not_intent: get_a_quote
type: from_text
coverage:
- entity: coverage
type: from_entity
- entity: number
type: from_entity
- type: from_text
- not_intent: get_a_quote
type: from_text
get_firstname:
firstname:
- type: from_text
- not_intent: buy_insurance
type: from_text
get_claim_form:
claim_id:
- entity: claim_id
type: from_entity
- type: from_text
change_address_form:
address_city:
- not_intent: stop
type: from_text
address_state:
- entity: state
type: from_entity
address_street:
- not_intent: stop
type: from_text
address_zip:
- not_intent: stop
type: from_text
pay_claim_form:
claim_id:
- entity: claim_id
type: from_entity
- not_intent:
- uncertain
- deny
- claim_status
type: from_text
claim_pay_amount:
- entity: amount-of-money
type: from_entity
- entity: number
type: from_entity
- not_intent:
- uncertain
- deny
type: from_text
confirm_payment:
- intent: affirm
type: from_intent
value: true
- intent: deny
type: from_intent
value: false
scroll_claims_form:
scroll_claims:
- entity: scroll_claims
not_intent: uncertain
type: from_entity
- type: from_text
file_new_claim_form:
AA_quote_insurance_type:
- entity: quote_insurance_type
type: from_entity
- not_intent: stop
type: from_text
claim_amount_submit:
- entity: number
not_intent: stop
type: from_entity
- entity: amount-of-money
not_intent: stop
type: from_entity
- intent: inform
type: from_text
confirm_file_new_claim:
- intent: affirm
type: from_intent
value: yes
- intent: deny
type: from_intent
value: no
- intent:
- inform
- claim_status_form
type: from_text
e2e_actions: []