Bot Builder samples are organized into groups and designed to illustrate task-focused samples in C# and Node.js to help you build great bots! To use the samples clone our GitHub repository using Git.
git clone https://github.com/Microsoft/BotBuilder-Samples.git
cd BotBuilder-Samples
These examples show the basic techniques needed to build a great bot.
Sample | Description | C# | Node |
---|---|---|---|
Send Attachment | A sample bot that passes simple media attachments (images) to a user activity. | View Sample | View Sample |
Receive Attachment | A sample bot that receives attachments sent by the user and downloads them. | View Sample | View Sample |
Create New Conversation | A sample bot that starts a new conversation using a previously stored user address. | View Sample | View Sample |
Get Members of a Conversation | A sample bot that retrieves the conversation's members list and detects when it changes. | View Sample | View Sample |
Direct Line | A sample bot and a custom client communicating to each other using the Direct Line API. | View Sample | View Sample |
Multi Dialogs | A sample bot showing different kind of dialogs. | View Sample | View Sample |
State API | A stateless sample bot tracking context of a conversation. | View Sample | View Sample |
ChannelData | A sample bot sending native metadata to Facebook using ChannelData. | View Sample | View Sample |
AppInsights | A sample bot which logs telemetry to an Application Insights instance. | View Sample | View Sample |
These examples emphasize the rich card support in Bot Framework.
Sample | Description | C# | Node |
---|---|---|---|
Rich Cards | A sample bot to renders several types of cards as attachments. | View Sample | View Sample |
Carousel of Cards | A sample bot that sends multiple rich card attachments in a single message using the Carousel layout. | View Sample | View Sample |
Build bots with powerful algorithms using Bing & Microsoft Cognitive Services APIs.
Sample | Description | C# | Node |
---|---|---|---|
LUIS | A sample bot using LuisDialog to integrate with a LUIS.ai application. | View Sample | View Sample |
Image Caption | A sample bot that gets an image caption using Microsoft Cognitive Services Vision API. | View Sample | View Sample |
Speech To Text | A sample bot that gets text from audio using Bing Speech API. | View Sample | View Sample |
Similar Products | A sample bot that finds visually similar products using Bing Image Search API. | View Sample | View Sample |
These are bots designed to showcase end-to-end sample scenarios. They're great sources of code fragments if you're looking to have your bot lightup more complex features.
Sample | Description | C# | Node |
---|---|---|---|
Contoso Flowers | A reference implementation using many features from BotFramework. | View Sample | View Sample |
Azure Search | Two sample bots that help the user navigate large amounts of content. | View Samples | View Samples |