Articles → MICROSOFT BOT FRAMEWORK → Create Your First Bot With Microsoft Bot Framework
Create Your First Bot With Microsoft Bot Framework
What Is A Bot Framework?
Setting Up The Bot Environment
- Install visual studio (if not installed on your system). I have installed visual studio 2019 on my machine.
- Download the file "BotFramework-Emulator-main.zip" (you can download it from the link provided by the end of this article) and copy it on the following path.
C:\Users\<user_name>\Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#
- Download the emulator from the following link - https://github.com/Microsoft/BotFramework-Emulator/releases/tag/v4.5.2
Click to Enlarge
- Once the setup is downloaded, install the emulator.
- To show the Microsoft Bot Framework template in the visual studio, download vsix file of "Bot Framework v4 SDK Templates for Visual Studio" from visual studio marketplace
Click to Enlarge
Create Your First Project
- Click on the "New" → "Project…"
- A popup window will appear where you can select the project type. Select the project type as "Bot Application".
Click to Enlarge
- Once the project is created, click on the option "Manage NuGet Packages..."
- Once the NuGet window will open. This message will appear - "Some NuGet packages are missing from this solution. Click to restore from your online package sources". Click on the "Restore" button.
Click to Enlarge
Run The Bot
- Run the Bot application. You will get the following first screen.
Click to Enlarge
- Change the URL from http://localhost:3979/ to http://localhost:3979/api/messages
- Following screen will come.
Click to Enlarge
- Now open the bot emulator. Go to File Open Bot.
- A pop up window will come.
Click to Enlarge
- Enter the "Bot URL" as http://localhost:3979/api/messages and click on the "Connect" button.
- Your chat window will appear. Enter the text "hi" and you will get the following output.
Click to Enlarge
Download Botframework-Emulator-Main.Zip
Download