Create a Chat BOT using JavaScript


In this Article we will see how we can create a basic Hello World echo bot using Microsoft Bot Framework SDK for JavaScript.

Following are the prerequisites
  1. Node.js
  2. Yeoman, which uses a generator to create a bot for you
  3. Bot Framework emulator 

Create a bot

  1. Open Node.js terminal
  2. Install Yeoman and generator
    npm install -g yo generator-botbuilder
  3. Create echo bot using Yeoman generator (Make sure to navigate to directory under which you want to create the bot)
    yo botbuilder

Run your bot in the Emulator

  1. Start your bot in terminal (Make sure to navigate to bot source code directory which you have used while generating the bot)
    npm start
  2. Start the Bot framework emulator and create new bot configuration

  3. Send a message to your bot and the bot will respond back with a message.


Comments

Popular Posts