Develop bots with Bot Builder
The Bot Builder provides an SDK, libraries, samples, and tools to help you build and debug bots. When you build a bot with Bot Service, your bot is backed by the Bot Builder SDK. You can also use the Bot Builder SDK to create a bot from scratch using C# or Node.js. Bot Builder includes the Bot Framework Emulator for testing your bots and the Channel Inspector for previewing your bot's user experience on different channels.
If you want to build a bot using any programming language you want, you can use the REST API.
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 .NET Quickstart will guide you through creating a bot with the Bot Builder SDK for .NET.
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#
Learn more about how to install Visual Studio 2017 project templates.
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 Node.js Quickstart will guide you through creating a bot with the Bot Builder SDK for Node.js.
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.
You can create a bot with any programming language by using the Bot Framework REST API. The REST Quickstart will guide you through creating a bot with REST.
There are three REST APIs in the Bot Framework:
The Bot State REST API enables your bot to store and retrieve state associated with the conversations that are conducted through the Bot Connector REST API.
The Direct Line REST API enables you to connect your own application, such as a client application, web chat control, or mobile app, directly to a single bot.
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 Bot Framework Channel Inspector.