-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquestions.json
92 lines (92 loc) · 6.66 KB
/
questions.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
{
"actions": [
{
"collect": {
"name": "choose_a_name",
"questions": [
{
"question": "Quick, think of a number from 1-10! Was it closer to: \n a. 5 \n b. 6 \n c. 7",
"name": "q1",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, or c!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "What have you been trying to do more of lately? \n a. reflect and practice gratitude 🙏🏻 \n b. try out a strengthening workout 💪 \n c. put myself in another person's shoes 🥾",
"name": "q2",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, or c!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "Which of these Disney/Pixar phrases do you identify most with? \n a. I never look back, darling. It distracts from the now \n b. This isn’t flying. This is falling with style \n c. A new fantastic point of view",
"name": "q3",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, or c!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
}
],
"on_complete": {
"redirect": {
"method": "POST",
"uri": "https://UNIQUE_USERNAME.twil.io/YOU_CHOOSE_PATH(BE SURE TO CHANGE THIS PART! COPY LINK FROM THE FUNCTION YOU CREATED)"
}
}
}
}
]
}