-
Notifications
You must be signed in to change notification settings - Fork 1
/
bot.json
92 lines (92 loc) · 3.83 KB
/
bot.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": "what_programming_language_are_you",
"questions": [
{
"question": "1. You have a virtual meeting at 9am. What are you doing at 8:58am? \n a. reviewing the meeting notes and agenda so you can participate \n b. drinking coffee, getting ready to lead the meeting \n c. just waking up ",
"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": "2. What celebrity baby name do you secretly love? \n a. Pilot Inspektor \n b. Banks💰 \n c. Apple ",
"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": "3. What's your go-to brunch order? \n a. pancakes \n b. avocado toast \n c. acai bowl ",
"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://YOUR-TWILIO-FUNCTION.twil.io/superpos" //this is unique to you, your base URL will be different
}
}
}
}
]
}