-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
715 lines (671 loc) · 45.2 KB
/
index.js
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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
'use strict';
// Import the Dialogflow module from the Actions on Google client library.
const {
dialogflow,
Permission,
Suggestions,
BasicCard,
Carousel,
Image,
Button,
List,
Table,
BrowseCarousel,
BrowseCarouselItem
} = require('actions-on-google');
const _=require('lodash');
const axios=require('axios');
// Import the firebase-functions package for deployment.
const functions = require('firebase-functions');
const admin=require('firebase-admin');
admin.initializeApp({
credential: admin.credential.applicationDefault(),
databaseURL: 'ws://devfest-19.firebaseio.com/'
});
const db=admin.firestore();
const bucket=admin.storage().bucket('gs://devfest-19.appspot.com/');
const bucketAccess={
action: 'read',
expires: Date.now()+ 1000*60*60
};
// Instantiate the Dialogflow client.
const app = dialogflow({debug: true});
//const locale = app.getUserLocale();
// Handle the Dialogflow intent named 'Default Welcome Intent'.
app.intent('Default Welcome Intent', (conv) => {
conv.ask("Hey there! You are in the right place");
conv.ask(new BasicCard({
title:"GDG Kolkata",
text:"",
image:new Image({
url:"https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/gdg.png?alt=media&token=4d595500-9411-4f29-920b-fea302380a7f",
alt:"GDG Logo"
}),
buttons: new Button({
title:"Join the community",
url: "https://www.meetup.com/GDG-Kolkata/"
})
}));//basic card ends here
conv.ask("Let's get you rolling. "+
"Welcome to Google Developers's Group, Kolkata. You will find all the latest upcoming events in the Suggestion Chips. Let the breadcrumbs guide your way!");
conv.ask(new Suggestions("DevFest'19"));
});
app.intent('DevFest_Home', (conv) => {
conv.ask("Here's all you need to know about one of the biggest Tech confluence in Eastern India!");
conv.ask(new BasicCard({title:"GDG DevFest Kolkata '19",
subtitle:"Novotel, Kolkata",
image:new Image({
url:"https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/banner%20-%20Copy.png?alt=media&token=7f7785ad-cc6c-4102-912b-7608e4929432",
alt:"GDG DevFest Kolkata"
}),
buttons:new Button({
title:"Visit Official Site",
url: "https://devfest.gdgkolkata.org/"
})
}));//Basic Card ends here
conv.ask("Welcome to the Biggest Developer Community Event in Kolkata, GDG DevFest'19. This is where you will get every detail about the event. From Live Updates to Developer Sessions.\nPS: Invites are already being rolled out. Keep an eye out!");
conv.ask("What would you like to explore?");
conv.ask(new Suggestions('About DevFest','Grab a Pass','Tracks','Speakers','Important Dates','Venue','Organisers','The Team',"Home",'Exit')); //,'Sessions','Sponsors','About DevFest','Announcements'
});
//This intent handles the Team details
app.intent('the team',(conv)=>{
conv.ask("Here are the different teams...");
const carousel_ = new List({
items: {
// Add the first item to the carousel
'On Ground':{
title:'On Ground',
description: 'You will find them on D-Day!',
},
'Web':{
title:'Web',
description: 'The Official Site Builders!',
},
'App': {
title: 'App',
description: 'Head over to the Playstore to find their Baby!',
},
'Action':{
title: 'Action',
description: 'You can Thank them for this conversation.',
},
'Outreach':{
title: 'Outreach',
description: 'The ones with the best Networking skills.',
},
'Design':{
title: 'Design',
description: 'Everything that looks cool is because of them.',
},
}
});
conv.ask(carousel_);
conv.ask(new Suggestions('Home','Speakers','Exit'));
});
app.intent('the team - custom',(conv,{specific_team})=>{
return new Promise((resolve,reject)=>{
specific_team = conv.arguments.get('OPTION') || specific_team;
console.log("Team received",specific_team);
const teamFile=bucket.file('teamsdata.json');
teamFile.download()
.then(contents=>{
const buffer=contents.toString();
const teamData=JSON.parse(buffer).filter(person=> person.teams.includes(specific_team));
//teamData contains the filtered data
console.log("No. of Members",teamData.length);
if(teamData.length<=9){
conv.ask("Here...");
var itemArr=[];
teamData.forEach(person=>{
itemArr.push(new BrowseCarouselItem({
title:person.name,
url: person.linkedin,
description: "Get in touch at "+person.email,
image: new Image({
url:"https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/banner%20-%20Copy.png?alt=media&token=7f7785ad-cc6c-4102-912b-7608e4929432",
alt:"GDG DevFest Kolkata",
}),
}));//push ends
});//forEach ends
conv.ask(new BrowseCarousel({items:itemArr}));
}else{
conv.ask("Here...");
var names="";
teamData.forEach(person=>{
names+=person.name+", ";
});//forEach ends
conv.ask(new BasicCard({
text:"Members : "+names,
subtitle:specific_team+" Consists of "+teamData.length+" developers.",
title:"The "+specific_team+" Team",
image:new Image({
url:"https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/banner%20-%20Copy.png?alt=media&token=7f7785ad-cc6c-4102-912b-7608e4929432",
alt:"DevFest'19 Image",
}),
buttons:new Button({
title:"Know More",
url:"https://devfest.gdgkolkata.org/team",
}),
}));//basiccard ends here
}//if-else ends here
conv.ask(new Suggestions('Home','Speakers'));
resolve();
})//then ends here
.catch(err=>console.log("Error Occured!",err)); //File download ends
});// promise ends here
});
app.intent('Sponsors',(conv) => {
conv.ask("The event is enabled by our Sponsors and Partners. Visit the Site to check our sponsors.");
conv.ask(new BasicCard({title:"GDG DevFest Kolkata '19",
subtitle:"Novotel, Kolkata",
image:new Image({
url:"https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/banner%20-%20Copy.png?alt=media&token=7f7785ad-cc6c-4102-912b-7608e4929432",
alt:"GDG DevFest Kolkata"
}),
buttons:new Button({
title:"Visit Official Site",
url: "https://devfest.gdgkolkata.org/"
})
}));//Basic Card ends here
conv.ask(new Suggestions('Speakers','Home','Exit'));
});
app.intent('About Devfest',(conv) => {
conv.ask("DevFests are community-led, developer events hosted by GDG chapters around the globe focused on community building and learning about Google’s technologies. Each DevFest is inspired by and uniquely tailored to the needs of the developer community and region that hosts it. DevFest'19 Kolkata is a landmark event hosted by GDG Kolkata in association with Women TechMakers and GDG Cloud Kolkata.");
const carousel = new BrowseCarousel({
items: [
new BrowseCarouselItem({
title: 'GDG Kolkata',
url: 'https://gdgkolkata.org',
description: 'Google Developers Group Kolkata',
image: new Image({
url: 'https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/gdg.png?alt=media&token=4d595500-9411-4f29-920b-fea302380a7f',
alt: 'Image alternate text',
}),
footer: '',
}),
new BrowseCarouselItem({
title: 'WTM Kolkata',
url: 'https://wtmkolkata.in',
description: 'Women TechMakers Kolkata',
image: new Image({
url: 'https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/WTM.png?alt=media&token=36675812-7c12-44d3-b854-6b994eea7211',
alt: 'Image alternate text',
}),
footer: '',
}),
new BrowseCarouselItem({
title: 'GDG Cloud Kolkata',
url: 'https://www.meetup.com/Google-Developer-Group-Cloud-Kolkata/',
description: 'GDG Cloud Kolkata',
image: new Image({
url: 'https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/gdg_cloud.png?alt=media&token=95db6052-fd9d-4430-b564-fcf91daf1330',
alt: 'Image alternate text',
}),
footer: '',
})
],
});
conv.ask(carousel);
conv.ask('To Know More head over to the Official DevFest\'19, Kolkata Site or Subscribe to Notice Board.');
conv.ask(new Suggestions('Notice Board','Home','Exit'));
});
app.intent("organisers",(conv) => {
return new Promise((resolve,reject)=>{
conv.ask("Here's the organizing team for DevFest'19");
const coreFile=bucket.file('coreteamdata.json'); //Update with your Core Team Filename
coreFile.download()
.then(contents=>{
const buffer=contents.toString();
const teamData=JSON.parse(buffer).filter(person=> person.name!="Tanmay Ghosh");
var itemArr=[];
teamData.forEach(person=>{
itemArr.push(new BrowseCarouselItem({
title:person.name,
url:person.linkedin,
description:"Twitter : "+person.twitter,
image:new Image({
url:person.profileImage,
alt:"Profile Picture"
}),
}));//push ends here
});//forEach ends here
conv.ask(new BrowseCarousel({items:itemArr}));
conv.ask("For More, visit the DevFest Kolkata Site or say \'About DevFest\'");
conv.ask(new Suggestions('About DevFest','Home','Exit'));
resolve();
})//then ends here
.catch(err=>console.log("Error Occured!",err));
});//promise ends here
});
app.intent('notice board',(conv) => {
conv.ask("All Updates are here !");
});
app.intent('notice board',(conv)=>{
return new Promise((resolve,reject)=>{
db.collection('important_dates').get().then(snapshot=>{
var itemArr=[];// make a list
conv.ask("This is the notice board, Subscribe to Push notification to stay updated. Is there anything else you'd like to know?");
snapshot.docs.forEach(doc=>{
var document=doc.data();
var carouselItem=new BrowseCarouselItem({title:document.event.toString(),
url: "https://sessionize.com/devfest-kolkata-2019",
description: document.date.toString(),
image:new Image({
url: "https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/banner%20-%20Copy.png?alt=media&token=7f7785ad-cc6c-4102-912b-7608e4929432",
alt: "URL Link"
})
});//change to basic card
itemArr.push(carouselItem);// add to the list of basic cards
});
conv.ask(new BrowseCarousel({items: itemArr})); //This is the response to the user's query.
//add basic card or carousel instead of message.
conv.ask(new Suggestions('Announcements','Home','Tracks','Exit'));
resolve();
}).catch(err=>{
console.log("Getting Error",err);
reject();
});
});
});
app.intent("Speakers",(conv) => {
return new Promise((resolve,reject)=>{
conv.ask("Please wait while we fetch the List!");
conv.ask("This is arguably one of the best DevFest Speaker Lineup Till Date!");
const speakersFile=bucket.file('speakersdata.json'); //Update with your Speaker Data Filename
speakersFile.download()
.then(contents=>{
const buffer=contents.toString();
const data=JSON.parse(buffer);
var itemArr={};
data.forEach(person=>{
const profile=person.links.filter(link=> link.title=="LinkedIn")[0].url;
itemArr[person.fullName]={
title:person.fullName,
description: person.sessions[0].name,
image:new Image({
url:person.profilePicture,
alt: 'Profile Picture',
}),
};//itemArr ends
});//forEach ends
console.log("ItemArr: ",itemArr);
conv.ask(new List({items:itemArr}));
conv.ask(new Suggestions('Register now','About DevFest','Dates to remember','Organisers'));
resolve();
})
.catch(err=>console.log("Error Occured!",err));
});
});
app.intent("Speakers - custom",(conv,{speakers})=>{
return new Promise((resolve,reject)=>{
speakers = conv.arguments.get('OPTION') || speakers;
conv.ask("Here...");
console.log("Speakers Value:",speakers);
conv.ask(new Suggestions('Home','Sessions','Exit'));
const speakersFile=bucket.file('speakersdata.json'); //Update with your Speaker details Filename
speakersFile.download()
.then(contents=>{
const buffer=contents.toString();
const speakerData=JSON.parse(buffer).filter(speaker=>speaker.fullName===speakers)[0];
//console.log("speakerData: ",speakerData);
const profile=speakerData.links.filter(link=>link.title==="LinkedIn")[0].url;
conv.ask(new BasicCard({
text:speakerData.bio,
title:speakerData.fullName,
subtitle:speakerData.tagLine,
buttons: new Button({
title:"Find on LinkedIn",
url:profile,
}),
image:new Image({
url:speakerData.profilePicture,
alt:"Profile Picture",
}),
}));//Basic Card ends here
resolve();
})//then ends here
.catch(err=>console.log("Error Occured",err));
});//Promise ends
});
//showing the list of sessions under each track
app.intent("show_sessions",(conv)=>{
return new Promise((resolve,reject)=>{
conv.ask("Here's the list of all Sessions that are going to take place this time:");
const sessionsFile=bucket.file('sessionsdata.json');
var itemArr={};
sessionsFile.download()
.then(contents=>{
const buffer=contents.toString();
const data=JSON.parse(buffer)[0].sessions;
data.forEach(session=>{
const title=session.title;
const speaker=session.speakers[0].name;
itemArr[title]={
title:title,
description:"By : "+speaker,
};
});//forEach ends here.
conv.ask(new List({
title:"Sessions Happening at DevFest19 Kolkata",
items:itemArr,
}));//list ends here
conv.ask("Click on the Session to Know More");
conv.ask(new Suggestions('Home','Tracks','Exit'));
resolve();
})//then ends here
.catch(err=> console.log("Error Occured!",err));
});
});
app.intent("show_sessions - custom",(conv,{session_title})=>{
return new Promise((resolve,reject)=>{
session_title= conv.arguments.get('OPTION') || session_title;
console.log("session_title ",session_title);
const sessionFile=bucket.file('sessionsdata.json'); //Update with your Session details Filename
sessionFile.download()
.then(contents=>{
conv.ask("Here's more about it...");
const buffer=contents.toString();
const sessionData=JSON.parse(buffer)[0].sessions.filter(session=>session.title===session_title)[0];
const room=sessionData.room===null? '<to be updated>': sessionData.room;
const startTime=sessionData.startsAt===null? '<to be updated>': sessionData.startsAt;
const audience=sessionData.categories[2].categoryItems[0].name;
const sessionType=sessionData.categories[0].categoryItems[0].name;
conv.ask(new BasicCard({
text:"Session Type : "+sessionType+" || Audience Level : "+audience+" || Start Time : "+startTime+" || Room : "+room,
title:sessionData.title,
subtitle:"Speaker : "+sessionData.speakers[0].name,
buttons: new Button({
title: "Watch Live",
url: "https://devfest.gdgkolkata.org"
}),
image: new Image({
url:"https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/banner%20-%20Copy.png?alt=media&token=7f7785ad-cc6c-4102-912b-7608e4929432",
alt: "DevFest'19 Image"
}),
}));//basic card ends here
conv.ask('Subscribe to the Notice Board to get Regular Updates!');
conv.ask(new Suggestions('Home','Sessions','Tracks','Exit'));
resolve();
}) //then ends here
.catch(err=>console.log('Error Occured!',err));//catch ends here
});//Promise ends here
});
app.intent('Tracks',(conv)=>{
conv.ask("This Year, You would find the following Tracks at DevFest'19, Kolkata");
const carousel_ = new List({
items: {
// Add the first item to the carousel
'Cloud': {
title: 'Cloud',
description: 'Special Session on Google Cloud Platform.', },
'ML':{
title: 'ML',
description: 'Improve your ML Game!',
},
'Web':{
title: 'Web',
description: 'The true Homecoming.',
},
'Mobile':{
title: 'Mobile',
description: 'Find the right Tech to build your dream app!',
},
}
});
conv.ask(carousel_);
conv.ask(new Suggestions('Speakers','Return Home'));
});
app.intent('Tracks - custom',(conv,{tracks})=>{
return new Promise((resolve,reject)=>{
tracks = conv.arguments.get('OPTION') || tracks;
conv.ask("Talks in store. Click on the Talk to Watch Live!");
console.log("Tracks Custom-",tracks);
const sessionFile=bucket.file('sessionsdata.json');
sessionFile.download()
.then(contents=>{
var itemArr=[];
const buffer=contents.toString();
const sessionData=JSON.parse(buffer)[0].sessions;
const filteredData=sessionData.filter(session=> session.tracks.includes(tracks));
console.log("Filtered Data:",filteredData);
if(filteredData.length>1){
console.log("Filtered Data Length",filteredData.length);
filteredData.forEach(session=>{
console.log("Session Speaker:",session.speakers);
const roomData=session.room===null ? '<To Be Updated>':session.room;
itemArr.push(new BrowseCarouselItem({
title:session.title,
url: 'https://devfest.gdgkolkata.org/speakers',
description:"Speaker: "+session.speakers[0].name,//add image here
footer:"Room: "+roomData
}));//itemArr ends
});// forEach ends
conv.ask(new BrowseCarousel({
items:itemArr,
}));//conv List ends
} else if(filteredData.length===1){
var single=filteredData[0];
const roomData=single.room===null ? '<To Be Updated>':single.room;
conv.ask(new BasicCard({
text: "Room: "+roomData+" About: "+single.description.slice(0,70)+"...",
title: single.title,
subtitle: single.speakers[0].name,
buttons:new Button({
title:"Go to Live Cast",
url: "devfest.gdgkolkata.org"
}),//add image here
}));//conv BasicCard
}//else if ends
conv.ask(new Suggestions('Cloud','Ml','Web','Mobile','Register','Go back Home','Exit'));
resolve();
})
.catch(err=>console.log("Error Occured!",err));//file download ends
}); //Promise ends
});
app.intent("Register",(conv) => {
conv.ask("Get your pass here .... ");
const card = new BasicCard({
title: 'Get your Passes to the Biggest Community Event in Kolkata Now!',
text: 'GDG Devfest Kolkata 2019 is happening at Novotel Kolkata, subscribe to Notice Board Announcements to stay updated!',
image: new Image({
url: 'https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/banner%20-%20Copy.png?alt=media&token=7f7785ad-cc6c-4102-912b-7608e4929432', //insert venue image
alt: 'Image alternate text',
}),
buttons: new Button({
title: 'Get a Pass',
url: 'https://docs.google.com/forms/d/e/1FAIpQLSfnitNzIblk6ciVqYgIHRM303Dl44ZvpAtMcqvqWQeQUBYLdw/viewform',
}),
display: 'CROPPED',
});
conv.ask(card);
conv.ask(new Suggestions("Know more about Tracks","Speakers","Home"));
});
app.intent('Venue',(conv) => {
conv.ask("Find us here .... ");
const card = new BasicCard({
title: 'See you there!',
text: 'Novotel Kolkata Hotel And Residences',
image: new Image({
url: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUTExMVFhUXFh4YGRcYGB0aGBgYGB4YGhgXFh0dHiggGB4lHRcXIjEhJSotLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGy0mHx8tLS0tLS0vLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAMIBAwMBIgACEQEDEQH/xAAbAAABBQEBAAAAAAAAAAAAAAAFAAIDBAYBB//EAEMQAAIBAgQEAwUECQIGAgMBAAECEQADBBIhMQUiQVEGE2EycYGRoSNCUrEHFDNicpLB0fCi0kNTgrLh8RUkNHPCFv/EABkBAAMBAQEAAAAAAAAAAAAAAAABAgMEBf/EAC8RAAICAQMDAgQEBwAAAAAAAAABAhEDEiExBEFRE2EUIjJxgZHh8AUzQlKhwdH/2gAMAwEAAhEDEQA/ADiYc1Yt4ITJrtrWpxWbmzpUEWLVtf8A1Xbt2NBUJaKYGqFG2W5uqGXFYmaiINWi1RvW8ZtHNLEnuRKa7npEVytFKzKWIeHqUPVcVIKqzJwJQ9SeZUApwp2TpZYRqdNQoakU+tK0NInR6aWqM3VG7L8xXP1i2FViwAYSpOzAaGO+tTaK0snQVITVZcbb6NPuBNMbilsGDnHqUMUtSHpZbVaTVXXidk/f+h/tUqYq2fvr84/OnYUOJFIOSKlCg7EGnZKVj0kCgzT6flpEUtQ9BHmrvmV3LSy0WGlkVwTUJsVciuEUtZXpkG1JrlSFaYVp6haCLPXMxqaBXKlyKUCCDSqWaVTY9ALynvUig1IqU7LXNrPTeEij1roWnlKQU1Woh434G+XSFv1p8GlBp6xen7DBh/3hS/Vv3hUmWuZaam/Jfox8DDhwPvCmNb9amiuGKpZH5Il08X2IwvrXQKdSkVfqGT6YegqljLQLmEQ9yRrPX7hn59auo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ert venue image
alt: 'Image alternate text',
}),
buttons: new Button({
title: 'Get Directions',
url: 'https://goo.gl/maps/mzCwyBK1HcXnhmXR9', //replace with direction link
}),
display: 'CROPPED',
});
conv.ask(card);
conv.ask(new Suggestions("Register","Know more about Tracks","Speakers","Home"));
});
// most important and biggest intent. Will begin coding shortly. - Abhik
app.intent('Backup_Intent',(conv,params)=> {
return new Promise((resolve,reject)=>{
//conv.ask("The Breadcrumbs shall guide the way!");
console.log("Parameters Received:",params);
//extracting parameters
const person=params.person;
const sessionDetails=params.sessions;
const team=params.specific_team;
const tracks=params.tracks;
const isOrganizer=params.organisers;
const f1=typeof(person)=="string" ? false :true; //personFlag
const f2=sessionDetails.length===0?false:true; //sessiondetailsflag
const f3=team.length===0?false:true; //team flag
const f4=tracks.length===0?false:true; //tracks flag
const f5=isOrganizer.length===0?false:true; //organizer flag
var file;
console.log("Person ",person," isOrganizer ",isOrganizer,"sessionDetails ",sessionDetails," team ",team.length," tracks ",tracks);
console.log("Type of : Person ",typeof(person)," isOrganizer ",typeof(isOrganizer),"sessionDetails ",typeof(sessionDetails)," team ",typeof(team)," tracks ",typeof(tracks));
// various conditions start here
if(f1 && f3){
console.log("Person & team Present",person,team);
file=bucket.file('teamsdata.json');
file.download()
.then(contents=>{
const buffer=contents.toString();
const teamData=JSON.parse(buffer).filter(teamMate=>teamMate.name.toLowerCase()===person.name.toLowerCase())[0];//contains the required person
console.log("Person Chose",teamData);
var personTeam="Part of : ";
teamData.teams.forEach(team=>personTeam=personTeam+team+" ; ");
conv.ask(new BasicCard({
title:teamData.name,
subtitle:personTeam,
text:"You can contact me at "+teamData.email,
buttons:new Button({
title:"Find on LinkedIn",
url:teamData.linkedin
}),
}));//basic card ends here
conv.ask(new Suggestions('Home','Speakers','Tracks','Sessions','Get Your Pass','About DevFest','Exit'));
resolve();
})
.catch(err=>console.log("Error Occured while accessing teamsdata",err));//file download ends
//person && team ends
}else if((f1 && f2) || (f4 && f1)){
console.log("Person and (Session or tracks) Present",sessionDetails,person,tracks);
file=bucket.file('sessionsdata.json');
file.download()
.then(contents=>{
const buffer=contents.toString();
var sessionData=JSON.parse(buffer)[0].sessions.filter(session=>{
console.log("Speaker Names for",session.title,_.pick(session.speakers,['name'])); //printing speaker names
const bufferArr=session.speakers.filter(eachSpeaker=> eachSpeaker.name.toLowerCase()===person.name.toLowerCase());
if(bufferArr.length>0) return true;
else return false;
});//filtering ends here sessionsData contains the session detail.
console.log("Sessions details",sessionData); //printing sessions data
if(sessionData.length>0){
sessionData=sessionData[0];
conv.ask("Here's what you are looking for...");
const room=sessionData.room===null? '<to be updated>': sessionData.room;
const startTime=sessionData.startsAt===null? '<to be updated>': sessionData.startsAt;
const audience=sessionData.categories[2].categoryItems[0].name;
const sessionType=sessionData.categories[0].categoryItems[0].name;
conv.ask(new BasicCard({
text:"Session Type : "+sessionType+" || Audience Level : "+audience+" || Start Time : "+startTime+" || Room : "+room,
title:sessionData.title,
subtitle:"Speaker : "+sessionData.speakers[0].name,
buttons: new Button({
title: "Watch Live",
url: "https://devfest.gdgkolkata.org"
}),
image: new Image({
url:"https://firebasestorage.googleapis.com/v0/b/devfest-19.appspot.com/o/banner%20-%20Copy.png?alt=media&token=7f7785ad-cc6c-4102-912b-7608e4929432",
alt: "DevFest'19 Image"
}),
}));//basic card ends here
}else conv.ask("There might be some mistake in what you said, could you please check?");
conv.ask("You can always check out the Official DevFest'19 Site for more!");
conv.ask(new Suggestions('Home','Speakers','Tracks','Sessions','Get Your Pass','About DevFest','Exit'));
resolve();
})
.catch(err=>console.log("Error Occured while accessing teamsdata",err));//file download ends
}else if(f5 && f1){
console.log("Need to search organizer's list");
file=bucket.file('coreteamdata.json'); //Update with your Core Team Filename
conv.ask("Here...");
file.download()
.then(contents=>{
const buffer=contents.toString();
var corePerson=JSON.parse(buffer).filter(buf=> buf.name!="xyz" && person.name.toLowerCase()===buf.name.toLowerCase());
console.log("Core Person",corePerson);
if(corePerson.length>0){
corePerson=corePerson[0];
conv.ask(new BasicCard({
text:"Twitter : "+corePerson.twitter,
title:corePerson.name,
subtitle:corePerson.designation,
image:new Image({
url:corePerson.profileImage,
alt:"Profile Image",
}),
buttons:new Button({
title:"Connect Over LinkedIn",
url:corePerson.linkedin
}),
}));//BasicCard Ends here
}else conv.ask("I don't think so. But You can always check the official site!");
conv.ask(new Suggestions('Home','Speakers','Tracks','Sessions','Get Your Pass','About DevFest','Exit'));
resolve();
})
.catch(err=>console.log('Error happened while accessing coreteamdata.json',err));//file download ends here
}else if(f4){
console.log("Just tracks Present",tracks);
conv.ask("Here are the Session in this track. Click on them to Watch Live!");
file=bucket.file('xyz.json'); //Update with Path to your File for Speakers & Sessions
file.download()
.then(contents=>{
var itemArr=[];
const buffer=contents.toString();
const sessionData=JSON.parse(buffer)[0].sessions;
const filteredData=sessionData.filter(session=>session.tracks.filter(eachTrack=>eachTrack.toLowerCase()===tracks.toLowerCase()).length>0);//Filtering ends here, filteredData contains the sessions
console.log("Filtered Data:",filteredData);
if(filteredData.length>1){
console.log("Filtered Data Length",filteredData.length);
filteredData.forEach(session=>{
console.log("Session Speaker:",session.speakers);
const roomData=session.room===null ? '<To Be Updated>':session.room;
itemArr.push(new BrowseCarouselItem({
title:session.title,
url: 'https://devfest.gdgkolkata.org',
description:"Speaker: "+session.speakers[0].name,//add image here
footer:"Room: "+roomData
}));//itemArr ends
});// forEach ends
conv.ask(new BrowseCarousel({
items:itemArr,
}));//conv List ends
conv.ask(new Suggestions('Home','Speakers','Tracks','Sessions','Get Your Pass','About DevFest','Exit'));
resolve();
} else if(filteredData.length===1){
var single=filteredData[0];
const roomData=single.room===null ? '<To Be Updated>':single.room;
conv.ask(new BasicCard({
text: "Room: "+roomData+" About: "+single.description.slice(0,70)+"...",
title: single.title,
subtitle: single.speakers[0].name,
buttons:new Button({
title:"Go to Live Cast",
url: "https://devfest.gdgkolkata.org"
}),//add image here
}));//conv BasicCard
conv.ask(new Suggestions('Home','Speakers','Tracks','Sessions','Get Your Pass','About DevFest','Exit'));
resolve();
}//else if ends
}).catch(err => console.log("Error Occured in Accessing tracks data",err));
}else if(f1){
console.log("Just Person Present. No other Info",person);
conv.ask("Could you Please elaborate? What do you want to know about",person.name,"?");
conv.ask(new Suggestions('Home','Speakers','Tracks','Sessions','Get Your Pass','About DevFest','Exit'));
resolve();
}else{
conv.ask("The Breadcrumbs shall guide the way!");
conv.ask("Watch out for Suggestions!");
conv.ask(new Suggestions('Home','Speakers','Tracks','Sessions','Get Your Pass','About DevFest','Exit'));
resolve();
}
});//Promise ends here
});
// Set the DialogflowApp object to handle the HTTPS POST request.
exports.dialogflowFirebaseFulfillment = functions.https.onRequest(app);