forked from WilliamGanrot/Rasa-ChatBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.yml
168 lines (161 loc) · 4.1 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
session_config:
session_expiration_time: 0.0
carry_over_slots_to_new_session: true
intents:
- request_directions:
use_entities: []
- request_vacation:
use_entities: []
- request_meeting:
use_entities: []
- greet
- goodbye
- thank_you_bye
- inform_general
- inform_travel_mode
- inform_from_location
- inform_to_location
- out_of_scope
- test_duckling
- inform_leaving_date
- inform_return_date
- affirm
- deny
- inform_dates
- forgot_password
- ask_opening_hours
- ask_website
- ask_job
- inform_email
- affirm_add_more
- request_meeting_provide_attedning
entities:
- from_location
- to_location
- travel_mode
- minDate
- maxDate
- is_valid_dates
- from_directions
- inviteemail
- meeting_date
- invite_more_bool
- emaillist
slots:
from_location:
type: unfeaturized
auto_fill: false
is_valid_dates:
type: bool
maxDate:
type: unfeaturized
minDate:
type: unfeaturized
time:
type: unfeaturized
email:
type: unfeaturized
auto_fill: 1
to_location:
type: unfeaturized
auto_fill: false
travel_mode:
type: unfeaturized
inviteemail:
type: unfeaturized
auto_fill: false
invite_more_bool:
type: unfeaturized
auto_fill: false
emaillist:
type: text
meeting_date:
type: unfeaturized
host_email:
type: unfeaturized
attending:
type: list
templates:
utter_greet:
- text: "Hello! I am an assistant that can help with directions and to book your\
\ vacation.\n How can I help you?"
utter_ok:
- text: "Okay!"
utter_ask_email:
- text: "i need you email!"
utter_greet_and_confirm_help:
- text: Hello! Yes I can help you with that?
utter_confirm_thank_you_bye:
- text: Glad I could help, good bye!
utter_default:
- text: I didn't get that, can you rephrase it?
utter_ask_to_location:
- text: What location do you need directions to?
utter_ask_from_location:
- text: What is your current location?
utter_ask_travel_mode:
- text: How will you be travling?
utter_slots_values:
- text: "I am going to run a give you the directions using the following parameters:\n\
\ - from_location: {from_location}\n - to_location: {to_location}"
utter_submit:
- text: All done!
utter_give_directions:
- text: https://www.google.com/maps/dir/?api=1&origin={from_location}&destination={to_location}&travelmode={travel_mode}
utter_ask_minDate:
- text: When do you plan to leave?
utter_ask_maxDate:
- text: When will you be back at work?
utter_date_values:
- text: "The form parameters are:\n - minDate: {minDate}\n - maxDate: {maxDate}"
utter_not_valid_dates:
- text: Unfortunately you can't have vacation these dates!
utter_ask_add_to_calender:
- text: Okay, do you wish to add the event to your calender?
utter_ask_invite_more_bool:
- text: Do you wish to add anyone else to the meeting?
utter_ask_inviteemail:
- text: "What are the emails of the persons you would like to invite?"
utter_ask_host_email:
- text: "Okay, What is your email adress?"
utter_ask_meeting_date:
- text: When?
utter_date_value:
- text: "The form parameter is: \n - meeting_date: {meeting_date}"
utter_resend_password:
- text: "A randomized password has been sent to {host_email}"
utter_give_opening_hours:
- text: "Our opening hours are monday-friday: 8-17, saturday: 9-17 and sunday: 10-17."
utter_give_website:
- text: "More information can be found on our website at https://somecompanyname.com"
utter_give_job_page:
- text: "Job opportunities, careers and more can be found on our website at\nhttps://somecompanyname.com/jobs"
actions:
- utter_greet
- utter_greet_and_confirm_help
- utter_confirm_thank_you_bye
- utter_default
- utter_ask_to_location
- utter_ask_from_location
- utter_ask_travel_mode
- utter_slots_values
- utter_submit
- utter_ask_minDate
- utter_ask_maxDate
- utter_give_directions
- utter_date_values
- utter_ask_add_to_calender
- check_if_valid_dates
- utter_not_valid_dates
- book_in_calender
- utter_ok
- utter_resend_password
- utter_give_opening_hours
- format_date
- utter_give_website
- utter_give_job_page
forms:
- directions_form
- vacation_form
- meeting_form
- forgot_password_form