The Bot Builder SDKs provide libraries, samples, and tools to help you build and debug bots. To get started building bots, download the SDK for the platform you are using, either C# on .NET or Node.js. You can download the SDKs as packages or you can get the source code.
Get the Bot Builder SDK for .NET
The Bot Builder SDK for .NET leverages C# to provide a familiar way for .NET developers to write bots. It is a powerful framework for constructing bots that can handle both free-form interactions and more guided conversations where the user selects from possible values.
The Bot Builder SDK for .NET is available as a NuGet package.
The Bot Builder SDK for .NET requires .NET Framework 4.6 or newer. If you are adding the SDK to an existing project targeting a lower version of the .NET Framework, you will need to update your project to target .NET Framework 4.6 first.
To install the SDK in an existing Visual Studio project, complete the following steps:
- In Solution Explorer, right-click the project name and select Manage NuGet Packages....
- On the Browse tab, type "Microsoft.Bot.Builder" into the search box.
- Select Microsoft.Bot.Builder in the list of results, click Install, and accept the changes.
You can also download the Bot Builder SDK for .NET source code from GitHub.
Visual Studio project templates
Download Visual Studio project templates to accelerate bot development.
- Bot template for Visual Studio for developing bots with C#
- Cortana skill template for Visual Studio for developing Cortana skills with C#
Bot Builder SDK for Node.js
The Bot Builder SDK for Node.js provides a familiar way for Node.js developers to write bots. You can use it to build a wide variety of conversational user interfaces, from simple prompts to free-form conversations. The Bot Builder SDK for Node.js uses restify, a popular framework for building web services, to create the bot's web server. The SDK is also compatible with Express.
The Bot Builder SDK for Node.js is available as an npm package. To install the Bot Builder for Node.js SDK and its dependencies, first create a folder for your bot, navigate to it, and run the following npm command:
Next, install the Bot Builder SDK for Node.js and Restify modules by running the following npm commands:
npm install --save botbuilder npm install --save restify
You can also download the Bot Builder SDK for Node.js source code from GitHub.
Bot Framework Emulator
The Bot Framework Emulator is a desktop application that allows you to test and debug you bots, either locally or remotely. Using the emulator, you can chat with your bot and inspect the messages that your bot sends and receives. Learn more about the Bot Framework emulator and download the emulator for your platform.
Bot Framework Channel Inspector
Quickly see what bot features will look like on different channels with the the Bot Framework Channel Inspector.