Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JS Freakin' Everywhere: A Chatbot Powered by AWS+NodeJS

Pamela Fox
September 06, 2017

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

More Decks by Pamela Fox

Other Decks in Technology

Transcript

  1. JS Freakin’
    Everywhere
    A Chatbot Powered by AWS+NodeJS

    View full-size slide

  2. Me, a year ago.
    Ecstatic Art Driftwood Flea Market Buddhist Retreat
    100% NO JS

    View full-size slide

  3. Along came a startup founder...
    We made a bot!
    It helps people!
    Help us build it!

    View full-size slide

  4. Who sat down beside me...
    And it has a
    punny name!!

    View full-size slide

  5. And enticed Miss Pammy to code
    And we’re
    building it all in
    something called
    “NodeJS”!

    View full-size slide

  6. And we’re off to the races!
    From 0 to Scalable in 5 weeks.
    AWS Lambda AWS DynamodB AWS Beanstalk

    View full-size slide

  7. SysOpsJS
    AWS Lambda
    Log Processor
    Cloudwatch BigQuery
    AWS Lambda
    Cloudwatch SlackBot
    Cloudwatch Slack
    deploy.sh Upload Notify
    Checks

    View full-size slide

  8. BUT WHAT ABOUT NLP??
    99% buttons

    View full-size slide

  9. We still have NLP tho...

    View full-size slide

  10. NLP in JavaScript..ish!
    Python
    Classifier
    Training
    JavaScript
    Online
    Classifier
    svm intercepts
    svm weights
    tfidf scores
    mood matches

    View full-size slide

  11. 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

    View full-size slide

  12. 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!

    View full-size slide

  13. Google Spreadsheets to the rescue!

    View full-size slide

  14. Spreadsheets + JS = So Happy Together!
    Google Apps Script
    Linter
    Google Apps Script
    JSON Exporter
    Google Apps Script
    Github Client
    New commit:
    content.json

    View full-size slide

  15. Duh, we have a website
    Beanstalk

    View full-size slide

  16. COMING SOON! Mobile….
    AND HIPAA! Hip-hip-hooray!

    View full-size slide

  17. 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!

    View full-size slide