Skip to content

Latest commit

 

History

History
132 lines (112 loc) · 11 KB

README.md

File metadata and controls

132 lines (112 loc) · 11 KB

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 Name Description .NET CORE JavaScript .NET Web API JS (es6) TypeScript
1.console-echo Introduces the concept of adapter and demonstrates a simple echo bot on console adapter and how to send a reply and access the incoming message. View View View
1.browser-echo Demonstrates how to host a bot in the browser using Web Chat and a custom Web Chat Adapter. View
2.echo-bot Demonstrates how to receive and send messages. View View View
3.welcome-user Introduces activity types and provides a welcome message on conversation update activity. View View
5.multi-turn-prompt Demonstrates 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. View View
6.using-cards Introduces 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. View View
7.using-adaptive-cards Demonstrates how the multi-turn dialog can use a card to get user input for name and age. View View
8.suggested-actions Demonstrates how to enable your bot to present buttons that the user can tap to provide input. View View
11.qnamaker Demonstrates how to use QnA Maker to have simple single-turn conversations View View
13.core-bot Core bot shows how to use cards, dialog, and Langugage Understanding (LUIS). View View View View
13.core-bot.tests Unit test project Core bot shows how to use use Bot Framework testing framework. View
14.nlp-with-dispatch Demonstrates how to dispatch across LUIS and QnA Maker. View View
15.handling-attachments Demonstrates how to listen for/handle user provided attachments. View View
16.proactive-messages Demonstrates how to send proactive messages to users. View View
17.multilingual-bot Using translate middleware to support a multi-lingual bot. Demonstrates custom middleware. View View
18.bot-authentication Bot that demonstrates how to integrate OAuth providers. View View
19.custom-dialogs Demonstrates complex conversation flow using the Dialogs library. View View
23.facebook-events Integrate and consume Facebook specific payloads, such as post-backs, quick replies and opt-in events. View View
24.bot-auth-msgraph Demonstrates bot authentication capabilities of Azure Bot Service. Demonstrates utilizing the Microsoft Graph API to retrieve data about the user. View View
40.timex-resolution Demonstrates various ways to parse and manipulate the TIMEX expressions you get from LUIS and the DateTimeRecognizer used by the DateTimePrompt. View View
42.scaleout Demonstrates 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-dialog Demonstrates different ways for composing dialogs. View View
44.prompt-for-user-input Demonstrates how to implement your own basic prompts to ask the user for information. View View
45.state-management Demonstrates how to use state management and storage objects to manage and persist state. View View
46.teams-auth Demonstrates how to use authentication for a bot running in Microsoft Teams. View View
47.inspection Demonstrates 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. View View
70.styling-webchat This 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 [email protected] 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 [email protected]. 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.