►
From YouTube: Creating a bot with yo teams
Description
This tutorial will guide you on how to use Microsoft Teams Yeoman generator (yo teams) to create bots for Microsoft Teams. Video covers how to get started with the Bot Framework configuration and how to build your custom bot experiences.
Demo presenter: Hugo Bernier | @bernierh
Resources:
• More on the Teams Yeoman Generator: http://aka.ms/yoteams
• Build your First Microsoft Teams App - https://docs.microsoft.com/en-us/microsoftteams/platform/tutorials/get-started-yeoman
• Learn more about the Microsoft 365 developer community at: http://aka.ms/m365pnp
A
Hey
everyone,
my
name
is
Chieko
and
today
I'll
show
you
how
to
create
a
bot
using
yo
teams.
Let's
get
started.
The
first
thing
you
need
to
do
is
to
go
to
portal
accom
to
create
a
new
resource,
we're
going
to
create
a
new
bot.
So,
let's
search
for
bot
here
and
what
we
want
is
a
bot
channel
registration.
A
Let's
just
click
on
create,
and
it's
going
to
ask
us
a
few
questions
here.
The
first
thing
is
the
name,
so
I
want
to
call
this
my
team
spot,
but
unfortunately
it
doesn't
let
you
put
spaces.
So
let's
remove
spaces
and
someone
else
has
already
called
they're
bought
my
team
spot.
So
let's
just
make
something
add
some
numbers
here
to
make
it
unique,
we'll
be
able
to
change
the
name
of
it
later,
but
this
is
going
to
be
the
handle
behind
the
scene.
A
Let's
pick
a
resource
group
I've
already
created
a
resource
group
and
the
location,
pricing
I'm,
cheap,
so
I'll
just
use
the
free
pricing
and
in
the
messaging
endpoint
it's
asking
you
for
a
location.
It's
not
going
to
check
the
location
right
now
and
we'll
generate
that
later.
So
for
now,
let's
just
put
just
a
test
value
I,
usually
like
to
just
put
the
name
of
my
bot
dot
as
your
website's
net.
A
So
let's
just
do
that
and
then
slash
API,
slash
messages,
but
again
we'll
come
back
later
and
we'll
fix
that
will
turn
off
application
insights.
But
if
you're
building
this
for
production
solution,
I
would
strongly
recommend
you
use
obligation,
insights
and
then
the
next
thing
is
to
just
create
a
pipe
ID
and
a
password
we'll
just
use
the
auto
PAP
ID
and
a
password
and
we'll
just
click
on
create
and
once
that's
done.
A
We'll
come
back
and
we'll
actually
go
to
our
settings
and
we'll
need
to
get
the
app
ID
that
is
created
that
app
ID
is
the
unique
epoch,
Asian
identifiers
that
we'll
use
for
later.
So
you
want
to
copy
that
and
paste
it
somewhere
safe
because
we'll
need
it
when
we
start
the
yo
teams.
The
next
thing
we
need
to
do
is
we
need
to
go
back
to
the
top
of
the
page
and
go
under
channels,
since
this
is
a
bot
for
teams.
A
We
want
to
enable
the
team's
channel
so
click
on
the
channel,
and
you
want
to
select
here
teams,
commercial
or
government
if
you're
in
a
government
tenant
and
click
on
save
it
will
prompt
you
for
Terms
of
Service
Agreement.
Of
course
you
want
to
make
sure
you
read
the
whole
thing
and
click
on
I
agree
and
then
from
here
on
we're
pretty
much
done
we'll
come
back
later
for
the
rest.
A
A
It'll,
ask
you
a
bunch
of
questions
for
the
majority
of
this
demo.
I'll
just
use
the
default
value,
so
I'll
create
a
new
current
folder
I'll
call
this
my
team
spot.
My
company
name
is
just
my
name
and
we'll
use
version.
1.6
we'll
skip
the
partner
ID
for
this
demo,
but
if
you
have
a
partner,
you
use
that
and
then
we
want
to
pick
here
a
but
not
a
tab.
So
I'll
just
select
that
once
that's
done,
I'll
just
hit
enter
it'll.
A
Ask
you
where
you
want
to
host
the
solution,
we'll
be
able
to
change
this
later
so
for
now.
Just
use
the
default
value
when
you
move
it
to
production,
we'll
definitely
want
to
use
a
real
URL
here
and
you
want
to
show
loading
indicators.
No,
you
want
to
use
test
framework.
No,
do
you
want
to
use
application
insights?
No,
not
for
now
I
recommend
it
for
later,
and
then
it's
asking
you.
What
do
you
want
to
do?
A
You
want
to
click
enter
and
then
it'll
ask
you
the
name
of
your,
but
we'll
just
call
it
my
team
spot.
It's
asking
you
for
an
app
ID.
This
is
the
app
ID
we
generated
in
Azure.
So
let's
copy
and
paste
that
okay,
then
do
you
want
to
add
a
static
tab.
Let's
just
say
yes
for
now
and
what's
the
title
of
the
tab,
I
remembered
that
the
tabs
can
only
have
16
characters,
so
sometimes
the
default
bot
name
you'll
use
will
be
too
long.
A
And
that's
it:
it
will
create
it.
We'll
set
up
the
project
for
you.
It
will
create
all
the
files
it
takes
a
while.
So
I'll
just
pause
this
and
we'll
come
back
when
it's
done
once
the
project
is
created,
we
can
launch
our
favorite
code,
editor
I'll,
use
Visual
Studio
code
and
it
will
launch
our
project
for
us.
A
The
project's
already
set
up
with
pretty
much
everything
you
need.
You'll
have
a
read
the
MD
file
that
will
tell
you
how
to
debug
the
project
and
how
to
set
it
up
and
we'll
come
back
to
that.
But
you
also
have
one
called
readme
and
the
name
of
your
body
in
that
it
tells
you
to
go
to
get
your
app
ID
and
you
have
secret
or
you
have
password
and
to
copy
those
values
in
the
environment
file.
A
So,
let's
open
that
environment
file
and
you'll
see
that
the
app
ID
that
we
originally
provided,
the
one
that
we
created
measure
is
already
entered
for
us,
but
we
don't
have
the
app
password
to
get
to
the
app
password
we'll
want
to
switch
back
to
hogr
and
in
Azure
we'll
just
go
to
the
settings
and
at
the
near
the
middle
we
have
the
ability
to
measure
or
app
ID.
So
let's
click
on
that
and
in
the
app
ID
we'll
want
to
create
a
new
client
secret.
A
A
Let's
go
back
to
our
Uni
file
and
let's
paste
that
secret
that
we
just
obtained
once
that's
done.
We
can
launch
the
terminal
and
we
can
start
typing
gulp
build
to
build
our
solution
now
that
takes
a
while,
but
when
it's
done
we're
ready
to
launch
our
project
to
test
it.
In
order
to
test
a
bot,
the
bot
needs
to
be
accessible
from
the
internet,
and
this
bot
project
right
now
is
where
name
running
on
your
workstation.
A
We
don't
want
to
open
all
sorts
of
firewalls
on
your
workstation
or
have
to
publish
to
Azure
every
time
that
we
make
changes.
So
luckily,
the
project
has
built-in
capabilities
to
do
that.
It
uses
something
called
end.
Rock
and
Angra
is
something
that
will
allow
you
to
access
your
workstation
from
a
publicly
accessible
URL
for
a
temporary
period
to
use
in
grukk.
A
All
we
need
to
do
is
to
type
gulp
and
rock
serve,
and
what
that
will
do
is
we'll
launch
and
rock
it'll
generate
a
public
URL
that
he
can
use
to
access
your
body
once
engram
starts
he'll,
give
you
a
unique
URL,
so
we'll
copy
that
unique
URL
and
we'll
go
back
to
our
as
your
bought
definition,
so
that
we
can
actually
tell
it
that
this
is
the
girl
that
we
want.
So
if
we
go
to
our
bot,
we
go
to
the
settings
and
we
click
on
settings.
A
We
want
to
go
to
the
messaging
endpoint.
This
is,
if
you
remember
this,
is
the
endpoint
that
we
made
up
when
we
first
created
the
bot
we
copy
the
end
rock
URL,
make
sure
that
it
ends
with
slash
API,
slash
messages
and
unsaved,
and
just
to
make
sure
that
your
bot
is
working.
Let's
go
to
test
and
web
chat
and
what
should
happen
when
you
start
is
it
should
army
show
you
welcome
and
if
you
type
hello,
we
should
be
able
to
test
this.
So
it's
just
type
hello
and
our
bot
is
responding.
A
So
it's
working
if
we
go
back
to
our
terminal
and
if
you
look
carefully
it'll
tell
you
that
the
server
is
running
on
port
3007.
So
let's
open
our
browser
and
let's
go
to
localhost
3007
I
happen
to
have
pre-loaded
that
and
it
will
automatically
default
to
index
at
HTML.
It'll.
Give
you
a
welcome
page
that
allows
you
to
add
your
bot
to
teams,
so
click
on
two
teams
and
that
will
launch
teams
with
the
buck,
and
so
now
I
should
be
able
to
type
the
same
message.
A
Hello
and
it
should
respond
back
with
the
same
message
nicely
made.
You
learn
more
about
yo
teams
that
is
all
defined
in
your
source
code
under
the
applet
in
a
folder
matching
the
named
about
that
you
created
and
a
file
matching
the
name
of
the
bot
you
created
dot.
Yes,
this
is
where
the
custom
dialogue
logic
will
go
in,
and
this
is
really
where
you
take
over.