-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.yml
281 lines (238 loc) · 6.26 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
version: "2.0"
intents:
- greet
- goodbye
- affirm
- deny
# - mood_great
# - mood_unhappy
- bot_challenge
- motivational_quote
- inform
- future
- EXTERNAL_set_info
- EXTERNAL_new_user
- EXTERNAL_goal_progress
- feeling
- improve_mood
- new_goal
- user.tired
- user.angry
- bot.what_can_do
- user.sad
- user.lonely
- user.bored
- bot.bad
- user.busy
- appraisal.welcome
- bot.clever
- emotions.ha_ha
- bot.birth_date
- user.sleepy
- dialog.sorry
- user.loves_bot
- bot.my_friend
- appraisal.thank_you
- appraisal.good
entities:
# mission & goals
# - mission
- goal
- goal_type
# numbers
- time
- word_time
- number
- duration
# user info
- user_name
- user_email
- user_id
- user_is_new
# emotion
- sentiment
forms:
# NOTE: Each form slot should have "influence_conversation: false"
# and "auto_fill: false"
new_goal_form:
goal:
- type: from_entity
entity: goal
goal_type:
- type: from_entity
entity: goal_type
goal_end:
- type: from_entity
entity: word_time
goal_progress_form:
goal_progress:
- type: from_text
record_mood_form:
mood_reason:
- type: from_text
# form made so I can implement what the users would like to see
improve_mood_form:
help:
- type: from_text
slots:
# SECTION: Goals
goal:
type: text
influence_conversation: false
auto_fill: false
goal_type:
type: text
influence_conversation: false
auto_fill: false
goal_end:
type: text
influence_conversation: false
auto_fill: false
from_text:
type: text
influence_conversation: false
auto_fill: false
has_goals:
type: bool
influence_conversation: true
# SECTION: User info
user_name:
type: text
influence_conversation: false
# TODO: Remove this value
initial_value: "Lila"
user_email:
type: text
influence_conversation: false
initial_value: "[email protected]"
user_id:
type: text
influence_conversation: false
initial_value: "5fe825e39fb9ba71e7320534"
user_is_new:
type: bool
influence_conversation: false
initial_value: false
# SECTION: Sentiment
sentiment:
type: slots.sentimentSlot.SentimentScoreSlot
sentiment_for_form:
type: float
influence_conversation: true
# SECTION: Mood
improve_mood_with:
type: categorical
values:
- fruit
influence_conversation: true
mood_reason:
type: text
influence_conversation: false
auto_fill: false
# SECTION: Numbers
time:
type: text
influence_conversation: true
# SECTION: Help
help:
type: text
influence_conversation: false
# used when setting time slot directly from words
# e.g, /info{"word_time": "January 25"}
word_time:
type: text
influence_conversation: true
actual_time:
type: text
influence_conversation: true
number:
type: float
influence_conversation: false
responses:
utter_greet:
- text: "What's up!"
- text: "Hey, how are you doing?"
- text: "Hey {user_name}! How you feeling?"
utter_goodbye:
- text: "Talk to you later!"
- text: "See ya {user_name}👋"
- text: "We'll talk soon, bye!"
utter_iam_bot:
- text: "I am your motivational assistant, Moti"
- text: "I was made using artificial intelligence. I'm still young, and am getting used to talking to people"
- text: "I'm just a bunch of ones and zeros :)"
# ANCHOR: Mood
utter_ask_improve_mood_form_help:
- text: "What can I do to help in the future? I'm still learning, so I could use your advice"
- text: "How can I help you if you feel bad like this again?"
- text: "Help me help you. What would you like me to do in the future to help you feel better?"
utter_thanks_for_help:
- text: "Thanks for the help"
- text: "I appreciate the feedback🤙"
# ANCHOR: User moods
utter_user.tired:
- text: "Sounds like it's time to take a break, what do ya say?"
- text: "How much sleep did you get last night?"
- text: "If you have time, take a nap.😴 May help you feel better."
utter_user.angry:
- text: "Why are you angry?"
- text: "What's making you so angry?"
utter_user.sad:
- text: "What's got you feeling down?"
- text: "What happened?"
- text: "Anything happen to you recently?"
utter_feel_better:
- text: "That sucks. Remember that things like this are only temporary. Try to focus on the things that make you happy."
utter_user.lonely:
- text: "Perhaps this could help: https://www.youtube.com/watch?v=otFrNM7PnME"
- text: "If you can, try to get outside more. Meet more people."
utter_sorry:
- text: "Sorry about that."
- text: "My apologies"
- text: "I'm sorry you feel that way"
utter_bot_fault:
- text: "Is it my fault?😲"
utter_bot.bad:
- text: "Geez {user_name}, take it easy on me, I'm new remember?"
- text: "What don't you like about me?"
- text: "Hey I'm not all bad!!!"
- text: "That's a lot of negative energy {user_name}😳"
utter_user.busy:
- text: "If you need to, we can pick this up later, ok?🤙"
# ANCHOR: Questions about bot
utter_bot.what_can_do:
- text: "I'm still being developed, but right now I can keep track of your goals and help you feel at your best."
- text: "I can make sure you stick to your goals and keep your mood up"
- text: "I'm here to make you the best possible version of yourself!"
# ANCHOR: Miscellanous
utter_goal_progress:
- text: "Sounds great. Lemme know if you need any help"
- text: "Good work! Keep up the progress💫"
- text: "That's what I like to hear {user_name}!"
actions:
# new user
# - action_new_user_mission
- action_new_user_goal
# mission
# - action_ask_new_mission_form_mission
# - action_save_mission
# mood
- action_ask_record_mood_form_mood_reason
- action_save_mood
# - action_improve_mood
# quote
- action_grab_quote
# goal
- action_ask_new_goal_form_goal
- action_save_goal
- action_goal_progress
# time
- action_get_time_from_text
- action_get_time_from_words
- action_reset_time
# form validation
# - validate_new_goal_form
- validate_record_mood_form
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true