├── _config.yml
├── SDKV4-Samples
├── _config.yml
├── js
│ ├── stateBot
│ │ ├── .gitignore
│ │ ├── .env
│ │ ├── resources
│ │ │ └── echo.chat
│ │ ├── .eslintrc.js
│ │ ├── stateBot.bot
│ │ ├── deploymentScripts
│ │ │ └── msbotClone
│ │ │ │ └── bot.recipe
│ │ └── package.json
│ ├── DialogPromptBot
│ │ ├── .gitignore
│ │ ├── .env
│ │ ├── .eslintrc.js
│ │ ├── dialog-prompt.bot
│ │ ├── deploymentScripts
│ │ │ └── msbotClone
│ │ │ │ └── bot.recipe
│ │ └── package.json
│ ├── complexDialogBot
│ │ ├── .gitignore
│ │ ├── iisnode.yml
│ │ ├── .eslintrc.js
│ │ ├── deploymentScripts
│ │ │ └── msbotClone
│ │ │ │ └── bot.recipe
│ │ └── package.json
│ ├── PromptUsersForInput
│ │ ├── .env
│ │ ├── resources
│ │ │ └── echo.chat
│ │ ├── .eslintrc.js
│ │ ├── simplePrompts.bot
│ │ ├── deploymentScripts
│ │ │ └── msbotClone
│ │ │ │ └── bot.recipe
│ │ └── package.json
│ └── nlp-with-dispatch
│ │ └── QnAMaker.tsv
├── dotnet_core
│ ├── StateBot
│ │ ├── appsettings.json
│ │ ├── state.bot
│ │ ├── UserProfile.cs
│ │ ├── ConversationData.cs
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── DeploymentScripts
│ │ │ └── MsbotClone
│ │ │ │ └── bot.recipe
│ │ ├── StateBot.sln
│ │ └── StateBot.ruleset
│ ├── DialogPromptBot
│ │ ├── appsettings.json
│ │ ├── dialog-prompt.bot
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── DeploymentScripts
│ │ │ └── MsbotClone
│ │ │ │ └── bot.recipe
│ │ └── DialogPromptBot.ruleset
│ ├── PromptUsersForInput
│ │ ├── appsettings.json
│ │ ├── custom-prompt.bot
│ │ ├── UserProfile.cs
│ │ ├── ConversationFlow.cs
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── DeploymentScripts
│ │ │ └── MsbotClone
│ │ │ │ └── bot.recipe
│ │ └── CustomPromptBot.ruleset
│ ├── ComplexDialogBot
│ │ ├── appsettings.json
│ │ ├── complex-dialog.bot
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── UserProfile.cs
│ │ ├── DeploymentScripts
│ │ │ └── MsbotClone
│ │ │ │ └── bot.recipe
│ │ ├── ComplexDialogBot.csproj
│ │ └── BotBuilder.ruleset
│ ├── DialogInterruptionsBot
│ │ ├── appsettings.json
│ │ ├── dialog-interruptions.bot
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── UserProfile.cs
│ │ ├── DeploymentScripts
│ │ │ └── MsbotClone
│ │ │ │ └── bot.recipe
│ │ ├── DialogInterruptionsBot.csproj
│ │ └── BotBuilder.ruleset
│ └── nlp-with-dispatch
│ │ └── QnAMaker.tsv
├── README.md
└── LICENSE
├── StackOverflow-Bot
├── DialogAnalyzerFunc
│ ├── host.json
│ ├── Models
│ │ └── TextAnalyticsResult.cs
│ ├── Utilities
│ │ └── StringUtility.cs
│ ├── DialogAnalyzerFunc.csproj
│ └── Extensions
│ │ └── EnumerableExtensions.cs
├── StackBot
│ ├── Dockerfile
│ ├── dialogs
│ │ ├── languages.js
│ │ ├── menu.js
│ │ ├── brain.js
│ │ ├── search.js
│ │ ├── keywordPrompt.js
│ │ └── joke.js
│ ├── package.json
│ ├── lib
│ │ ├── cognitiveservices.js
│ │ └── sentimentanalyzerclient.js
│ └── static
│ │ └── index.html
├── StackCode
│ ├── directline.png
│ ├── StackCode-0.1.1.vsix
│ ├── tsconfig.json
│ └── out
│ │ └── test
│ │ ├── index.js.map
│ │ ├── extension.test.js.map
│ │ ├── extension.test.js
│ │ └── index.js
├── env.template
└── LICENSE
├── docs-samples
├── V4
│ └── JS
│ │ └── contosocafebot-luis-dialogs
│ │ ├── lib
│ │ ├── luisbot.d.ts
│ │ ├── CafeLUISModel.js
│ │ ├── CafeLUISModel.js.map
│ │ └── CafeLUISModel.d.ts
│ │ ├── graphics
│ │ └── run-bot.png
│ │ ├── src
│ │ ├── .vscode
│ │ │ └── launch.json
│ │ └── CafeLUISModel.ts
│ │ ├── .vscode
│ │ └── launch.json
│ │ ├── package.json
│ │ └── .gitignore
├── README.md
├── web-chat-speech
│ └── webchat-sample-speech.png
├── CSharp
│ └── Simple-LUIS-Notes-Sample
│ │ ├── Simple-LUIS-Notes-Sample
│ │ ├── Global.asax
│ │ ├── Global.asax.cs
│ │ ├── default.htm
│ │ ├── packages.config
│ │ └── Web.Debug.config
│ │ ├── VSIX
│ │ ├── BotBuilderVSIX_V3.zip
│ │ └── readme.md
│ │ ├── images
│ │ ├── notes-sample-emulator.png
│ │ ├── dotnet-notes-sample-emulator.png
│ │ └── bot-builder-dotnet-luis-message-flow-bot-code-notes.png
│ │ └── Simple-LUIS-Notes-Sample.sln
└── Node
│ └── basics-naturalLanguage
│ └── images
│ ├── bot-builder-nodejs-use-luis-read-note-output.png
│ ├── bot-builder-nodejs-use-luis-create-note-output.png
│ ├── bot-builder-nodejs-luis-message-flow-bot-code-notes.png
│ └── bot-builder-nodejs-use-luis-create-note-interruption.png
├── swagger
└── StateAPI.json
├── blog-samples
├── images
│ ├── qna-portal.png
│ ├── redux-bot-02.png
│ ├── ngrok-forward.png
│ ├── qna-rich-cards.png
│ ├── redux-abs-logo.png
│ ├── redux-store-02.png
│ ├── app-insights-metrics.png
│ ├── bot-channels-ngrok.png
│ ├── direct-line-secret-url.png
│ └── suggested-actions-feedback.png
├── README.md
├── CSharp
│ ├── MockChannel
│ │ ├── Global.asax
│ │ ├── Global.asax.cs
│ │ ├── README.md
│ │ ├── App_Start
│ │ │ └── WebApiConfig.cs
│ │ ├── MockChannel.sln
│ │ ├── Web.Debug.config
│ │ └── packages.config
│ ├── FacebookHandover
│ │ ├── Primary
│ │ │ ├── appsettings.json
│ │ │ ├── appsettings.Development.json
│ │ │ ├── Program.cs
│ │ │ ├── Properties
│ │ │ │ └── launchSettings.json
│ │ │ └── Controllers
│ │ │ │ └── BotController.cs
│ │ ├── Secondary
│ │ │ ├── appsettings.json
│ │ │ ├── appsettings.Development.json
│ │ │ ├── Program.cs
│ │ │ ├── Properties
│ │ │ │ └── launchSettings.json
│ │ │ └── Controllers
│ │ │ │ └── BotController.cs
│ │ ├── README.md
│ │ └── FacebookModel
│ │ │ ├── FacebookPsid.cs
│ │ │ ├── FacebookPassThreadControl.cs
│ │ │ ├── FacebookTakeThreadControl.cs
│ │ │ └── FacebookRequestThreadControl.cs
│ ├── ScorableBotSample
│ │ ├── ScorableBot
│ │ │ ├── Global.asax
│ │ │ ├── default.htm
│ │ │ ├── Dialogs
│ │ │ │ ├── Balance
│ │ │ │ │ ├── Savings
│ │ │ │ │ │ └── CheckBalanceSavingsDialog.cs
│ │ │ │ │ └── Current
│ │ │ │ │ │ └── CheckBalanceCurrentDialog.cs
│ │ │ │ └── RootDialog.cs
│ │ │ ├── Global.asax.cs
│ │ │ ├── packages.config
│ │ │ ├── Web.Debug.config
│ │ │ ├── Controllers
│ │ │ │ └── MessagesController.cs
│ │ │ └── App_Start
│ │ │ │ └── WebApiConfig.cs
│ │ └── ScorableBotSample.sln
│ ├── TriviaBotSpeechSample
│ │ ├── TriviaBot
│ │ │ ├── Global.asax
│ │ │ ├── Assets
│ │ │ │ ├── Trivia.png
│ │ │ │ ├── a_sunshine_intro_09.wav
│ │ │ │ ├── tv_gameshow_bell_01.wav
│ │ │ │ └── tv_gameshow_buzzer_03.wav
│ │ │ ├── Runtime
│ │ │ │ ├── BotState.cs
│ │ │ │ ├── Extensions.cs
│ │ │ │ └── EnumExtensions.cs
│ │ │ ├── Shared
│ │ │ │ ├── MessageType.cs
│ │ │ │ └── AppEntities.cs
│ │ │ ├── Global.asax.cs
│ │ │ ├── default.htm
│ │ │ ├── Luis
│ │ │ │ └── LuisResult.cs
│ │ │ └── Web.Debug.config
│ │ ├── TriviaApp
│ │ │ ├── Assets
│ │ │ │ ├── BG.png
│ │ │ │ ├── ON_ALL.png
│ │ │ │ ├── ON_Art.png
│ │ │ │ ├── Trivia.png
│ │ │ │ ├── X_Left.png
│ │ │ │ ├── Answer_2.png
│ │ │ │ ├── Answer_3.png
│ │ │ │ ├── Answer_4.png
│ │ │ │ ├── Icon_Bot.png
│ │ │ │ ├── Icon_Mic.png
│ │ │ │ ├── ON_Film.png
│ │ │ │ ├── ON_Music.png
│ │ │ │ ├── Check_Right.png
│ │ │ │ ├── Icon_User.png
│ │ │ │ ├── ON_Animals.png
│ │ │ │ ├── ON_Science.png
│ │ │ │ ├── StoreLogo.png
│ │ │ │ ├── ON_Geography.png
│ │ │ │ ├── Chat_Categories.png
│ │ │ │ ├── Dash_No_Labels.png
│ │ │ │ ├── Dash_with_Labels.png
│ │ │ │ ├── LargeTile.scale-100.png
│ │ │ │ ├── LargeTile.scale-125.png
│ │ │ │ ├── LargeTile.scale-150.png
│ │ │ │ ├── LargeTile.scale-200.png
│ │ │ │ ├── LargeTile.scale-400.png
│ │ │ │ ├── SmallTile.scale-100.png
│ │ │ │ ├── SmallTile.scale-125.png
│ │ │ │ ├── SmallTile.scale-150.png
│ │ │ │ ├── SmallTile.scale-200.png
│ │ │ │ ├── SmallTile.scale-400.png
│ │ │ │ ├── SplashScreen.scale-100.png
│ │ │ │ ├── SplashScreen.scale-125.png
│ │ │ │ ├── SplashScreen.scale-150.png
│ │ │ │ ├── SplashScreen.scale-200.png
│ │ │ │ ├── SplashScreen.scale-400.png
│ │ │ │ ├── Check_Left_2_Player_Only.png
│ │ │ │ ├── LockScreenLogo.scale-200.png
│ │ │ │ ├── Square44x44Logo.scale-100.png
│ │ │ │ ├── Square44x44Logo.scale-125.png
│ │ │ │ ├── Square44x44Logo.scale-150.png
│ │ │ │ ├── Square44x44Logo.scale-200.png
│ │ │ │ ├── Square44x44Logo.scale-400.png
│ │ │ │ ├── Wide310x150Logo.scale-100.png
│ │ │ │ ├── Wide310x150Logo.scale-125.png
│ │ │ │ ├── Wide310x150Logo.scale-150.png
│ │ │ │ ├── Wide310x150Logo.scale-200.png
│ │ │ │ ├── Wide310x150Logo.scale-400.png
│ │ │ │ ├── Square150x150Logo.scale-100.png
│ │ │ │ ├── Square150x150Logo.scale-125.png
│ │ │ │ ├── Square150x150Logo.scale-150.png
│ │ │ │ ├── Square150x150Logo.scale-200.png
│ │ │ │ ├── Square150x150Logo.scale-400.png
│ │ │ │ ├── Square44x44Logo.targetsize-16.png
│ │ │ │ ├── Square44x44Logo.targetsize-24.png
│ │ │ │ ├── Square44x44Logo.targetsize-256.png
│ │ │ │ ├── Square44x44Logo.targetsize-32.png
│ │ │ │ ├── Square44x44Logo.targetsize-48.png
│ │ │ │ ├── Square44x44Logo.altform-unplated_targetsize-16.png
│ │ │ │ ├── Square44x44Logo.altform-unplated_targetsize-32.png
│ │ │ │ ├── Square44x44Logo.altform-unplated_targetsize-48.png
│ │ │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ │ │ │ └── Square44x44Logo.altform-unplated_targetsize-256.png
│ │ │ ├── packages.config
│ │ │ ├── ViewModels
│ │ │ │ ├── AnswerCard.cs
│ │ │ │ └── ChatCard.cs
│ │ │ ├── project.json
│ │ │ ├── App.xaml
│ │ │ ├── BotConnection.cs
│ │ │ ├── Converters
│ │ │ │ └── BoolToVisibilityConverter.cs
│ │ │ └── Properties
│ │ │ │ ├── AssemblyInfo.cs
│ │ │ │ └── Default.rd.xml
│ │ └── LICENSE
│ ├── BotStateExport
│ │ ├── README.md
│ │ └── BotStateExport
│ │ │ ├── BotStateExport
│ │ │ ├── Extensions.cs
│ │ │ └── App.config
│ │ │ └── BotStateExport.sln
│ ├── Luis-Scorable-QnA
│ │ ├── Luis-Scorable-Qna
│ │ │ ├── Global.asax
│ │ │ ├── default.htm
│ │ │ ├── Dialogs
│ │ │ │ ├── QnaDialog.cs
│ │ │ │ ├── JokeDialog.cs
│ │ │ │ └── RootDialog.cs
│ │ │ ├── packages.config
│ │ │ └── Web.Debug.config
│ │ └── Luis-Scorable-Qna.sln
│ ├── Qna-Rich-Cards
│ │ ├── Qna-Rich-Cards
│ │ │ ├── Global.asax
│ │ │ ├── AnswerFormats
│ │ │ │ └── JsonQnaAnswer.cs
│ │ │ ├── Global.asax.cs
│ │ │ ├── default.htm
│ │ │ ├── Dialogs
│ │ │ │ └── RootDialog.cs
│ │ │ ├── packages.config
│ │ │ ├── Web.Debug.config
│ │ │ └── App_Start
│ │ │ │ └── WebApiConfig.cs
│ │ └── Qna-Rich-Cards.sln
│ ├── Bot-Feedback-Sample
│ │ ├── Bot-Feedback-Sample
│ │ │ ├── Global.asax
│ │ │ ├── Connected Services
│ │ │ │ └── Application Insights
│ │ │ │ │ └── ConnectedService.json
│ │ │ ├── Global.asax.cs
│ │ │ ├── default.htm
│ │ │ ├── Web.Debug.config
│ │ │ └── App_Start
│ │ │ │ └── WebApiConfig.cs
│ │ └── Bot-Feedback-Sample.sln
│ ├── AzureSql-StateClient
│ │ ├── Microsoft.Bot.Sample.AzureSql
│ │ │ ├── Global.asax
│ │ │ ├── default.htm
│ │ │ ├── SqlStateService
│ │ │ │ └── SqlBotDataContext.cs
│ │ │ ├── Migrations
│ │ │ │ ├── 201707121827490_Initial Setup.Designer.cs
│ │ │ │ └── Configuration.cs
│ │ │ ├── Global.asax.cs
│ │ │ ├── packages.config
│ │ │ └── Web.Debug.config
│ │ ├── README.md
│ │ └── Microsoft.Bot.Sample.AzureSql.sln
│ └── Custom-State-BotBuilder-Azure-Sample
│ │ ├── Azure-Table-Custom-State
│ │ ├── Global.asax
│ │ ├── default.htm
│ │ ├── Dialogs
│ │ │ └── RootDialog.cs
│ │ ├── README.md
│ │ └── Web.Debug.config
│ │ ├── Azure-DocumentDB-Custom-State
│ │ ├── Global.asax
│ │ ├── default.htm
│ │ ├── Dialogs
│ │ │ └── RootDialog.cs
│ │ └── README.md
│ │ └── README.md
└── Node
│ ├── Blog-CustomState-CosmosDB
│ ├── package.json
│ └── app.js
│ ├── Blog-Qna-Attachments
│ └── package.json
│ └── Blog-Redux-Bot
│ ├── redux
│ ├── conversationActions.js
│ ├── reducer.js
│ ├── sagas
│ │ └── dialog.js
│ ├── dialogActions.js
│ └── loadStore.js
│ ├── package.json
│ ├── LICENSE
│ └── .gitignore
├── README.md
└── LICENSE
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
--------------------------------------------------------------------------------
/SDKV4-Samples/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
--------------------------------------------------------------------------------
/StackOverflow-Bot/DialogAnalyzerFunc/host.json:
--------------------------------------------------------------------------------
1 | {
2 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/js/stateBot/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env
--------------------------------------------------------------------------------
/SDKV4-Samples/js/DialogPromptBot/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env
--------------------------------------------------------------------------------
/SDKV4-Samples/js/complexDialogBot/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env
--------------------------------------------------------------------------------
/SDKV4-Samples/js/stateBot/.env:
--------------------------------------------------------------------------------
1 | botFilePath=stateBot.bot
2 | botFileSecret=
3 |
--------------------------------------------------------------------------------
/docs-samples/V4/JS/contosocafebot-luis-dialogs/lib/luisbot.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/SDKV4-Samples/js/DialogPromptBot/.env:
--------------------------------------------------------------------------------
1 | botFilePath=dialog-prompt.bot
2 | botFileSecret=
3 |
--------------------------------------------------------------------------------
/SDKV4-Samples/js/PromptUsersForInput/.env:
--------------------------------------------------------------------------------
1 | botFilePath=simplePrompts.bot
2 | botFileSecret=
3 |
--------------------------------------------------------------------------------
/swagger/StateAPI.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/swagger/StateAPI.json
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/StateBot/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "botFilePath": "state.bot",
3 | "botFileSecret": ""
4 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/js/complexDialogBot/iisnode.yml:
--------------------------------------------------------------------------------
1 | nodeProcessCommandLine: "D:\Program Files (x86)\nodejs\8.9.4\node.exe"
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/DialogPromptBot/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "botFilePath": "dialog-prompt.bot",
3 | "botFileSecret": ""
4 | }
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackBot/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM node:8-onbuild
2 | EXPOSE 3978
3 | RUN npm install
4 | CMD ["npm", "run", "start"]
5 |
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/PromptUsersForInput/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "botFilePath": "custom-prompt.bot",
3 | "botFileSecret": ""
4 | }
--------------------------------------------------------------------------------
/blog-samples/images/qna-portal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/images/qna-portal.png
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/ComplexDialogBot/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "botFilePath": "complex-dialog.bot",
3 | "botFileSecret": ""
4 | }
5 |
--------------------------------------------------------------------------------
/blog-samples/README.md:
--------------------------------------------------------------------------------
1 | # Blog samples
2 | These samples and snippets are referenced in the [Bot Framework blog](http://blog.botframework.com).
--------------------------------------------------------------------------------
/blog-samples/images/redux-bot-02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/images/redux-bot-02.png
--------------------------------------------------------------------------------
/blog-samples/images/ngrok-forward.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/images/ngrok-forward.png
--------------------------------------------------------------------------------
/blog-samples/images/qna-rich-cards.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/images/qna-rich-cards.png
--------------------------------------------------------------------------------
/blog-samples/images/redux-abs-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/images/redux-abs-logo.png
--------------------------------------------------------------------------------
/blog-samples/images/redux-store-02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/images/redux-store-02.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/MockChannel/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MockChannel.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/DialogInterruptionsBot/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "botFilePath": "dialog-interruptions.bot",
3 | "botFileSecret": ""
4 | }
5 |
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackCode/directline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/StackOverflow-Bot/StackCode/directline.png
--------------------------------------------------------------------------------
/blog-samples/images/app-insights-metrics.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/images/app-insights-metrics.png
--------------------------------------------------------------------------------
/blog-samples/images/bot-channels-ngrok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/images/bot-channels-ngrok.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/FacebookHandover/Primary/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "MicrosoftAppId": "",
3 | "MicrosoftAppPassword": "",
4 | "FacebookPageToken": ""
5 | }
6 |
--------------------------------------------------------------------------------
/blog-samples/images/direct-line-secret-url.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/images/direct-line-secret-url.png
--------------------------------------------------------------------------------
/SDKV4-Samples/js/stateBot/resources/echo.chat:
--------------------------------------------------------------------------------
1 | user=Vishwac
2 | bot=EchoBot
3 |
4 | user: Hi
5 | bot: 1: You said "Hi"
6 | user: Hello
7 | bot: 2: You said "Hello"
8 |
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackCode/StackCode-0.1.1.vsix:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/StackOverflow-Bot/StackCode/StackCode-0.1.1.vsix
--------------------------------------------------------------------------------
/blog-samples/CSharp/FacebookHandover/Secondary/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "MicrosoftAppId": "",
3 | "MicrosoftAppPassword": "",
4 | "FacebookPageToken": ""
5 | }
6 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/ScorableBotSample/ScorableBot/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="ScorableTest.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="TriviaBot.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/BotStateExport/README.md:
--------------------------------------------------------------------------------
1 | This is some rough code for exporting an Azure Bot Service bot's bot state data. This version just dumps it to the console.
--------------------------------------------------------------------------------
/blog-samples/CSharp/Luis-Scorable-QnA/Luis-Scorable-Qna/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Scorable.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/Qna-Rich-Cards/Qna-Rich-Cards/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Qna_Rich_Cards.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/blog-samples/images/suggested-actions-feedback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/images/suggested-actions-feedback.png
--------------------------------------------------------------------------------
/SDKV4-Samples/js/PromptUsersForInput/resources/echo.chat:
--------------------------------------------------------------------------------
1 | user=Vishwac
2 | bot=EchoBot
3 |
4 | user: Hi
5 | bot: 1: You said "Hi"
6 | user: Hello
7 | bot: 2: You said "Hello"
8 |
--------------------------------------------------------------------------------
/docs-samples/README.md:
--------------------------------------------------------------------------------
1 | # Documentation samples
2 | These samples and code snippets are referenced in the [Bot Framework documentation](https://docs.microsoft.com/bot-framework).
--------------------------------------------------------------------------------
/docs-samples/web-chat-speech/webchat-sample-speech.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/docs-samples/web-chat-speech/webchat-sample-speech.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/Bot-Feedback-Sample/Bot-Feedback-Sample/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Bot_Feedback_Sample.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/docs-samples/CSharp/Simple-LUIS-Notes-Sample/Simple-LUIS-Notes-Sample/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="NotesBot01.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/BG.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/BG.png
--------------------------------------------------------------------------------
/docs-samples/V4/JS/contosocafebot-luis-dialogs/lib/CafeLUISModel.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | ;
4 | //# sourceMappingURL=CafeLUISModel.js.map
--------------------------------------------------------------------------------
/docs-samples/V4/JS/contosocafebot-luis-dialogs/lib/CafeLUISModel.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"CafeLUISModel.js","sourceRoot":"","sources":["../src/CafeLUISModel.ts"],"names":[],"mappings":";;AAeC,CAAC"}
--------------------------------------------------------------------------------
/blog-samples/CSharp/AzureSql-StateClient/Microsoft.Bot.Sample.AzureSql/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Microsoft.Bot.Sample.AzureSql.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/Custom-State-BotBuilder-Azure-Sample/Azure-Table-Custom-State/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Custom_State_Sample.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_ALL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_ALL.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Art.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Art.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Trivia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Trivia.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/X_Left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/X_Left.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Assets/Trivia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Assets/Trivia.png
--------------------------------------------------------------------------------
/docs-samples/V4/JS/contosocafebot-luis-dialogs/graphics/run-bot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/docs-samples/V4/JS/contosocafebot-luis-dialogs/graphics/run-bot.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Answer_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Answer_2.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Answer_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Answer_3.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Answer_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Answer_4.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Icon_Bot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Icon_Bot.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Icon_Mic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Icon_Mic.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Film.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Film.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Music.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Music.png
--------------------------------------------------------------------------------
/docs-samples/CSharp/Simple-LUIS-Notes-Sample/VSIX/BotBuilderVSIX_V3.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/docs-samples/CSharp/Simple-LUIS-Notes-Sample/VSIX/BotBuilderVSIX_V3.zip
--------------------------------------------------------------------------------
/blog-samples/CSharp/Custom-State-BotBuilder-Azure-Sample/Azure-DocumentDB-Custom-State/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Azure_Blob_Custom_State.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Check_Right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Check_Right.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Icon_User.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Icon_User.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Animals.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Animals.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Science.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Science.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/StoreLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/StoreLogo.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Geography.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/ON_Geography.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Chat_Categories.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Chat_Categories.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Dash_No_Labels.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Dash_No_Labels.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Dash_with_Labels.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Dash_with_Labels.png
--------------------------------------------------------------------------------
/docs-samples/CSharp/Simple-LUIS-Notes-Sample/images/notes-sample-emulator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/docs-samples/CSharp/Simple-LUIS-Notes-Sample/images/notes-sample-emulator.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LargeTile.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LargeTile.scale-100.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LargeTile.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LargeTile.scale-125.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LargeTile.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LargeTile.scale-150.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LargeTile.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LargeTile.scale-200.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LargeTile.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LargeTile.scale-400.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SmallTile.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SmallTile.scale-100.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SmallTile.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SmallTile.scale-125.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SmallTile.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SmallTile.scale-150.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SmallTile.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SmallTile.scale-200.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SmallTile.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SmallTile.scale-400.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Assets/a_sunshine_intro_09.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Assets/a_sunshine_intro_09.wav
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Assets/tv_gameshow_bell_01.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Assets/tv_gameshow_bell_01.wav
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Assets/tv_gameshow_buzzer_03.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Assets/tv_gameshow_buzzer_03.wav
--------------------------------------------------------------------------------
/docs-samples/CSharp/Simple-LUIS-Notes-Sample/images/dotnet-notes-sample-emulator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/docs-samples/CSharp/Simple-LUIS-Notes-Sample/images/dotnet-notes-sample-emulator.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/FacebookHandover/README.md:
--------------------------------------------------------------------------------
1 | # Facebook Handovers
2 |
3 | This is the sample code for the handover protocol blog post. These two bots are meant to be running simultaneously, while each is connected to its own Facebook app.
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SplashScreen.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SplashScreen.scale-100.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SplashScreen.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SplashScreen.scale-125.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SplashScreen.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SplashScreen.scale-150.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SplashScreen.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/SplashScreen.scale-400.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Check_Left_2_Player_Only.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Check_Left_2_Player_Only.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LockScreenLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/LockScreenLogo.scale-200.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.scale-100.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.scale-125.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.scale-150.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.scale-400.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Wide310x150Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Wide310x150Logo.scale-100.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Wide310x150Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Wide310x150Logo.scale-125.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Wide310x150Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Wide310x150Logo.scale-150.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Wide310x150Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Wide310x150Logo.scale-400.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square150x150Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square150x150Logo.scale-100.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square150x150Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square150x150Logo.scale-125.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square150x150Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square150x150Logo.scale-150.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square150x150Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square150x150Logo.scale-400.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-16.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-24.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-256.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-32.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-48.png
--------------------------------------------------------------------------------
/docs-samples/Node/basics-naturalLanguage/images/bot-builder-nodejs-use-luis-read-note-output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/docs-samples/Node/basics-naturalLanguage/images/bot-builder-nodejs-use-luis-read-note-output.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/ViewModels/AnswerCard.cs:
--------------------------------------------------------------------------------
1 | namespace TrivaApp.ViewModels
2 | {
3 | internal class AnswerCard
4 | {
5 | public string Index { get; set; }
6 | public string AnswerText { get; set; }
7 | }
8 | }
--------------------------------------------------------------------------------
/docs-samples/Node/basics-naturalLanguage/images/bot-builder-nodejs-use-luis-create-note-output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/docs-samples/Node/basics-naturalLanguage/images/bot-builder-nodejs-use-luis-create-note-output.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/FacebookHandover/Primary/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Debug",
5 | "System": "Information",
6 | "Microsoft": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/FacebookHandover/Secondary/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Debug",
5 | "System": "Information",
6 | "Microsoft": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/docs-samples/Node/basics-naturalLanguage/images/bot-builder-nodejs-luis-message-flow-bot-code-notes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/docs-samples/Node/basics-naturalLanguage/images/bot-builder-nodejs-luis-message-flow-bot-code-notes.png
--------------------------------------------------------------------------------
/docs-samples/Node/basics-naturalLanguage/images/bot-builder-nodejs-use-luis-create-note-interruption.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/docs-samples/Node/basics-naturalLanguage/images/bot-builder-nodejs-use-luis-create-note-interruption.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.altform-unplated_targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.altform-unplated_targetsize-16.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.altform-unplated_targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.altform-unplated_targetsize-32.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.altform-unplated_targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.altform-unplated_targetsize-48.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/docs-samples/CSharp/Simple-LUIS-Notes-Sample/images/bot-builder-dotnet-luis-message-flow-bot-code-notes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/docs-samples/CSharp/Simple-LUIS-Notes-Sample/images/bot-builder-dotnet-luis-message-flow-bot-code-notes.png
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.altform-unplated_targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/BotFramework-BlogSamples/HEAD/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/Assets/Square44x44Logo.altform-unplated_targetsize-256.png
--------------------------------------------------------------------------------
/docs-samples/CSharp/Simple-LUIS-Notes-Sample/VSIX/readme.md:
--------------------------------------------------------------------------------
1 | NOTE: This is the older version of the VSIX template. With the release of SDK v4, please use the latest VSIX available on [Visual Studio Market Place](https://marketplace.visualstudio.com/items?itemName=BotBuilder.BotBuilderV4).
2 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/Bot-Feedback-Sample/Bot-Feedback-Sample/Connected Services/Application Insights/ConnectedService.json:
--------------------------------------------------------------------------------
1 | {
2 | "ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
3 | "Version": "8.8.712.1",
4 | "GettingStartedDocument": {
5 | "Uri": ""
6 | }
7 | }
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Runtime/BotState.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 |
3 | namespace TriviaBot.Runtime
4 | {
5 | public enum BotState
6 | {
7 | None,
8 | Trivia,
9 | SwitchCategory,
10 | WaitingForReengagement
11 | }
12 | }
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/ViewModels/ChatCard.cs:
--------------------------------------------------------------------------------
1 | using Windows.UI.Xaml;
2 |
3 | namespace TrivaApp.ViewModels
4 | {
5 | internal class ChatCard
6 | {
7 | public HorizontalAlignment BorderAlignment { get; set; }
8 |
9 | public string Message { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/StateBot/state.bot:
--------------------------------------------------------------------------------
1 | {
2 | "name": "StateBot",
3 | "services": [
4 | {
5 | "type": "endpoint",
6 | "name": "development",
7 | "endpoint": "http://localhost:3978/api/messages",
8 | "appId": "",
9 | "appPassword": "",
10 | "id": "1"
11 | }
12 | ],
13 | "padlock": "",
14 | "version": "2.0"
15 | }
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackBot/dialogs/languages.js:
--------------------------------------------------------------------------------
1 | module.exports = () => {
2 | // This bot can speak *all* languages!
3 | bot.dialog('sobot:languages', [
4 | async (session) => {
5 | session.endDialog("Hmm…. I speak JavaScript, SQL, Java, C#, Python, and more...");
6 | }
7 | ]).triggerAction({
8 | matches: 'Languages'
9 | });
10 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/DialogPromptBot/dialog-prompt.bot:
--------------------------------------------------------------------------------
1 | {
2 | "name": "PromptsBot",
3 | "services": [
4 | {
5 | "type": "endpoint",
6 | "name": "development",
7 | "endpoint": "http://localhost:3978/api/messages",
8 | "appId": "",
9 | "appPassword": "",
10 | "id": "1"
11 | }
12 | ],
13 | "padlock": "",
14 | "version": "2.0"
15 | }
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackCode/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es6",
5 | "outDir": "out",
6 | "lib": [
7 | "es6"
8 | ],
9 | "sourceMap": true,
10 | "rootDir": "."
11 | },
12 | "exclude": [
13 | "node_modules",
14 | ".vscode-test"
15 | ]
16 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/PromptUsersForInput/custom-prompt.bot:
--------------------------------------------------------------------------------
1 | {
2 | "name": "CustomPromptBot",
3 | "services": [
4 | {
5 | "type": "endpoint",
6 | "name": "development",
7 | "endpoint": "http://localhost:3978/api/messages",
8 | "appId": "",
9 | "appPassword": "",
10 | "id": "1"
11 | }
12 | ],
13 | "padlock": "",
14 | "version": "2.0"
15 | }
--------------------------------------------------------------------------------
/StackOverflow-Bot/env.template:
--------------------------------------------------------------------------------
1 | export BOTBUILDER_APP_ID=
2 | export BOTBUILDER_APP_PASSWORD=
3 | export KB_ID=
4 | export QNA_KEY=
5 | export QNA_URL=
6 | export LUIS_MODEL=
7 | export DIALOG_ANALYZER_CLIENTID=
8 | export DIALOG_ANALYZER_KEY=
9 | export DIALOG_ANALYZER_URL=
10 | export BING_SEARCH_CONFIG=
11 | export BING_SEARCH_KEY=
12 | export TEXT_ANALYTICS_KEY=
13 | export TEXT_ANALYTICS_URL=
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackBot/dialogs/menu.js:
--------------------------------------------------------------------------------
1 | module.exports = () => {
2 | // Shows off a menu with all the capabilities.
3 | bot.dialog('sobot:menu', [
4 | async (session) => {
5 | let msg = attachments.buildMenuMessageWithAttachments(session);
6 | session.endDialog(msg);
7 | }
8 | ]).triggerAction({
9 | matches: 'Help'
10 | });
11 | }
12 |
--------------------------------------------------------------------------------
/SDKV4-Samples/js/stateBot/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | "extends": "standard",
3 | "rules": {
4 | "semi": [2, "always"],
5 | "indent": [2, 4],
6 | "no-return-await": 0,
7 | "space-before-function-paren": [2, {
8 | "named": "never",
9 | "anonymous": "never",
10 | "asyncArrow": "always"
11 | }],
12 | "template-curly-spacing": [2, "always"]
13 | }
14 | };
--------------------------------------------------------------------------------
/SDKV4-Samples/js/DialogPromptBot/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | "extends": "standard",
3 | "rules": {
4 | "semi": [2, "always"],
5 | "indent": [2, 4],
6 | "no-return-await": 0,
7 | "space-before-function-paren": [2, {
8 | "named": "never",
9 | "anonymous": "never",
10 | "asyncArrow": "always"
11 | }],
12 | "template-curly-spacing": [2, "always"]
13 | }
14 | };
--------------------------------------------------------------------------------
/SDKV4-Samples/js/PromptUsersForInput/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | "extends": "standard",
3 | "rules": {
4 | "semi": [2, "always"],
5 | "indent": [2, 4],
6 | "no-return-await": 0,
7 | "space-before-function-paren": [2, {
8 | "named": "never",
9 | "anonymous": "never",
10 | "asyncArrow": "always"
11 | }],
12 | "template-curly-spacing": [2, "always"]
13 | }
14 | };
--------------------------------------------------------------------------------
/SDKV4-Samples/js/complexDialogBot/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | "extends": "standard",
3 | "rules": {
4 | "semi": [2, "always"],
5 | "indent": [2, 4],
6 | "no-return-await": 0,
7 | "space-before-function-paren": [2, {
8 | "named": "never",
9 | "anonymous": "never",
10 | "asyncArrow": "always"
11 | }],
12 | "template-curly-spacing": [2, "always"]
13 | }
14 | };
--------------------------------------------------------------------------------
/SDKV4-Samples/js/stateBot/stateBot.bot:
--------------------------------------------------------------------------------
1 | {
2 | "name": "stateBot",
3 | "services": [
4 | {
5 | "type": "endpoint",
6 | "name": "development",
7 | "endpoint": "http://localhost:3978/api/messages",
8 | "appId": "",
9 | "appPassword": "",
10 | "id": "1"
11 | }
12 | ],
13 | "padlock": "",
14 | "version": "2.0"
15 | }
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Shared/MessageType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 |
3 | namespace TriviaBot.Shared
4 | {
5 | public enum MessageType
6 | {
7 | Statement,
8 | Question,
9 | GotItRight,
10 | GotItWrong,
11 | StartLightningMode,
12 | StopLightningMode,
13 | OutOfTime
14 | }
15 | }
--------------------------------------------------------------------------------
/blog-samples/CSharp/Qna-Rich-Cards/Qna-Rich-Cards/AnswerFormats/JsonQnaAnswer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace Qna_Rich_Cards.AnswerFormats
7 | {
8 | public class JsonQnaAnswer
9 | {
10 | public string title { get; set; }
11 | public string desc { get; set; }
12 | public string url { get; set; }
13 | }
14 | }
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Shared/AppEntities.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 |
3 | using System.Collections.Generic;
4 |
5 | namespace TriviaBot.Shared
6 | {
7 | public class AppEntities
8 | {
9 | public string Type = "AppEntities";
10 |
11 | public MessageType? MessageType;
12 | public IList TriviaAnswerOptions;
13 | }
14 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/PromptUsersForInput/UserProfile.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 |
6 | namespace Microsoft.BotBuilderSamples
7 | {
8 | public class UserProfile
9 | {
10 | public string Name { get; set; }
11 |
12 | public int? Age { get; set; }
13 |
14 | public string Date { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/SDKV4-Samples/js/DialogPromptBot/dialog-prompt.bot:
--------------------------------------------------------------------------------
1 | {
2 | "name": "DialogPromptBot",
3 | "services": [
4 | {
5 | "type": "endpoint",
6 | "name": "development",
7 | "endpoint": "http://localhost:3978/api/messages",
8 | "appId": "",
9 | "appPassword": "",
10 | "id": "1"
11 | }
12 | ],
13 | "padlock": "",
14 | "version": "2.0"
15 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/js/PromptUsersForInput/simplePrompts.bot:
--------------------------------------------------------------------------------
1 | {
2 | "name": "simplePrompts",
3 | "services": [
4 | {
5 | "type": "endpoint",
6 | "name": "development",
7 | "endpoint": "http://localhost:3978/api/messages",
8 | "appId": "",
9 | "appPassword": "",
10 | "id": "1"
11 | }
12 | ],
13 | "padlock": "",
14 | "version": "2.0"
15 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/ComplexDialogBot/complex-dialog.bot:
--------------------------------------------------------------------------------
1 | {
2 | "name": "complex-dialog-bot",
3 | "services": [
4 | {
5 | "type": "endpoint",
6 | "name": "development",
7 | "endpoint": "http://localhost:3978/api/messages",
8 | "appId": "",
9 | "appPassword": "",
10 | "id": "24"
11 | }
12 | ],
13 | "padlock": "",
14 | "version": "2.0"
15 | }
--------------------------------------------------------------------------------
/blog-samples/Node/Blog-CustomState-CosmosDB/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "azure-extensions-bot",
3 | "version": "1.0.0",
4 | "main": "app.js",
5 | "scripts": {
6 | "test": "echo \"Error: no test specified\" && exit 1"
7 | },
8 | "author": "MShim",
9 | "license": "ISC",
10 | "description": "",
11 | "dependencies": {
12 | "botbuilder": "^3.15.0",
13 | "botbuilder-azure": "^3.1.0",
14 | "restify": "^6.4.0"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/DialogInterruptionsBot/dialog-interruptions.bot:
--------------------------------------------------------------------------------
1 | {
2 | "name": "dialog-interruptions-bot",
3 | "services": [
4 | {
5 | "type": "endpoint",
6 | "name": "development",
7 | "endpoint": "http://localhost:3978/api/messages",
8 | "appId": "",
9 | "appPassword": "",
10 | "id": "24"
11 | }
12 | ],
13 | "padlock": "",
14 | "version": "2.0"
15 | }
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackCode/out/test/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../test/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,mEAAmE;AACnE,EAAE;AACF,8EAA8E;AAC9E,oDAAoD;AACpD,EAAE;AACF,+EAA+E;AAC/E,kFAAkF;AAClF,iFAAiF;AACjF,gFAAgF;AAChF,oDAAoD;AAEpD,IAAI,UAAU,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAElD,6EAA6E;AAC7E,mGAAmG;AACnG,UAAU,CAAC,SAAS,CAAC;IACjB,EAAE,EAAE,KAAK;IACT,SAAS,EAAE,IAAI,CAAC,mCAAmC;CACtD,CAAC,CAAC;AAEH,MAAM,CAAC,OAAO,GAAG,UAAU,CAAC"}
--------------------------------------------------------------------------------
/blog-samples/Node/Blog-Qna-Attachments/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "qna-node-bot",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "app.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "botbuilder": "^3.15.0",
13 | "botbuilder-cognitiveservices": "^1.2.0",
14 | "https": "^1.0.0",
15 | "restify": "^6.4.0"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackBot/dialogs/brain.js:
--------------------------------------------------------------------------------
1 | module.exports = () => {
2 | bot.dialog('sobot:brain', [
3 | async (session) => {
4 | session.send("Here are the Cognitive services that I use to help you today...");
5 | var servicesMessage = attachments.buildCongitiveServicesMessageWithAttachments(session);
6 | return session.endDialog(servicesMessage);
7 | }
8 | ]).triggerAction({
9 | matches: 'Brain'
10 | });
11 | }
--------------------------------------------------------------------------------
/blog-samples/CSharp/AzureSql-StateClient/Microsoft.Bot.Sample.AzureSql/default.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/MockChannel/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Http;
6 | using System.Web.Routing;
7 |
8 | namespace MockChannel
9 | {
10 | public class WebApiApplication : System.Web.HttpApplication
11 | {
12 | protected void Application_Start()
13 | {
14 | GlobalConfiguration.Configure(WebApiConfig.Register);
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/SDKV4-Samples/README.md:
--------------------------------------------------------------------------------
1 | # Bot Framework Samples
2 |
3 | This branch is for Bot Builder SDK V4 samples used in the documentation.
4 |
5 | ## Contributing
6 |
7 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
8 |
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackBot/dialogs/search.js:
--------------------------------------------------------------------------------
1 | module.exports = () => {
2 | // Perform a search and respond with results.
3 | bot.dialog('sobot:search', [
4 | async (session, args) => {
5 | session.sendTyping();
6 | let userText = session.message.text.toLowerCase();
7 | bingSearchQuery(session, { query: cleanQueryString(userText, false) });
8 | }
9 | ]).triggerAction({
10 | matches: ['Search', 'None']
11 | });
12 | }
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Http;
6 | using System.Web.Routing;
7 |
8 | namespace TriviaBot
9 | {
10 | public class WebApiApplication : System.Web.HttpApplication
11 | {
12 | protected void Application_Start()
13 | {
14 | GlobalConfiguration.Configure(WebApiConfig.Register);
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/StateBot/UserProfile.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | using System;
5 | using System.Collections.Generic;
6 | using System.Linq;
7 | using System.Threading.Tasks;
8 |
9 | namespace Microsoft.BotBuilderSamples
10 | {
11 | // Defines a state property used to track information about the user.
12 | public class UserProfile
13 | {
14 | public string Name { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/Qna-Rich-Cards/Qna-Rich-Cards/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Http;
6 | using System.Web.Routing;
7 |
8 | namespace Qna_Rich_Cards
9 | {
10 | public class WebApiApplication : System.Web.HttpApplication
11 | {
12 | protected void Application_Start()
13 | {
14 | GlobalConfiguration.Configure(WebApiConfig.Register);
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/Bot-Feedback-Sample/Bot-Feedback-Sample/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Http;
6 | using System.Web.Routing;
7 |
8 | namespace Bot_Feedback_Sample
9 | {
10 | public class WebApiApplication : System.Web.HttpApplication
11 | {
12 | protected void Application_Start()
13 | {
14 | GlobalConfiguration.Configure(WebApiConfig.Register);
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/docs-samples/CSharp/Simple-LUIS-Notes-Sample/Simple-LUIS-Notes-Sample/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Http;
6 | using System.Web.Routing;
7 |
8 | namespace NotesBot01
9 | {
10 | public class WebApiApplication : System.Web.HttpApplication
11 | {
12 | protected void Application_Start()
13 | {
14 | GlobalConfiguration.Configure(WebApiConfig.Register);
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/Qna-Rich-Cards/Qna-Rich-Cards/default.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Qna_Rich_Cards
9 | Describe your bot here and your terms of use etc.
10 | Visit Bot Framework to register your bot. When you register it, remember to set your bot's endpoint to
https://your_bots_hostname/api/messages
11 |
12 |
13 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/ScorableBotSample/ScorableBot/default.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | ScorableTest
9 | Describe your bot here and your terms of use etc.
10 | Visit Bot Framework to register your bot. When you register it, remember to set your bot's endpoint to
https://your_bots_hostname/api/messages
11 |
12 |
13 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "Microsoft.Bot.Client": "0.1.0-beta",
4 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2",
5 | "Microsoft.Xaml.Behaviors.Uwp.Managed": "2.0.0",
6 | "Newtonsoft.Json": "9.0.1"
7 | },
8 | "frameworks": {
9 | "uap10.0": {}
10 | },
11 | "runtimes": {
12 | "win10-arm": {},
13 | "win10-arm-aot": {},
14 | "win10-x86": {},
15 | "win10-x86-aot": {},
16 | "win10-x64": {},
17 | "win10-x64-aot": {}
18 | }
19 | }
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/default.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | TriviaBot
9 | Describe your bot here and your terms of use etc.
10 | Visit Bot Framework to register your bot. When you register it, remember to set your bot's endpoint to
https://your_bots_hostname/api/messages
11 |
12 |
13 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/FacebookHandover/FacebookModel/FacebookPsid.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | using Newtonsoft.Json;
5 |
6 | namespace FacebookModel
7 | {
8 | ///
9 | /// Defines a Facebook PSID.
10 | ///
11 | public class FacebookPsid
12 | {
13 | ///
14 | /// A Facebook page-scoped ID.
15 | ///
16 | [JsonProperty("id")]
17 | public string Id { get; set; }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/App.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/Bot-Feedback-Sample/Bot-Feedback-Sample/default.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Bot_Feedback_Sample
9 | Describe your bot here and your terms of use etc.
10 | Visit Bot Framework to register your bot. When you register it, remember to set your bot's endpoint to
https://your_bots_hostname/api/messages
11 |
12 |
13 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/Luis-Scorable-QnA/Luis-Scorable-Qna/default.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Luis Scorable Qna Demo Bot
9 | Describe your bot here and your terms of use etc.
10 | Visit Bot Framework to register your bot. When you register it, remember to set your bot's endpoint to
https://your_bots_hostname/api/messages
11 |
12 |
13 |
--------------------------------------------------------------------------------
/blog-samples/Node/Blog-Redux-Bot/redux/conversationActions.js:
--------------------------------------------------------------------------------
1 | const RESET = 'RESET';
2 | const SET_CITY = 'SET_CITY';
3 | const SET_USERNAME = 'SET_USERNAME';
4 |
5 | function reset() {
6 | return { type: RESET };
7 | }
8 |
9 | function setCity(city) {
10 | return { type: SET_CITY, payload: { city } };
11 | }
12 |
13 | function setUsername(username) {
14 | return { type: SET_USERNAME, payload: { username } };
15 | }
16 |
17 | module.exports = {
18 | RESET,
19 | SET_CITY,
20 | SET_USERNAME,
21 |
22 | reset,
23 | setCity,
24 | setUsername
25 | };
26 |
--------------------------------------------------------------------------------
/docs-samples/CSharp/Simple-LUIS-Notes-Sample/Simple-LUIS-Notes-Sample/default.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | NotesBot01
9 | Describe your bot here and your terms of use etc.
10 | Visit Bot Framework to register your bot. When you register it, remember to set your bot's endpoint to
https://your_bots_hostname/api/messages
11 |
12 |
13 |
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackCode/out/test/extension.test.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"extension.test.js","sourceRoot":"","sources":["../../test/extension.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,kEAAkE;AAClE,wEAAwE;AACxE,EAAE;;AAEF,2DAA2D;AAC3D,iCAAiC;AAOjC,qEAAqE;AACrE,KAAK,CAAC,iBAAiB,EAAE;IAErB,4BAA4B;IAC5B,IAAI,CAAC,aAAa,EAAE;QAChB,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QACvC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
--------------------------------------------------------------------------------
/blog-samples/CSharp/Custom-State-BotBuilder-Azure-Sample/Azure-Table-Custom-State/default.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Custom_State_Sample
9 | Describe your bot here and your terms of use etc.
10 | Visit Bot Framework to register your bot. When you register it, remember to set your bot's endpoint to
https://your_bots_hostname/api/messages
11 |
12 |
13 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/Custom-State-BotBuilder-Azure-Sample/Azure-DocumentDB-Custom-State/default.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Azure_Blob_Custom_State
9 | Describe your bot here and your terms of use etc.
10 | Visit Bot Framework to register your bot. When you register it, remember to set your bot's endpoint to
https://your_bots_hostname/api/messages
11 |
12 |
13 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/AzureSql-StateClient/Microsoft.Bot.Sample.AzureSql/SqlStateService/SqlBotDataContext.cs:
--------------------------------------------------------------------------------
1 | using System.Data.Entity;
2 |
3 |
4 | namespace Microsoft.Bot.Sample.AzureSql.SqlStateService
5 | {
6 | public class SqlBotDataContext : DbContext
7 | {
8 | public SqlBotDataContext()
9 | : this("BotDataContextConnectionString")
10 | {
11 | }
12 | public SqlBotDataContext(string connectionStringName)
13 | : base(connectionStringName)
14 | {
15 | }
16 | public DbSet BotData { get; set; }
17 | }
18 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/PromptUsersForInput/ConversationFlow.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 |
6 | namespace Microsoft.BotBuilderSamples
7 | {
8 | public class ConversationFlow
9 | {
10 | // Identifies the last question asked.
11 | public enum Question
12 | {
13 | Name,
14 | Age,
15 | Date,
16 | None, // Our last action did not involve a question.
17 | }
18 |
19 | // The last question asked.
20 | public Question LastQuestionAsked { get; set; } = Question.None;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackBot/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "stackbot",
3 | "version": "1.0.0",
4 | "description": "A bot that helps you code. Built with Bot Framework and Microsoft Cognitive Services.",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "node index.js"
8 | },
9 | "author": "Microsoft Inc.",
10 | "license": "MIT",
11 | "dependencies": {
12 | "botbuilder": "^3.9.0",
13 | "devnull": "0.0.12",
14 | "lodash": "^4.17.10",
15 | "request": "^2.87.0",
16 | "request-promise": "^4.2.2",
17 | "restify": "^5.2.1"
18 | },
19 | "engines": {
20 | "node": "8.1.4"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackBot/dialogs/keywordPrompt.js:
--------------------------------------------------------------------------------
1 | module.exports = () => {
2 | // Ask the user what they'd like to look for.
3 | bot.dialog('sobot:keywordPrompt', [
4 | async (session, args) => {
5 | session.sendTyping();
6 | builder.Prompts.text(session, 'What would you like me to search for?');
7 | },
8 | async (session, results) => {
9 | session.sendTyping();
10 | bingSearchQuery(session, { query: cleanQueryString(results.response, false) });
11 | }
12 | ]).triggerAction({
13 | matches: [/I want to ask a question|Search/i]
14 | });
15 | }
--------------------------------------------------------------------------------
/StackOverflow-Bot/DialogAnalyzerFunc/Models/TextAnalyticsResult.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.Serialization;
3 |
4 | namespace DialogAnalyzerFunc.Models
5 | {
6 | [DataContract]
7 | public class TextAnalyticsResult
8 | {
9 | [DataMember(Name = "documents")]
10 | public T[] Results { get; set; }
11 | }
12 |
13 | [DataContract]
14 | public class TextAnalyticsKeyPhrasesResult
15 | {
16 | [DataMember(Name = "id")]
17 | public string Id { get; set; }
18 |
19 | [DataMember(Name = "keyPhrases")]
20 | public string[] KeyPhrases { get; set; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/docs-samples/V4/JS/contosocafebot-luis-dialogs/src/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "type": "node",
9 | "request": "launch",
10 | "name": "Launch Program",
11 | "program": "${file}",
12 | "outFiles": [
13 | "${workspaceFolder}/**/*.js"
14 | ],
15 | "envFile": "../.env"
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/blog-samples/Node/Blog-Redux-Bot/redux/reducer.js:
--------------------------------------------------------------------------------
1 | const { RESET, SET_CITY, SET_USERNAME } = require('./conversationActions');
2 |
3 | const DEFAULT_STATE = {
4 | city: null,
5 | username: null
6 | };
7 |
8 | function conversationReducer(state = DEFAULT_STATE, action) {
9 | switch (action.type) {
10 | case RESET:
11 | state = DEFAULT_STATE;
12 | break;
13 |
14 | case SET_CITY:
15 | state = { ...state, city: action.payload.city };
16 | break;
17 |
18 | case SET_USERNAME:
19 | state = { ...state, username: action.payload.username };
20 | break;
21 | }
22 |
23 | return state;
24 | }
25 |
26 | module.exports = conversationReducer;
27 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Bot Framework Samples
2 | This repo contains samples that are specifically used in the blog posts. You can find additional [SDK V4](https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples) and [SDK V3](https://github.com/Microsoft/BotBuilder-Samples/tree/v3-sdk-samples) in the BotBuilder-Samples repo.
3 |
4 | ## Contributing
5 |
6 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
7 |
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/StateBot/ConversationData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 |
6 | namespace Microsoft.BotBuilderSamples
7 | {
8 | // Defines a state property used to track conversation data.
9 | public class ConversationData
10 | {
11 | // The time-stamp of the most recent incoming message.
12 | public string Timestamp { get; set; }
13 |
14 | // The ID of the user's channel.
15 | public string ChannelId { get; set; }
16 |
17 | // Track whether we have already asked the user's name
18 | public bool PromptedUserForName { get; set; } = false;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/MockChannel/README.md:
--------------------------------------------------------------------------------
1 | # MockChannel
2 | When creating load tests as described in [Load testing a Bot](https://blog.botframework.com/2017/06/19/Load-Testing-A-Bot/) you need
3 | a service to pass as the activity.ServiceUrl.
4 |
5 | This is a sample implementation of that callback service.
6 |
7 | To use:
8 | * build and deploy (say http://yourmockservice.azurewebsites.net)
9 | * When posting an activity to your bot from your webTest, set the activity.ServiceUrl = "http://yourmockservice.azurewebsites.net"
10 |
11 | When you run your load test generating requests to your bot, when the bot posts back it will post back to the ServiceUrl
12 | in the activity which is this mock service.
13 |
--------------------------------------------------------------------------------
/docs-samples/V4/JS/contosocafebot-luis-dialogs/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "type": "node",
9 | "request": "launch",
10 | "name": "Launch Program",
11 | "program": "${workspaceFolder}\\lib\\luisbot.js",
12 | "outFiles": [
13 | "${workspaceFolder}/**/*.js"
14 | ],
15 | "envFile": "${workspaceFolder}\\src\\.env"
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/blog-samples/Node/Blog-Redux-Bot/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "redux-bot",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "app.js",
6 | "scripts": {
7 | "start": "npx concurrently --names \"bot,web\" --kill-others \"npm run start:bot\" \"npm run start:web\"",
8 | "start:bot": "npx node-dev .",
9 | "start:web": "npx serve -p 3000 public",
10 | "test": "jest"
11 | },
12 | "private": true,
13 | "author": "",
14 | "license": "MIT",
15 | "dependencies": {
16 | "botbuilder": "^3.15.0",
17 | "dotenv": "^5.0.1",
18 | "redux": "^3.7.2",
19 | "redux-saga": "^0.16.0",
20 | "restify": "^6.4.0"
21 | },
22 | "devDependencies": {
23 | "jest": "^22.4.3"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/FacebookHandover/Primary/Program.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 | //
4 | // Generated with Bot Builder V4 SDK Template for Visual Studio EchoBot v4.3.0
5 |
6 | using Microsoft.AspNetCore;
7 | using Microsoft.AspNetCore.Hosting;
8 |
9 | namespace Primary
10 | {
11 | public class Program
12 | {
13 | public static void Main(string[] args)
14 | {
15 | CreateWebHostBuilder(args).Build().Run();
16 | }
17 |
18 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
19 | WebHost.CreateDefaultBuilder(args)
20 | .UseStartup();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/FacebookHandover/Secondary/Program.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 | //
4 | // Generated with Bot Builder V4 SDK Template for Visual Studio EchoBot v4.3.0
5 |
6 | using Microsoft.AspNetCore;
7 | using Microsoft.AspNetCore.Hosting;
8 |
9 | namespace Secondary
10 | {
11 | public class Program
12 | {
13 | public static void Main(string[] args)
14 | {
15 | CreateWebHostBuilder(args).Build().Run();
16 | }
17 |
18 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
19 | WebHost.CreateDefaultBuilder(args)
20 | .UseStartup();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/MockChannel/App_Start/WebApiConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web.Http;
5 |
6 | namespace MockChannel
7 | {
8 | public static class WebApiConfig
9 | {
10 | public static void Register(HttpConfiguration config)
11 | {
12 | // Web API configuration and services
13 |
14 | // Web API routes
15 | config.MapHttpAttributeRoutes();
16 |
17 | config.Routes.MapHttpRoute(
18 | name: "DefaultApi",
19 | routeTemplate: "api/{controller}/{id}",
20 | defaults: new { id = RouteParameter.Optional }
21 | );
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/StackOverflow-Bot/StackCode/out/test/extension.test.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | //
3 | // Note: This example test is leveraging the Mocha test framework.
4 | // Please refer to their documentation on https://mochajs.org/ for help.
5 | //
6 | Object.defineProperty(exports, "__esModule", { value: true });
7 | // The module 'assert' provides assertion methods from node
8 | const assert = require("assert");
9 | // Defines a Mocha test suite to group tests of similar kind together
10 | suite("Extension Tests", () => {
11 | // Defines a Mocha unit test
12 | test("Something 1", () => {
13 | assert.equal(-1, [1, 2, 3].indexOf(5));
14 | assert.equal(-1, [1, 2, 3].indexOf(0));
15 | });
16 | });
17 | //# sourceMappingURL=extension.test.js.map
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/StateBot/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:3978/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "StateBot": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:3978/"
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/DialogPromptBot/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:3978/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "PromptsBot": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:3978/"
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/blog-samples/CSharp/FacebookHandover/Primary/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:3978/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "Primary": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:3978/"
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/blog-samples/CSharp/FacebookHandover/Secondary/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:3979/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "Secondary": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:3979/"
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/PromptUsersForInput/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:3978/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "Bot_Builder_Echo_Bot_V43": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:3978/"
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/ComplexDialogBot/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:3978/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "_5.MultiTurn_Prompts_Bot": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:3978/"
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/SDKV4-Samples/js/stateBot/deploymentScripts/msbotClone/bot.recipe:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0",
3 | "resources": [
4 | {
5 | "type": "endpoint",
6 | "id": "1",
7 | "name": "development",
8 | "url": "http://localhost:3978/api/messages"
9 | },
10 | {
11 | "type": "endpoint",
12 | "id": "2",
13 | "name": "production",
14 | "url": "https://your-bot-url.azurewebsites.net/api/messages"
15 | },
16 | {
17 | "type": "abs",
18 | "id": "3",
19 | "name": "stateBot-abs"
20 | },
21 | {
22 | "type": "appInsights",
23 | "id": "4",
24 | "name": "stateBot-insights"
25 | },
26 | {
27 | "type": "blob",
28 | "id": "5",
29 | "name": "stateBot-blob",
30 | "container": "botstatestore"
31 | }
32 | ]
33 | }
--------------------------------------------------------------------------------
/SDKV4-Samples/dotnet_core/DialogInterruptionsBot/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:3978/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "DialogInterruptions_Sample": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:3978/"
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/BotConnection.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 |
3 | namespace TrivaApp
4 | {
5 | public static class BotConnection
6 | {
7 | #error You must specify the direct line secret of the bot to talk to
8 | #error This requires first publishing the TriviaBot project and configuring it on https://dev.botframework.com/
9 | public static string DirectLineSecret { get; } = "Your DirectLine secret here";
10 |
11 | #error Please provide a Bing Speech API key, if the Cognitive Services speech recognizer or synthesizer are used."
12 | public static string BingSpeechKey { get; } = "Your Bing Speech API key here";
13 |
14 | public static string ApplicationName { get; } = "TriviaApp";
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/blog-samples/CSharp/ScorableBotSample/ScorableBot/Dialogs/Balance/Savings/CheckBalanceSavingsDialog.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Web;
6 | using Microsoft.Bot.Builder.Dialogs;
7 |
8 | namespace ScorableTest.Dialogs.Balance.Savings
9 | {
10 | [Serializable]
11 | public class CheckBalanceSavingsDialog : IDialog