-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.json
executable file
·151 lines (144 loc) · 3.17 KB
/
setup.json
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
{
"start-training":
{
"create a plan":
{
"action": "initUser",
"id": true,
"result":
{
"ok":
{
"text": "I need some basic information to create the perfect training plan for you, how old are you ?",
"context": "set-age"
},
"error": {
"text": "I've got a little problem now, please retry later.",
"context": "base"
}
}
}
},
"set-age": {
"IS-INT":{
"action": "setUserAge",
"id": true,
"result": {
"ok":
{
"text": "What is your current physical condition ?",
"choose": [
["Out of shape"],
["Pretty good"],
["I'm a superhero"]
],
"context": "set-fitness"
},
"error": {
"text": "Please insert a valid age",
"context": "set-age"
}
}
}
},
"set-fitness": {
"IS-STRING":
{
"action": "setUserFitness",
"id": true,
"result": {
"ok":
{
"text": "How many time at week do you want to workout ?",
"choose": [
["2"],
["3"],
["4"],
["5"]
],
"context": "set-days"
},
"error": {
"text": "Please choose between the options",
"choose": [
["Out of shape"],
["Pretty good"],
["I'm a superhero"]
],
"context": "set-fitness"
}
}
}
},
"set-days": {
"IS-INT":
{
"action": "setUserDays",
"id": true,
"result": {
"ok":
{
"text": "Okay, we can start with your first workout, do you want to do it now ?",
"choose": [
["Yes coach"],
["I'll do it later"]
],
"context": "start-test"
},
"error": {
"text": "Sorry I don't understand, how many time at week do you want to workout ?",
"choose": [
["2"],
["3"],
["4"],
["5"]
],
"context": "set-days"
},
"few": {
"text": "You have to workout at least 2 days at week, how many time at week do you want to workout ?",
"choose": [
["2"],
["3"],
["4"],
["5"]
],
"context": "set-days"
},
"much": {
"text": "You can't workout for more than 5 days at week, how many time at week do you want to workout ?",
"choose": [
["2"],
["3"],
["4"],
["5"]
],
"context": "set-days"
}
}
}
},
"start-test":
{
"yes coach":
{
"action": "getWorkout",
"id": true,
"result": {
"ok":
{
"text":"Okay let's start with your first workout, complete as many rounds as possible and try to reduce the rest time as much as possible, but always listen to your body, stop if you feel any kind of discomfort",
"context":"show-workout",
"choose": [
["start"]
]
}
}
},
"i'll do it later":
{
"text":"Okay, I'm here 24h for you, came back when you want to workout",
"context":"base"
}
}
}