►
From YouTube: JavaScript Chatbots - Memona Haq
Description
Did you know it's not that hard to build a Chatbot in JavaScript? All it takes is 15 minutes. Join me in this quick demo where we will build a basic Chatbot using the Hubot Framework.
This talk was recorded at the Jozi.JS meetup group on 20 September 2018.
https://www.meetup.com/Jozi-JS/events/252700239/
Disclaimer: The opinions in this talk are those of the individual and do not necessarily represent those of this channel, the meetup group, or it’s sponsors.
A
Yeah
hi
guys
Mimi
I'm,
a
software
developer
at
intellect
I'm,
currently
placed
at
standard
bank
yeah.
Oh
yeah,
I
asked
oh
yeah,
hi
I
thought
you
asked
you
a
question.
Okay,
like
I,
didn't,
say
anything
yet:
okay,
so
chat.
Bots
chat.
Bots
are
basically
like
any
other
computer
application
that
have
conversations
with
people
while
using
either
text
or
audio
and
they're
two
basic
types
of
chat
BOTS.
They
can
be
either
simple
or
smart.
A
Simple
chat,
BOTS
basically
make
use
of
key
words
and
phrases
and
do
some
kind
of
like
regex
or
other
string
analysis
to
catch
commands,
and
you
have
to
code
every
single
command
that
you
want
your
butt
to
reply.
To
way,
for
example,
like
tell
me
a
joke,
so
the
bar
will
look
for
the
word:
joke
can
be
like.
Oh,
you
probably
want
a
joke
and
apply
appropriately,
and
then
you
get
smart
chat,
BOTS,
which
use
a
AI
techniques
like
a
natural
language
processing
and
basically
take
any
input.
A
A
So
so
you
guys,
you
guys,
have
probably
used
a
few
chat
BOTS
in
your
life
like
if
you
have
virtual
assistants,
like
Alexa
or
Siri
or
Google
assistant,
and
most
other
chat,
BOTS
found
on
like
slack
and
other
messaging
applications
and
to
choose
if
your
bot
needs
to
be
smart
or
simple
is
basically,
it
began
really
depends
on
your
use
case.
So
if
you
have
a
virtual
assistant,
it
needs
to
be
smart
because
he
needs
to
take
in
any
input.
The
user
gives
it
and
somehow
make
sense
of
it
ways.
A
A
Yeah,
okay,
so
there
are
many
many
many
chat
boards
but
like
how
do
you
find
them?
They
are
such
engines
especially
made
for
chat
BOTS
that
the
one
there
is
a,
but
for
this
buttless
you
can
go,
find
bots
for
inspiration
or
actually
using
them.
You
can
empty
slack
telegram,
they're,
pretty
simple,
to
add
so
building
a
chat,
bot
you're
going
to
build
your
own
chat
bot.
It's
four
simple
steps,
it's
not
as
simple
but
like
footsteps.
A
So
if
first
of
all,
if
you're
trying
to
go
what
your
body
needs
to
do,
second
thing:
is
you
have
to
choose
a
platform?
What
it
really
your
pet,
bought
beyond
a
website
really
beyond,
are
on
a
mobile
app
on
a
messaging
app
like
slack
or
telegram,
and
then
you
get
to
choose
from
ready-made
reading
match
but
frameworks
or
writing
everything
from
scratch.
And
then
you
create
customize
and
launch
simple.
A
So
some
of
the
muttering
works
that
are
available
you
bought,
which
AI
Microsoft
bought
frameworks.
I
fell
upon
you
bot
so
that
I
kind
of
got
to
playing
with
it.
So
that's
what
I'm
going
to
show
you
guys.
So
you
got
is
basically
your
open
source
chat
framework.
It
stood
in
CoffeeScript,
which
is
said,
but
they
are
migrating
everything
to
JavaScript
now,
so
you,
your
scripts,
can
be
either
in
CoffeeScript
or
JavaScript.
They
work
all
together
because
yeah
and
then
you
got
is
adaptable
to
many
platforms
like
slack
Trotter,
chair
telegram.
A
So
that's
why
it's
great!
You
can
also
write
your
own
adapters
if
your
messaging
platform
doesn't
have
a
delta
and
I
found
it
to
be
quite
easily
deployable
using
docker
in
a
mixture
of
kubernetes
docking
everything.
So
that's
how
we
deploy
ours,
it's
data
bank
by
the
way,
okay,
this
link
at
the
bottom
is
a
link
to
a
bunch
of
you,
but
scripts
that
are
already
written.
So
you
don't
have
to
like
write
everything.
I'll
share
the
slides
right,
yeah,
okay.
So
what
do
you
need
to
build
your
own?
A
A
So,
basically,
once
again,
don't
look
at
that
guy's,
okay,
so
first
thing
we
do
need
to
do
is
get
the
yeoman
generator,
which
is
the
scalping
tool,
as
I
mentioned
and
I
already
have
it
and
it
takes
a
while
to
install
so
I'm
gonna
just
like
cancel
it
now.
Okay!
Well,
it
works
that
works.
Okay
next
thing,
obviously
you
need
to
make
a
new
folder
for
our
bot.
It's.
A
A
A
So
yeah
from
as
soon
as
this
is
done
from
the
get-go,
we
can
start
talking
to
the
what
it
has
built
and
stuff.
Just
so
you
can
test,
is
your
butt
working,
so
I'm
going
to
do
is
say
bin
you
bought
and
I'll
run
the
guy.
So
this
just
it
runs
it
using
the
shell
adapter.
So
you
can
try
test
it
out.
You
don't
actually
have
to
connect
it
and
go
find
an
API
token
for
your
platform
and
everything.
So
we
can
test
there.
Is
it
working?
No
wait?
Joe
zjs,
but.
A
So
we
don't
just
want
to
use
a,
but
on
the
shell.
Obviously
we
want
to
connect
it
to
some
kind
of
platform
and
it's
fairly
simple,
to
connect
to
telegram,
because
shadow
made
a
bot
to
make
Mobile's
a
but
father.
Basically
so
just
go
to
telegram
such
a
bad
father,
I,
don't
know
why
it's
not
bought
mother.
That
makes
more
sense,
cuz,
okay,
but
yeah.
So
all
you
say
is
give
me
a
new
bot
and
exhaust
you
with
the
name,
the
username
and
that's
it,
and
then
it
gives
you
an
API
token.
A
A
A
A
I
should
work
okay,
there
we
go
yeah.
So
if
you
look
at
the
code,
it's
basically
it's
really
really
simple.
I
only
started
it,
it
says
robot
dot.
Here
it
should
hear
anything,
and
this
is
basically
ellagic
s--,
so
it
right
now
it
will
listen
to
this
just
right
and
you
can
just
say:
oh
anything
and
like
it
can
be
followed
by
anything
or
stuff
like
that.
You
can
customize
it.
However,
you
like
it,
so
it
it
is
a
few
few
scripts.
Let
me
just
get
it
in
the
okay,
so
this
first
guy.
A
A
Yes,
it
is
okay,
awesome,
okay,
so
these
are
basic
things
like
basic
parts
for
entertainment,
but
obviously
you
want
to
do
work
with
these
things,
so
I
create
another
one,
basically
to
make
a
new
deployment
on
kubernetes
I
have
mini
cube
running
on
my
computer,
since
I
mean
like
a
little
kubernetes
cluster.
So
let's
ask
the
bot:
let's
actually
go
to
the
code.
First,
okay,
that's
the
kubernetes
code,
so
we
basically
have
basically
we'll
execute,
commands
and
it'll
be
like
what
is
up
with.
Basically,
it's
a
command
to
check.
A
How's
your
namespace
doing
I
have
a
namespace
call
milk
in
D.
So
if
you
want
to
ask
your
buddy
you're
at
home
late
at
night,
you
don't
have
VP
and
X's
in
like
a
bank
system
or
something
you
can
be
like.
What's
up
with
my
mouth
cluster
or
something
like
that,
and
it
will
show
you
a
summary
of
everything.
Okay,
we
can
try
this
out
and
second
one
will
make
a
new
deployment.
A
A
A
Damn
I
didn't
save
it
once
again,
I
hot
coated
it.
My
bed.