Fireship · @fireship
Build a Chatbot from Scratch - Dialogflow on Node.js
Uploaded August 15, 2019 · Length 14:23
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.
- 0:00
certainly view a lot of job disruption
- 0:02
because what's gonna happen is row us
- 0:05
will be able to do everything better
- 0:06
than us looking back at 2017 chatbots
- 0:10
were the next big thing they were
- 0:11
supposed to eliminate millions of call
- 0:13
center jobs replace lawyers and prevent
- 0:15
end-users from ever having to fill out
- 0:16
an HTML form again now it's 2019 and
- 0:19
we're well past the peak of the hype
- 0:20
cycle and I would say chatbots largely
- 0:22
failed to live up to their expectations
- 0:24
but something to keep in mind is that we
- 0:26
always overestimate the change that will
- 0:27
occur in the next two years and
- 0:29
underestimate the change that will occur
- 0:30
in the next ten
- 0:31
I think chat bots are currently sitting
- 0:32
somewhere in the trough of
- 0:33
disillusionment
- 0:34
but conversational experiences can be
- 0:36
very effective when tailored to a
- 0:37
specific business need and in today's
- 0:39
video you'll learn how to build a chat
- 0:40
bot from scratch using dialogue flow
- 0:42
nodejs and cloud functions if you're new
- 0:45
you're like and subscribe and you can
- 0:46
find the full source code on fire ship
- 0:48
IO what we're building today is a simple
- 0:50
chat bot that can collect information
- 0:52
from a user and then save that
- 0:54
information permanently in a back-end
- 0:55
database the natural language processing
- 0:57
technology or artificial intelligence if
- 1:00
you will is powered by dialogue flow
- 1:01
which is a tool for building virtual
- 1:03
agents that can intelligently respond to
- 1:05
user input whether it be voice or text
- 1:07
after the agent has collected the
- 1:09
information it needs it can pass that
- 1:10
information off to a back-end cloud
- 1:12
function and that function can do
- 1:14
whatever it wants to fulfill the request
- 1:15
on the backend which might be something
- 1:17
like sending an email processing a
- 1:19
payment or updating a database for
- 1:21
example when you build a chat bot with
- 1:22
dialogue flow you can automatically
- 1:24
integrate it with a bunch of different
- 1:25
platforms like Facebook messenger slack
- 1:27
and you can now even connect it directly
- 1:29
to a phone line but today we're going to
- 1:31
directly interact with the dialogue flow
- 1:33
API with a node back-end let's go ahead
- 1:35
and take a look at the full architecture
- 1:36
that we'll cover in today's video on the
- 1:38
left here we have our front-end
- 1:39
application which is where the user
- 1:41
interacts with the bot in this demo use
- 1:43
angular for the front-end UI but feel
- 1:45
free to replace it with the front-end
- 1:46
framework of your choice because all
- 1:48
that front-end application needs to do
- 1:50
is make API calls to our gateway cloud
- 1:52
function this function essentially
- 1:54
serves as a proxy to make secure calls
- 1:56
to the dialogue flow API so the user
- 1:58
will enter their message in the
- 1:59
front-end application which will then


