Fireship · @fireship

Build a Chatbot from Scratch - Dialogflow on Node.js

Uploaded August 15, 2019 · Length 14:23

Build a Chatbot from Scratch - Dialogflow on Node.js

Summary

Build a chatbot from scratch using Dialogflow, Node.js, and Cloud Functions, covering architecture, intent creation, and integration with a front-end application.

  • dialogflow tutorial
  • nodejs chatbot
  • cloud functions
  • chatbot development
  • nlp technology
  • virtual agents
  • conversational experiences

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    certainly view a lot of job disruption

  2. 0:02

    because what's gonna happen is row us

  3. 0:05

    will be able to do everything better

  4. 0:06

    than us looking back at 2017 chatbots

  5. 0:10

    were the next big thing they were

  6. 0:11

    supposed to eliminate millions of call

  7. 0:13

    center jobs replace lawyers and prevent

  8. 0:15

    end-users from ever having to fill out

  9. 0:16

    an HTML form again now it's 2019 and

  10. 0:19

    we're well past the peak of the hype

  11. 0:20

    cycle and I would say chatbots largely

  12. 0:22

    failed to live up to their expectations

  13. 0:24

    but something to keep in mind is that we

  14. 0:26

    always overestimate the change that will

  15. 0:27

    occur in the next two years and

  16. 0:29

    underestimate the change that will occur

  17. 0:30

    in the next ten

  18. 0:31

    I think chat bots are currently sitting

  19. 0:32

    somewhere in the trough of

  20. 0:33

    disillusionment

  21. 0:34

    but conversational experiences can be

  22. 0:36

    very effective when tailored to a

  23. 0:37

    specific business need and in today's

  24. 0:39

    video you'll learn how to build a chat

  25. 0:40

    bot from scratch using dialogue flow

  26. 0:42

    nodejs and cloud functions if you're new

  27. 0:45

    you're like and subscribe and you can

  28. 0:46

    find the full source code on fire ship

  29. 0:48

    IO what we're building today is a simple

  30. 0:50

    chat bot that can collect information

  31. 0:52

    from a user and then save that

  32. 0:54

    information permanently in a back-end

  33. 0:55

    database the natural language processing

  34. 0:57

    technology or artificial intelligence if

  35. 1:00

    you will is powered by dialogue flow

  36. 1:01

    which is a tool for building virtual

  37. 1:03

    agents that can intelligently respond to

  38. 1:05

    user input whether it be voice or text

  39. 1:07

    after the agent has collected the

  40. 1:09

    information it needs it can pass that

  41. 1:10

    information off to a back-end cloud

  42. 1:12

    function and that function can do

  43. 1:14

    whatever it wants to fulfill the request

  44. 1:15

    on the backend which might be something

  45. 1:17

    like sending an email processing a

  46. 1:19

    payment or updating a database for

  47. 1:21

    example when you build a chat bot with

  48. 1:22

    dialogue flow you can automatically

  49. 1:24

    integrate it with a bunch of different

  50. 1:25

    platforms like Facebook messenger slack

  51. 1:27

    and you can now even connect it directly

  52. 1:29

    to a phone line but today we're going to

  53. 1:31

    directly interact with the dialogue flow

  54. 1:33

    API with a node back-end let's go ahead

  55. 1:35

    and take a look at the full architecture

  56. 1:36

    that we'll cover in today's video on the

  57. 1:38

    left here we have our front-end

  58. 1:39

    application which is where the user

  59. 1:41

    interacts with the bot in this demo use

  60. 1:43

    angular for the front-end UI but feel

  61. 1:45

    free to replace it with the front-end

  62. 1:46

    framework of your choice because all

  63. 1:48

    that front-end application needs to do

  64. 1:50

    is make API calls to our gateway cloud

  65. 1:52

    function this function essentially

  66. 1:54

    serves as a proxy to make secure calls

  67. 1:56

    to the dialogue flow API so the user

  68. 1:58

    will enter their message in the

  69. 1:59

    front-end application which will then