This topic is for the latest release of the SDK (v4). You can find content for the older version of the SDK (v3) here.
- Visual Studio Code
- Yeoman, which can use a generator to create a bot for you
- Bot Framework Emulator
For some installations the install step for restify is giving an error related to node-gyp.
If this is the case try running
npm install -g windows-build-tools.
Create a bot
Open an elevated command prompt, create a directory, and initialize the package for your bot.
md myJsBots cd myJsBots
Ensure your version of npm is up to date.
npm i npm
npm install -g yo npm install -g generator-botbuilder
Then, use the generator to create an echo bot.
Yeoman prompts you for some information with which to create your bot.
- Enter a name for your bot.
- Enter a description.
- Choose the language for your bot, either
- Choose the
Thanks to the template, your project contains all of the code that's necessary to create the bot in this quickstart. You won't actually need to write any additional code.
Start your bot
In Powershell/Bash change directories to the one created for your bot, and start it by with
npm start. At this point, your bot is running locally.
Start the emulator and connect your bot
- Start the emulator.
- Click the Open Bot link in the emulator "Welcome" tab.
- Select the .bot file located in the directory where you created the project.
Send a message to your bot, and the bot will respond back with a message.