Skip to content

Repository files navigation

Bot Framework Samples

Overview

This branch contains samples for the released version of the Microsoft Bot Framework V4 SDK for .NET and JS. If you need samples for the Bot Framework V3 SDK, go here. If you need Bot Framework V4 Python samples, go here

Samples list

Samples are designed to illustrate scenarios you'll need to implement to build great bots! To use the samples, clone this GitHub repository using Git.

 git clone https://github.com/Microsoft/BotBuilder-Samples.git
cd BotBuilder-Samples

🏃 - Indicates planned and work in progress.

Sample NameDescription.NET COREJavaScript.NET Web APIJS (es6)TypeScript
1.console-echoIntroduces the concept of adapter and demonstrates a simple echo bot on console adapter and how to send a reply and access the incoming message.ViewViewView
1.browser-echoDemonstrates how to host a bot in the browser using Web Chat and a custom Web Chat Adapter.View
2.echo-botDemonstrates how to receive and send messages.ViewViewView
3.welcome-userIntroduces activity types and provides a welcome message on conversation update activity.ViewView
5.multi-turn-promptDemonstrates how to use waterfall dialog, prompts, and component dialog to create a simple interaction that asks the user for name, age, and prints back that information.ViewView
6.using-cardsIntroduces all card types including thumbnail, audio, media etc. Builds on Welcoming user + multi-prompt bot by presenting a card with buttons in welcome message that route to appropriate dialog.ViewView
7.using-adaptive-cardsDemonstrates how the multi-turn dialog can use a card to get user input for name and age.ViewView
8.suggested-actionsDemonstrates how to enable your bot to present buttons that the user can tap to provide input.ViewView
11.qnamakerDemonstrates how to use QnA Maker to have simple single-turn conversationsViewView
13.core-botCore bot shows how to use cards, dialog, and Langugage Understanding (LUIS).ViewViewViewView
13.core-bot.testsUnit test project Core bot shows how to use use Bot Framework testing framework.View
14.nlp-with-dispatchDemonstrates how to dispatch across LUIS and QnA Maker.ViewView
15.handling-attachmentsDemonstrates how to listen for/handle user provided attachments.ViewView
16.proactive-messagesDemonstrates how to send proactive messages to users.ViewView
17.multilingual-botUsing translate middleware to support a multi-lingual bot. Demonstrates custom middleware.ViewView
18.bot-authenticationBot that demonstrates how to integrate OAuth providers.ViewView
19.custom-dialogsDemonstrates complex conversation flow using the Dialogs library.ViewView
23.facebook-eventsIntegrate and consume Facebook specific payloads, such as post-backs, quick replies and opt-in events.ViewView
24.bot-auth-msgraphDemonstrates bot authentication capabilities of Azure Bot Service. Demonstrates utilizing the Microsoft Graph API to retrieve data about the user.ViewView
40.timex-resolutionDemonstrates various ways to parse and manipulate the TIMEX expressions you get from LUIS and the DateTimeRecognizer used by the DateTimePrompt.ViewView
42.scaleoutDemonstrates how you can build your own state solution from the ground up that supports scaled out deployment with ETag based optimistic locking.View
43.complex-dialogDemonstrates different ways for composing dialogs.ViewView
44.prompt-for-user-inputDemonstrates how to implement your own basic prompts to ask the user for information.ViewView
45.state-managementDemonstrates how to use state management and storage objects to manage and persist state.ViewView
46.teams-authDemonstrates how to use authentication for a bot running in Microsoft Teams.ViewView
47.inspectionDemonstrates how to use middleware to allow the Bot Framework Emulator to debug traffic into and out of the bot in addition to looking at the current state of the bot.ViewView
70.styling-webchatThis sample shows how to create a web page with custom Web Chat component.View

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Reporting Security Issues

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) at secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

Copyright (c) Microsoft Corporation. All rights reserved.

About

Welcome to the Bot Framework samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Bot Framework SDK!

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages