This repository has been archived by the owner on Jan 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot.json
171 lines (171 loc) · 5.69 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"friendlyName" : "",
"logQueries" : true,
"uniqueName" : "voice-memo",
"defaults" : {
"defaults" : {
"assistant_initiation" : "task://get_memo_data",
"fallback" : "task://get_memo_data",
"collect" : {
"validate_on_failure" : "task://get_memo_data"
}
}
},
"styleSheet" : {
"style_sheet" : {
"collect" : {
"validate" : {
"on_failure" : {
"repeat_question" : false,
"messages" : [
{
"say" : {
"speech" : "I didn't get that. What did you say?"
}
},
{
"say" : {
"speech" : "I still didn't catch that. Please repeat."
}
},
{
"say" : {
"speech" : "Let's try one last time. Say it again please."
}
}
]
},
"on_success" : { "say" : { "speech" : "" } },
"max_attempts" : 4
}
},
"voice" : {
"say_voice" : "Polly.Matthew"
},
"name" : ""
}
},
"fieldTypes" : [],
"tasks" : [
{
"uniqueName" : "list_memos",
"actions" : {
"actions" : [
{
"collect" : {
"on_complete" : {
"redirect" : {
"method" : "POST",
"uri" : "<ENTER_API_URL_HERE>/list_memos"
}
},
"name" : "query",
"questions" : [
{
"type" : "Twilio.Number",
"prefill" : "limit",
"question" : "How many memos would you like to look through?",
"name" : "limit"
}
]
}
}
]
},
"fields" : [
{
"uniqueName" : "limit",
"fieldType" : "Twilio.NUMBER"
}
],
"samples" : [
{
"language" : "en-US",
"taggedText" : "List {limit} memo"
},
{
"language" : "en-US",
"taggedText" : "List {limit} memos"
},
{
"language" : "en-US",
"taggedText" : "What are my last {limit} memos?"
},
{
"language" : "en-US",
"taggedText" : "List my last {limit} memos"
},
{
"language" : "en-US",
"taggedText" : "All memos"
},
{
"language" : "en-US",
"taggedText" : "What memos do I have?"
},
{
"language" : "en-US",
"taggedText" : "List memos"
}
]
},
{
"uniqueName" : "get_memo_data",
"actions" : {
"actions" : [
{
"collect" : {
"on_complete" : {
"redirect" : {
"method" : "POST",
"uri" : "<ENTER_API_URL_HERE>/start_memo"
}
},
"name" : "get_memo_data",
"questions" : [
{
"question" : "What do you want to title your memo?",
"name" : "memo_title"
},
{
"question" : "What tag do you want to add?",
"name" : "memo_tag"
}
]
}
},
{
"say" : "Great! Calling now."
}
]
},
"fields" : [],
"samples" : [
{
"language" : "en-US",
"taggedText" : "Voice memo"
},
{
"language" : "en-US",
"taggedText" : "Record memo"
},
{
"language" : "en-US",
"taggedText" : "Record"
},
{
"language" : "en-US",
"taggedText" : "I want to record a memo"
},
{
"language" : "en-US",
"taggedText" : "start memo"
},
{
"language" : "en-US",
"taggedText" : "memo"
}
]
}
]
}