In this article, you will learn how to create a Bot with Microsoft Bot Framework. We will create a bot that can visually identify Men's and Women's outfits using Custom Vision Service. But first, we are going to create an echo bot.
Prerequisites
Installs needed
- Node.js (and npm)
- git
- VS Code
Signups needed
- MSID
- botframework.com
- Azure Account
So, let's get started.
First of all, let's create a Git repository and set it gitignore for ignoring Node Modules and the usual Readme.
It will look like this,

The reason we are doing this is that we want to implement Continuous Integration and Continuous Deployment process to Azure later.
Now, log into Azure Management portal.
Click New (+ Icon) > Web + Mobile > Web App.
Fill the required fields.

Go to your Web App > Deployment Option > Choose Source > GitHub.

Authorise with your GitHub account and select the repository.

Check if your web app is working or not. visit http://YOUR_APP_NAME.azurewebsites.net. Whoa! It works! Don't worry if it shows Permission error.
Now visit: https://dev.botframework.com/
Sign in with your Microsoft account and click on "Create a Bot" option. You will get a page similar to this.

Fill in the following details
Bot Name (Name for your Bot)
Bot Handle (Used in the URL of your Bot)
Description (Your bot's long description which may appear in bot directories.)
Configuration
Messaging Endpoint:
Enter your Azure Website URL with https and append /api/messages
Example -
https://YOUR_APP_NAME.azurewebsites.net/api/messages
Click on “Create Microsoft App ID and Password”.

In New tab, click on "Generate Password".
Note - Save your password and App ID in a separate file. It will be shown only once.

Now, hit Return.
Once you are back to “Tell us About your bot” page, leave everything as it is, then accept the T&C and click "Register".
Now, let’s write code!
Open Command Prompt and clone the repository:
Take the URL from GitHub and run.
- git clone REPOSITORY_URL
- cd FOLDER_NAME
- git status
- code README.md
- npm init ::(Set the package.json attributes set entrypoint app.js)
- npm install --save botbuilder
- npm install --save restify
Open app.js and paste this code,


Manikandan MurugesanPosted Jul 3, 2017, 11:29 AM
Nice article.Keep sharing....