Skip to content

Repository files navigation

Overview

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

Core

These examples show the basic techniques needed to build a great bot.

SampleDescriptionC#Node
Send AttachmentA sample bot that passes simple media attachments (images) to a user activity.View SampleDeploy to AzureView SampleDeploy to Azure
Receive AttachmentA sample bot that receives attachments sent by the user and downloads them.View SampleDeploy to AzureView SampleDeploy to Azure
Create New ConversationA sample bot that starts a new conversation using a previously stored user address.View SampleDeploy to AzureView SampleDeploy to Azure
Proactive MessagesThree sample bots that proactively send a message to the user.View SamplesView Samples
Get Members of a ConversationA sample bot that retrieves the conversation's members list and detects when it changes.View SampleDeploy to AzureView SampleDeploy to Azure
Direct LineA sample bot and a custom client communicating to each other using the Direct Line API.View SampleDeploy to AzureView SampleDeploy to Azure
Direct Line (WebSockets)A sample bot and a custom client communicating to each other using the Direct Line API + WebSockets.View SampleDeploy to AzureView SampleDeploy to Azure
Basic Multi DialogsA sample bot showing how to use the dialog stack.View SampleDeploy to AzureView SampleDeploy to Azure
Multi DialogsA sample bot showing different kind of dialogs.View SampleDeploy to AzureView SampleDeploy to Azure
Global Message HandlersA sample bot showing the usage of Global Message Handlers to handle global commands and manipulate the dialog stack.View SampleDeploy to AzureView SampleDeploy to Azure
Simple Task AutomationA sample bot showing how to do simple task automation scenarios.View SampleDeploy to AzureView SampleDeploy to Azure
Progress DialogA sample bot that shows how to create a progress dialog that will periodically notify users of the status of a long running task.View SampleDeploy to Azure
State APIA stateless sample bot tracking context of a conversation.View SampleDeploy to AzureView SampleDeploy to Azure
Custom State APIA stateless sample bot tracking context of a conversation using a custom storage provider.View SampleDeploy to AzureView SampleDeploy to Azure
ChannelDataA sample bot sending native metadata to Facebook using ChannelData.View SampleDeploy to AzureView SampleDeploy to Azure
ChannelData (Share Button)A sample bot sending native metadata to Facebook to display a Share button.View SampleDeploy to AzureView SampleDeploy to Azure
AppInsightsA sample bot which logs telemetry to an Application Insights instance.View SampleDeploy to AzureView SampleDeploy to Azure
Middleware LoggingA basic bot that logs incoming and outgoing messages.View SampleDeploy to AzureView SampleDeploy to Azure
Bot in AppsA sample bot showing how to go beyond by becoming embedded into larger applications.View Sample

Cards

These examples emphasize the rich card support in Bot Framework.

SampleDescriptionC#Node
Rich CardsA sample bot to renders several types of cards as attachments.View SampleDeploy to AzureView SampleDeploy to Azure
Carousel of CardsA sample bot that sends multiple rich card attachments in a single message using the Carousel layout.View SampleDeploy to AzureView SampleDeploy to Azure
Cards as AttachmentsA sample bot that renders several types of cards as attachments, while also showing the generated JSON for each one of these cards at the message's payload.View SampleDeploy to Azure

Intelligence

Build bots with powerful algorithms using Bing & Microsoft Cognitive Services APIs.

SampleDescriptionC#Node
LUISA sample bot using LuisDialog to integrate with a LUIS.ai application.View SampleDeploy to AzureView SampleDeploy to Azure
Image CaptionA sample bot that gets an image caption using Microsoft Cognitive Services Vision API.View SampleDeploy to AzureView SampleDeploy to Azure
Speech To TextA sample bot that gets text from audio using Bing Speech API.View SampleDeploy to AzureView SampleDeploy to Azure
Similar ProductsA sample bot that finds visually similar products using Bing Image Search API.View SampleDeploy to AzureView SampleDeploy to Azure
ZummerA sample bot that finds wikipedia articles using Bing Search APIView SampleDeploy to AzureView SampleDeploy to Azure

Demo

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.

SampleDescriptionC#Node
Contoso FlowersA reference implementation using many features from BotFramework.View SampleDeploy to AzureView SampleDeploy to Azure
Azure SearchTwo sample bots that help the user navigate large amounts of content.View SamplesView SamplesDeploy to Azure
Knowledge BotA sample that uses Azure Document DB and Azure Search that searches and filters over an underlying dataset.View SampleDeploy to AzureView SampleDeploy to Azure
Roller SkillA simple dice rolling skill/bot that's been optimized for speech enabled channels, like Cortana.View SampleDeploy to AzureView SampleDeploy to Azure
PaymentsA sample bot showing how to integrate with Microsoft Seller Center for payment processing.View SampleDeploy to AzureView SampleDeploy to Azure
LUIS Action BindingA sample that contains a core implementation for doing LUIS Action Binding.View SampleDeploy to AzureView Sample
Skype CallingA sample bot showing how to use the Skype Bot Plaform for Calling API for receiving and handling Skype voice calls.View SampleDeploy to Azure

About

Welcome to the BotBuilder samples repository. Here you will find task-focused samples in C# and Node.js to help you get started with the Bot Builder SDK!

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages