Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
JS Freakin' Everywhere: A Chatbot Powered by AWS+NodeJS
Pamela Fox
September 06, 2017
Technology
0
220
JS Freakin' Everywhere: A Chatbot Powered by AWS+NodeJS
A talk given at WaffleJS, about powering Woebot with an entirely JS stack.
Pamela Fox
September 06, 2017
Tweet
Share
More Decks by Pamela Fox
See All by Pamela Fox
pamelafox
0
6
pamelafox
0
9
pamelafox
1
170
pamelafox
1
110
pamelafox
0
96
pamelafox
0
160
pamelafox
1
220
pamelafox
1
180
pamelafox
0
190
Other Decks in Technology
See All in Technology
shirayanagiryuji
1
270
gobeyond20xx
0
240
iwashi86
54
24k
go5paopao
8
770
soracom
0
160
binarymist
0
1.3k
koukyo1994
3
500
koukyo1994
4
830
andysumi
0
160
gamella
3
1.5k
zak3
1
200
udzura
2
250
Featured
See All Featured
jnunemaker
PRO
40
4.6k
pedronauck
652
110k
jrom
116
7.2k
cherdarchuk
71
260k
trallard
14
720
mza
80
4.1k
philhawksworth
190
17k
reverentgeek
167
7.3k
brianwarren
82
4.7k
malarkey
119
16k
notwaldorf
16
1.8k
sugarenia
233
860k
Transcript
JS Freakin’ Everywhere A Chatbot Powered by AWS+NodeJS
Me, a year ago. Ecstatic Art Driftwood Flea Market Buddhist
Retreat 100% NO JS
Along came a startup founder... We made a bot! It
helps people! Help us build it!
Who sat down beside me... And it has a punny
name!!
And enticed Miss Pammy to code And we’re building it
all in something called “NodeJS”!
And we’re off to the races! From 0 to Scalable
in 5 weeks. AWS Lambda AWS DynamodB AWS Beanstalk
None
Why Lambda?
SysOpsJS AWS Lambda Log Processor Cloudwatch BigQuery AWS Lambda Cloudwatch
SlackBot Cloudwatch Slack deploy.sh Upload Notify Checks
BUT WHAT ABOUT NLP?? 99% buttons
We still have NLP tho...
NLP in JavaScript..ish! Python Classifier Training JavaScript Online Classifier svm
intercepts svm weights tfidf scores mood matches
That takes time! Fine, we need to take time! How
are you feeling? I’m excited about tonight Oh, that’s great to hear! • • • NLP! 500ms Twiddle thumbs
Our “CMS” We need a way to collaboratively write content
for Woebot! And we want to A/B content! And we want to write variants! And lesson queueing! And conditional content based on variables! Also, we need it tomorrow!
Google Spreadsheets to the rescue!
Spreadsheets + JS = So Happy Together! Google Apps Script
Linter Google Apps Script JSON Exporter Google Apps Script Github Client New commit: content.json
Duh, we have a website Beanstalk
COMING SOON! Mobile…. AND HIPAA! Hip-hip-hooray!
What’s great about JS on AWS? Scalable! Fast to develop!
Rich ecosystem! Easy to use across the FULL stack! Not so great tho? Lack of NLP libs! Slow computation! Less encryption libs!