-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdomain.yml
129 lines (123 loc) · 4.01 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
version: '3.1'
intents:
- bot_challenge
- affirm
- deny
- goodbye
- greet
- inappropriate
- stop_form
- irembo_info
- national_id
- temporary_driving_license_number
- permanent_driving_license_date
- permanent_driving_license_category
- permanent_driving_license_district
- permanent_driving_license_location
- information_about_permanent_driving_license
- registering_for_permanent_driving_license
entities:
- id
- temporary_driving_license_number_slot
- permanent_driving_license_date_slot
- permanent_driving_license_car_category_slot
- permanent_driving_license_district_slot
- permanent_driving_license_location_slot
slots:
names:
type: text
mappings:
- type: custom
id:
type: text
mappings:
- type: from_entity
entity: id
temporary_driving_license_number_slot:
type: text
mappings:
- type: from_entity
entity: temporary_driving_license_number_slot
permanent_driving_license_date_slot:
type: text
mappings:
- type: from_entity
entity: permanent_driving_license_date_slot
permanent_driving_license_car_category_slot:
type: text
mappings:
- type: from_entity
entity: permanent_driving_license_car_category_slot
permanent_driving_license_district_slot:
type: text
mappings:
- type: from_entity
entity: permanent_driving_license_district_slot
permanent_driving_license_location_slot:
type: text
mappings:
- type: from_entity
entity: permanent_driving_license_location_slot
forms:
permanent_driving_license_form:
required_slots:
- id
- temporary_driving_license_number_slot
- permanent_driving_license_date_slot
- permanent_driving_license_car_category_slot
- permanent_driving_license_district_slot
- permanent_driving_license_location_slot
responses:
utter_greet:
- text: Murakaza neza kuri Bakame. Ni gute nabafasha?
utter_just_ask:
- text: Ni gute nagufasha?
utter_submit:
- text: Turangize kwiyandikisha?
utter_cheer_up:
- text: Hano hari agafoto kagufasha!
image: https://i.imgur.com/nGF1K8f.jpg
utter_did_that_help:
- text: Harubwo byagufashije?
utter_happy:
- text: Neza, wakomeza!
utter_goodbye:
- text: Sawa, mugire umunsi mwiza
utter_iamabot:
- text: Ndi irobo rikozwe muri Rasa.
utter_please_rephrase:
- text: Mutwihanganire, ushobora kubisubiramo mu bundi buryo?
utter_irembo_info:
- text: Irembo ni system yubatswe n'abanyarwanda kugira ifashe abaturage kubona service za leta byihuse. Andi makuru wayakura hano https://irembo.gov.rw/home/citizen/all_services
image: https://rtn.rw/wp-content/uploads/2019/07/irembo-300x83.png
utter_ask_if_registering_permanent_driving_license:
- text: Urashaka kwiyandikisha gukorera uruhushya rw'agateganyo?
utter_ask_id:
- text: Indangamuntu yawe ni iyihe
utter_ask_temporary_driving_license_number_slot:
- text: waduha numero y'uruhushya rw'agateganyo yawe
utter_show_permanent_driving_license_submition:
- text: "Aya niyo makuru waduhaye {names}\n\n\
\ nomero y'indangamuntu: {id}\n\n\
\ nomero y'agatenganyo: {temporary_driving_license_number_slot}\n\n\
\ kategori ushaka gukora: {permanent_driving_license_car_category_slot}\n\n\
\ itariki yo gukoreraho: {permanent_driving_license_date_slot}\n\n\
\ akarere ko gukoreramo: {permanent_driving_license_district_slot}\n\n\
\ agace ko muri {permanent_driving_license_district_slot} ko gukoreramo: {permanent_driving_license_location_slot}"
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
actions:
- utter_just_ask
- utter_submit
- action_reset_all_slots
- action_information_about_permanent_driving_license
- utter_ask_if_registering_permanent_driving_license
- utter_ask_id
- utter_ask_temporary_driving_license_number_slot
- action_ask_permanent_driving_license_date_slot
- action_ask_permanent_driving_license_car_category_slot
- action_ask_permanent_driving_license_district_slot
- action_ask_permanent_driving_license_location_slot
- validate_permanent_driving_license_form
- action_submit_permanent_driving_license_form