Creating a basic Echo bot locally using Microsoft bot framework


We will use Azure Bot Service v3.

1. Setup version control

Create a new git repository. I did it on https://github.com/new. I chose various settings as shown in below image:

Clone the repository locally, create a new branch and push it to server. I did via following commands:
  git clone git@github.com:monish001/superbot.git
  cd superbot
  git checkout master
  git checkout -b dev
  git push --set-upstream origin dev

2. Create a basic echobot using yeoman. 

I named my bot 'superbot' and select Echobot when asked.
  npm install -g npm
  npm install -g yo generator-botbuilder
  cd ..
  yo botbuilder
  cd superbot
  npm start

Now open the bot file in Microsoft Bot Framework Emulator to test the echobot.

3. Push to back to github.

git push

You can find the resulting code at https://github.com/monish001/superbot/releases/tag/0.0.1.

Any more questions, please leave a comment or check out related documentation for Microsoft Bot Framework.

No comments:

Post a Comment