Bot Builder for Node.js examples are organized into groups and designed to illustrate the techniques needed to build great bots. To use the samples clone our GitHub repository using Git.
git clone https://github.com/Microsoft/BotBuilder.git
cd BotBuilder/Node
npm install
The node examples below can then be found under the "Node/examples" directory.
These examples show a simple "Hello World" sample for each bot type supported by the framework.
| Example | Description |
|---|---|
| hello-ConsoleConnector | "Hello World" for ConsoleConnector class. |
| hello-ChatConnector | "Hello World" for ChatConnector class. |
These examples show the basic techniques needed to build a great bot. All of the examples use the TextBot class and can be executed from a console window.
| Example | Description |
|---|---|
| basics-waterfall | Shows how to use a waterfall to prompt the user with a series of questions. |
| basics-naturalLanguage | Shows how to use a LuisDialog to add natural language support to a bot. |
| basics-multiTurn | Shows how to implement simple multi-turns using waterfalls. |
| basics-firstRun | Shows how to create a First Run experience using a piece of middleware. |
| basics-logging | Shows how to add logging/filtering of incoming messages using a piece of middleware. |
| basics-validatedPrompt | Shows how to create a custom prompt that validates a users input. |
These are bots designed to showcase what's possible on specific channels. They're great sources of code fragments if you're looking to have you bot lightup specific features for a channel.
| Example | Description |
|---|---|
| demo-skype | A bot designed to showcase what's possible on skype. |
| demo-skype-calling | A bot designed to show how to build a calling bot for skype. |
| demo-facebook | A bot designed to showcase what's possible on Facebook. |