Working With Bot Framework - Part One
14K views
Nov 7, 2023
Let us learn how to get started with Bot Framework. This is part one of the series where will get the basic introduction of the Bot Framework and how to initiate developing our first bot.
View Video Transcript
0:00
Hello, welcome to a video tutorial about bot framework
0:05
This tutorial I'm going to talk about the bot framework. This is a new technology introduced by Microsoft
0:12
So let's skip to the next topic. Okay, so this is a software evaluation
0:20
When we started with a desktop application, then web has introducing, then mobile platform is a huge one
0:27
Now this is a new technology, introducing. new technology introduced by Microsoft that messaging platform
0:37
So messaging platform means how we are chatting with SMS or WhatsApp or Facebook Messenger or Skype Messenger
0:45
how we are interact to the other human. The same way we can interact with the system
0:53
So that is a messaging platform. So bot is a messaging platform interact with the user via conventional user interface
1:05
This is called a CUI. This is a conventional user interface. Actually what will what will do
1:15
Bot essentially takes input from the user. You can request to the you can start the conversation to the bot
1:23
Once the conversation started then bot. take your input and process it based on your request whether it's a command or any
1:32
processing request whatever it is it's process and it will response to the user
1:39
that interaction user user can interact with the bot maybe like text message like
1:50
normal SMS or graph is called how you are a messenger we are sending a
1:56
some graphical conversation and two other users the same way you can interact with the bot also and bot support speech also
2:07
so internally what bot internally bot is a web service yeah that conversational interface has implemented that interwebs
2:17
service and to the user This one is building a bot
2:29
First what? We have to plan. What is a plan? So generally, interact with the user, we can start any conversation. Yeah
2:41
But in bot, it's a separate way. Bot can chat with the user only for specific requirement
2:48
Based on the bot, you can interact with the user. Sorry, you can interact with the bot
2:53
So let's say, for example, if you are ordering a... you are ordering a you know popular example pizza if you're if you're adding the
3:01
pizza you can create the bot for handling the pizza request taking the order and
3:09
you know delivery time everything you can build over their plan like that for example hotel booking or normal form request everything you can plant you can plan on bot
3:25
Once plan has done what you what your bot going to do that plan has to clearly do that
3:32
Then you can switch you to the build decision that mean development area
3:36
Generally bot can support C-shop language and node. node.js file that web we can create the bolt sorry we can create the bot framework
3:53
this video tutorial I'm going to talk about only the C shop language you can choose
4:00
your languages here then move to once the development has done you can move to
4:04
the test space so this test space is completely local test space like you can use a
4:11
bot emulator you can test that one once everything done from this space up to here then you can publish your bot to Azure once
4:22
publish has done then switch it to the connect how you interact with the bot whether
4:28
you want to interact via Skype or messenger whatever it is you can you can specify
4:36
the connect area then once connection is done evaluate this is a final
4:41
phase you can you can more you can add more enhancement or performance you can evaluate here this space so mainly we are focusing on this
4:51
first first some of the video series we are mainly focused on up to this test
4:58
area this three area then finally we move to the publish and connect then at
5:05
last we move to the evaluate area so these are the plan this video tutorial we are
5:09
going to learn about the bot framework next time so turning to the insulation process so which ID we are going to use
5:22
development in moment this tutorial I'm going to use a visual study 2017 and the
5:29
install IS express also needed because as I told boss is a web service what is a web service
5:35
so we need host that web service through IAS so I is record so next one second
5:45
go back to visual should a installation so here you can yeah now it's visible so here you
5:54
can go to that individual components default it won't be selected you have to select it
5:59
here you can select this area IS Express so once select insulation
6:05
so next we need the bot template bot template not default come with Visual Studio 2017
6:15
So this we have to download from internet and what Eliminator and configuration we have to do
6:23
So next slide we will go and check that template area one second go back the slide so this
6:37
is a bot template this is a link you can go and download it that bot for a
6:41
bot template I'm using the version 4 so 3 and 4 is available whatever it is
6:49
you can use it but this video tutorial I'm going to use the version 4 and bot
6:54
emulator, emulator is available in GitHub, you can go and download it emulator and
7:02
the configuration is the NG Rock is needed because NG Rock used to you know your
7:09
system act as a web server so that is really required to execute our bot
7:16
application so this also you go and download it from this website then
7:24
I move to the next one demo yeah this section I just make one small template small project
7:30
to create the bot framework I'm going back to Visual Studio yeah this is studio
7:40
next once again sorry file project project
7:54
so template insulated I already installed bot from bot template so I just type bot here so bot application
8:08
so I just make you know name of the project demo one bot demo sorry bot demo
8:20
demo let it project create meantime you can open the emulator so project is getting created so it's created I just close it
8:54
want to know the explanation not record now and go back the solution solution
9:02
explore hey come on yeah so this is a default template created by bot template so
9:23
actually what this bot is doing once we send that message it will return to
9:30
that number of character he's or has sent so I just rebuild the solution then
9:35
meantime go back to the emulator come on this is the latest bot emulator framework sorry emulator here you can go and see that file
9:50
sorry view emulator settings here make sure that NGrock installed under this option has selected
9:58
default it don't default it selected all but if you have just make the confirmation whether this is selected or not
10:09
So it's well done. I run this application. You see here, so it's running that web series
10:21
browser only, web browser only. I install only that Microsoft Edge. So it's default showing the Microsoft Edge. Yeah
10:33
So bot is running here. So this is our local host. So just copy this link, go to emulator, go to emulator and create the new bot
10:50
So here you need to specify the bot. What is a bot
10:55
Bot name. So I'll make demo one, bot demo one. You are a link and API, yeah. One more also you have to specify this
11:08
also you have to specify this is a link API host name your bot host name and this is our
11:12
bot host name and this also should be needed so that you have to specify here now
11:25
this app ID password is not required and encrypt your keys also not now not
11:30
record just save and connect asking you know say the bot so bot demo phone
11:38
saved yeah our bot is ready now this area user can chat so that previous one
11:50
which is running that Microsoft age that is our boss or bot server here the user
11:56
can interact like via Skype or Messenger but in this demo we are using like
12:02
emulator so this is our chatting area to the bot so if I send message
12:08
Hello. Then bot read this message and process it how many characters he has sent
12:15
As you see here, I send hello, this is a 5 character. So what response to this chat, you send hello which has a 5 character
12:23
So here if I click the hello, here you can see that this is a complete JSON format chart
12:35
connection we'll learn more about in upcoming video tutorial I hope you can
12:42
understand what is bot and how to run that default bot how to interact with the
12:49
bot emulator I hope you can understand next tutorial we'll learn more about
12:54
bot thanks to all
#Email & Messaging
#Intelligent Personal Assistants
#Scripting Languages
#Software
#Text & Instant Messaging
#Virtual Worlds
#Voice & Video Chat