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 Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  7. View Slide

  8. Why Lambda?

    View Slide

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

    View Slide

  10. BUT WHAT ABOUT NLP??
    99% buttons

    View Slide

  11. We still have NLP tho...

    View Slide

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

    View Slide

  13. 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 Slide

  14. 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 Slide

  15. Google Spreadsheets to the rescue!

    View Slide

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

    View Slide

  17. Duh, we have a website
    Beanstalk

    View Slide

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

    View Slide

  19. 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 Slide