/
domain.yml
128 lines (110 loc) · 2.85 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
version: '2.0'
intents:
- greet
- goodbye
- affirm
- deny
- bot_challenge
- inform
- out_of_scope
- thankyou
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
entities:
- exercise
- sleep
- stress
responses:
utter_greet:
- text: Hi! It's time for your daily wellness check. Tracking healthy habits is a great way to measure your progress over time. Would you like to answer few questions about your health?
utter_goodbye:
- text: Bye
utter_iamabot:
- text: I am a bot, powered by Rasa.
utter_ask_health_form_confirm_exercise:
- text: Did you exercise yesterday? Don't sweat it if you didn't run a marathon - walks count!
utter_ask_health_form_sleep:
- text: How much sleep did you get 💤 last night?
utter_ask_health_form_exercise :
- text: What kind of exercise did you do?
utter_ask_health_form_diet:
- text: Did you stick to a healthy diet 🥦 yesterday?
utter_ask_health_form_stress:
- text: Is your stress level low, medium or high 🧘🏼?
buttons:
- title: "Low"
payload: '/inform{{"stress": "low"}}'
- title: "Medium"
payload: '/inform{{"stress": "medium"}}'
- title: "High"
payload: '/inform{{"stress": "high"}}'
utter_ask_health_form_goal:
- text: Setting goals - even small ones - is a great way to focus your day. What do you want to accomplish today 🥇 ?
utter_slots_value:
- text: "Here's your daily wellness log:\n
- Exercised?: {confirm_exercise}\n
- Type of exercise: {exercise}\n
- Sleep: {sleep}\n
- Stuck to a healthy diet?: {diet}\n
- Stress level: {stress}\n
- Goal: {goal}"
utter_no_worries:
- text: No Problem :)
utter_ask_continue:
- text: Sorry, I don't quite understand. Do you want to continue?
actions:
- 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
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: false