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
- Node.js
- Yeoman, which uses a generator to create a bot for you
- Bot Framework emulator
Create a bot
- Open Node.js terminal
- Install Yeoman and generator
npm install -g yo generator-botbuilder
- 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
- Start your bot in terminal (Make sure to navigate to bot source code directory which you have used while generating the bot)
npm start
- Start the Bot framework emulator and create new bot configuration
- Send a message to your bot and the bot will respond back with a message.
Comments
Post a Comment