-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.yml
133 lines (133 loc) · 3.63 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
version: '2.0'
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
intents:
- affirm
- thankyou
- goodbye
- greet
- ask_exercise
- inform
- ask_lower_stress
- ask_eat_healthy
- deny
- mood_great
- mood_unhappy
- bot_challenge
- out_of_scope
entities:
- exercise
- goals
- sleep
- stress
- diet
- goal
slots:
confirm_exercise:
type: bool
influence_conversation: false
exercise:
type: text
influence_conversation: false
sleep:
type: text
influence_conversation: false
diet:
type: text
influence_conversation: false
stress:
type: text
influence_conversation: false
goal:
type: text
influence_conversation: false
responses:
utter_greet:
- text: Hi! It's time for your daily wellness check. Tracking healthy habits is a great way to measure your health. Would you like to answer a few question about your health?
utter_cheer_up:
- text: 'Here is something to cheer you up:'
image: https://i.imgur.com/nGF1K8f.jpg
utter_did_that_help:
- text: Did that help you?
utter_happy:
- text: Great, carry on!
utter_goodbye:
- text: Bye
utter_iamabot:
- text: I am a bot, powered by Rasa.
utter_stress_info:
- text: It's ok to feel overwhelmed at times. Try to set realistic expectations and exercise time management techniques, like dividing large tasks into more managable pieces, relaxations techniques, like deep breathing and meditation, can be beneficial.
utter_exercise_info:
- text: Most healthy adults should aim to get about 150 mins of moderate exercise per week. This includes activities like a brisk walk or yard walk.
utter_diet_info:
- text: A healthy diet includes fruits and vegetables, whole grains, dairy, lean protein, and plant based fats. While there is a room in a healthy diet for treats, added sugar should be eaten sparingly. Aim for a variety of foods, and balance.
utter_ask_sleep:
- text: How much did you sleep last night?
utter_ask_exercise:
- text: Did you do any exericse?
utter_ask_diet:
- text: Did you stick to the healthy diet yesterday?
utter_ask_stress:
- text: Is your stress level, low, medium, or high?
utter_ask_goal:
- text: Setting goals - even small ones - is a great way to focus your day. What do you want to accomplish?
utter_slots_values:
- text: |
Here's your daily wellness log:
- Exercised?: {confirm_exercise}
- Type of exercise: {exercise}
- Sleep: {sleep}
- Stuck to a healthy diet?: {diet}
- Stress level: {stress}
- Goal: {goal}
utter_no_worries:
- text: No problem
utter_ask_continue:
- text: Sorry, I don't quite understand. Do you want to continue?
actions:
- utter_ask_diet
- utter_ask_exercise
- utter_ask_sleep
- utter_diet_info
- utter_goodbye
- utter_greet
- utter_no_worries
- utter_slots_values
- utter_stress_info
- action_submit_results
- validate_health_form
forms:
health_form:
confirm_exercise:
- type: from_intent
intent: inform
value: true
- type: from_intent
intent: affirm
value: true
- type: from_intent
intent: deny
value: false
exercise:
- type: from_entity
entity: exercise
sleep:
- type: from_entity
entity: sleep
- type: from_intent
intent: deny
value: None
diet:
- type: from_text
intent: inform
- type: from_text
intent: affirm
- type: from_text
intent: deny
stress:
- type: from_entity
entity: stress
goal:
- type: from_text
intent: inform