-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdata.yml
More file actions
353 lines (347 loc) · 11.2 KB
/
data.yml
File metadata and controls
353 lines (347 loc) · 11.2 KB
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
#todo
# some are Prompt rude
bot:
name: "Dwight"
description: 'An Assistant to you'
clarificationPrompt:
messages:
- contentType: 'PlainText'
content: |
Welcome to Dwight. Connect as many services(Spotify, Uber and Gmail) as you want and Dwight will here to help. Just type "Book a cab" or "Play some music" or "Show my unread mails" and it goes on....
For judging please use following credentials
Use following credentials
Gmail: aws.chatbot.mohit@gmail.com
Spotify Username: awschatbotmohit
Uber is already connected
Password is User1234 for all
maxAttempts: 5
abortStatement:
messages:
- contentType: 'PlainText'
content: 'Bot failed'
idleSessionTTLInSeconds: 123
processBehavior: 'BUILD'
locale: 'en-US'
childDirected: True
slot_types:
- name: "query_slot_type"
description: "Search mail"
enumerationValues:
- value: booking
- value: event
- name: "email_type_slot_type"
description: "Unread, archived, sent, starred mails"
enumerationValues:
- value: unread
- value: archived
- value: sent
- value: starred
- name: "email_message_slot_type"
description: "email message"
enumerationValues:
- value: sure
- value: thanks
- value: i am on it
- value: cool
- value: Hey whats up
- value: i am fine
- name: subject_slot_type
description: "subject for email"
enumerationValues:
- value: hello
- value: hi
- name: reply_intent_slot_type
description: "Chck if user want to reply"
enumerationValues:
- value: reply
- name: email_slot_type
description: "email address"
enumerationValues:
- value: mohmun16@gmail.com
- value: aws.chatbot.mohit@gmail.com
- value: mohitcrox@gmail.com
- name: from_work_slot_type
description: "work home uber"
enumerationValues:
- value: from work
- name: to_work_slot_type
description: "work home uber"
enumerationValues:
- value: to work
- name: to_home_slot_type
description: "work home uber"
enumerationValues:
- value: to home
- name: from_home_slot_type
description: "work home uber"
enumerationValues:
- value: from home
- name: fare_slot_type
description: "work home uber"
enumerationValues:
- value: first
- value: second
- value: third
- value: fourth
- value: uberGO
- value: uberX
- value: UberXL
- value: UberBLACK
intents:
# - name: 'SearchGmail'
# description: 'Search your gmail inbox'
# sampleUtterances:
# - "search gmail"
# - "search for {q} in gmail"
# slots:
# - name: "q"
# description: "Search query"
# slotConstraint: 'Required'
# slotType: 'query_slot_type'
# slotTypeVersion: "$LATEST"
# valueElicitationPrompt:
# messages:
# - contentType: "PlainText"
# content: "What is your search query"
# maxAttempts: 3
# fulfillmentActivity:
# type: "CodeHook"
# codeHook:
# uri: "arn:aws:lambda:us-east-1:420758276632:function:test"
# messageVersion: "1.0"
- name: 'GetEmailGmail'
description: 'Get emails from you gmail inbox'
sampleUtterances:
- "Show me last email"
- "Show me last email from {from_person_slot}"
- "show emails from {from_person_slot}"
- "Show me last email to {to_person_slot}"
- "show emails to {to_person_slot}"
- "Show me last email from {from_first_name_slot}"
- "show emails from {from_first_name_slot}"
- "Show me last email to {to_first_name_slot}"
- "show emails to {to_first_name_slot}"
- "Get me last email"
- "whats my last {email_type_slot} email"
- "show me emails after {time_slot}"
- "show me emails after {date_slot}"
- "search emails for {query_slot}"
- "search {query_slot} in emails"
- "search emails containing {query_slot}"
- show me {email_type_slot} emails
slots:
- name: "query_slot"
description: "Search for anything"
slotConstraint: Optional
slotType: 'query_slot_type'
slotTypeVersion: '$LATEST'
valueElicitationPrompt:
maxAttempts: 3
messages:
- contentType: PlainText
content: What is your query for searching mails?
- name: "email_type_slot"
description: "Get Unread, starred, archived mails"
slotConstraint: "Optional"
slotType: 'email_type_slot_type'
slotTypeVersion: '$LATEST'
- name: "time_slot"
slotConstraint: "Optional"
slotType: "AMAZON.TIME"
- name: "date_slot"
slotConstraint: "Optional"
slotType: "AMAZON.DATE"
- name: "from_person_slot"
slotConstraint: "Optional"
slotType: "AMAZON.Person"
- name: "to_person_slot"
slotConstraint: "Optional"
slotType: "AMAZON.Person"
- name: "from_first_name_slot"
slotConstraint: "Optional"
slotType: "AMAZON.US_FIRST_NAME"
- name: "to_first_name_slot"
slotConstraint: "Optional"
slotType: "AMAZON.US_FIRST_NAME"
- name: 'BookCabUber'
description: "Books cab for you"
sampleUtterances:
- I want to book a cab
- book uber
- book cab
- book cab for me
- book cab to {to_postal_address_slot}
- book cab from {from_postal_address_slot} to {to_postal_address_slot}
- book cab {from_work_slot}
- book cab {to_work_slot}
- book cab {from_home_slot}
- book cab {to_home_slot}
- book cab {to_work_slot} {from_home_slot}
- book cab {from_home_slot} {to_work_slot}
- book cab {to_home_slot} {from_work_slot}
- book cab {from_work_slot} {to_home_slot}
slots:
- name: to_postal_address_slot
slotConstraint: Optional
slotType: AMAZON.PostalAddress
valueElicitationPrompt:
maxAttempts: 3
messages:
- contentType: PlainText
content: Please tell me your destination address
- name: from_postal_address_slot
slotConstraint: Optional
slotType: AMAZON.PostalAddress
valueElicitationPrompt:
maxAttempts: 3
messages:
- contentType: PlainText
content: Please tell me your pickup address
- name: from_work_slot
slotConstraint: Optional
slotType: from_work_slot_type
slotTypeVersion: "$LATEST"
- name: to_work_slot
slotConstraint: Optional
slotType: to_work_slot_type
slotTypeVersion: "$LATEST"
- name: to_home_slot
slotConstraint: Optional
slotType: to_home_slot_type
slotTypeVersion: "$LATEST"
- name: from_home_slot
slotConstraint: Optional
slotType: from_home_slot_type
slotTypeVersion: "$LATEST"
- name: fare_slot
slotConstraint: Optional
slotType: fare_slot_type
slotTypeVersion: "$LATEST"
- name: 'ConnectSpotify'
description: 'Connect your spotify acc'
sampleUtterances:
- 'add spotify'
- 'connect spotify'
- name: 'DeleteMailGmail'
description: 'Delete message in Gmail'
sampleUtterances:
- 'Delete this'
- 'delete'
- 'trash'
- 'trash this'
- name: 'SendMailGmail'
description: 'Send message in Gmail'
sampleUtterances:
- 'send email'
- 'send message'
- 'send message {email_message_slot}'
- 'send message {email_message_slot} to {email_slot} with {subject_slot}'
- 'send email {email_message_slot} to {email_slot} with {subject_slot}'
- 'send message {email_message_slot} with {subject_slot}'
- 'send email {email_message_slot} with {subject_slot}'
- 'send message {email_message_slot} with subject {subject_slot}'
- 'send email {email_message_slot} with subject {subject_slot}'
- 'email {email_message_slot} with subject {subject_slot}'
- '{reply_intent_slot} email'
- '{reply_intent_slot} message'
- '{reply_intent_slot} email {email_message_slot}'
- '{reply_intent_slot} message {email_message_slot}'
slots:
- name: reply_intent_slot
slotConstraint: Optional
slotType: reply_intent_slot_type
slotTypeVersion: "$LATEST"
- name: email_message_slot
slotConstraint: Optional
slotType: email_message_slot_type
slotTypeVersion: "$LATEST"
valueElicitationPrompt:
maxAttempts: 3
messages:
- contentType: PlainText
content: What should I send in body?
- name: subject_slot
slotConstraint: Required
slotType: subject_slot_type
slotTypeVersion: "$LATEST"
valueElicitationPrompt:
maxAttempts: 3
messages:
- contentType: PlainText
content: What should be the subject?
- name: email_slot
slotConstraint: Optional
slotType: email_slot_type
slotTypeVersion: "$LATEST"
valueElicitationPrompt:
maxAttempts: 3
messages:
- contentType: PlainText
content: Please provide email address
- name: 'PlaySpotify'
description: 'Play spotify'
sampleUtterances:
- 'resume spotify'
- 'play spotify'
- 'play on spotify'
- 'play some spotify'
- 'play music'
- 'play some music'
- 'play some music by {artist}'
- 'play some {artist}'
- 'play {artist}'
- 'resume music'
- 'play song by {artist}'
- 'play song {song}'
- 'play song {song} by {artist}'
- 'play {song} by artist {artist}'
- 'play song {song} by artist {artist}'
- 'play album {album}'
slots:
- name: "artist"
description: "Spotify artist"
slotConstraint: 'Optional'
slotType: 'AMAZON.Artist'
valueElicitationPrompt:
messages:
- contentType: "PlainText"
content: "What artist"
maxAttempts: 3
- name: "song"
description: "Spotify song"
slotConstraint: 'Optional'
slotType: 'AMAZON.MusicRecording'
valueElicitationPrompt:
messages:
- contentType: "PlainText"
content: "What song"
maxAttempts: 3
- name: "album"
description: "Spotify album"
slotConstraint: 'Optional'
slotType: 'AMAZON.MusicAlbum'
valueElicitationPrompt:
messages:
- contentType: "PlainText"
content: "What album"
maxAttempts: 3
- name: 'StopSpotify'
description: 'Stop spotify'
sampleUtterances:
- 'pause song'
- 'stop song'
- 'stop song on spotify'
- 'pause spotify'
- 'pause on spotify'
- name: NextIntentSpotify
parentIntentSignature: AMAZON.NextIntent
- name: PauseIntentSpotify
parentIntentSignature: AMAZON.PauseIntent
- name: PreviousIntentSpotify
parentIntentSignature: AMAZON.PreviousIntent
- name: ShuffleOffIntentSpotify
parentIntentSignature: AMAZON.ShuffleOffIntent
- name: ShuffleOnIntentSpotify
parentIntentSignature: AMAZON.ShuffleOnIntent
- name: StopIntentSpotify
parentIntentSignature: AMAZON.StopIntent