This repository was archived by the owner on Jun 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 528
Hospitality skill #1797
Merged
Merged
Hospitality skill #1797
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
36bd05f
add hospitality skill files
34445fe
checkout dialog
8836063
finish checkout dialog
8fa5366
fix build error
468d3f9
fix build error again
0934acf
check out dialog updates
litofish 762c86a
Add late checkout dialog and mock hotel service for api calls
litofish b5397d0
change name HospitalitySkillLuis to HospitalityLuis
litofish 559f6fb
Add initial ExtendStay dialog files
litofish decab99
Update deployment scripts
litofish 8f87411
update ExtendStay dialog
litofish ade6483
adding to ExtendStay dialog
litofish 7b7bf7f
add GetReservation dialog and update reservation adaptive card title …
litofish d66e2c3
Add more validation for date inputs in ExtendStayDialog
litofish 45ccc90
Add datetime prebuilt entity to extendstaydialog
litofish 6215969
add use of prebuilt number entity and composite entity to ExtendStayD…
litofish 616d659
small changes
litofish ea62342
add dialog switch to LateCheckoutDialog from ExtendStayDialog
litofish 37c3bb5
manifest update
litofish 244500c
handle if user has already checked out or requested a late check out …
litofish 84ef6fd
small changes in validation methods
litofish a2d0b81
Remove AutoSaveStateMiddleware and update DialogBot
litofish 030ac8b
Update deployment scripts to 0.5 release
litofish 9544de7
Delete HospitalitySkill.sln
litofish 1997a47
update versions in HospitalitySkill.csproj
litofish 526c092
Merge branch 'luna/hospitality' of https://github.com/microsoft/botfr…
litofish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
skills/src/csharp/experimental/hospitalityskill/.filenesting.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "help": "https://go.microsoft.com/fwlink/?linkid=866610", | ||
| "dependentFileProviders": { | ||
| "add": { | ||
| "pathSegment": { | ||
| "add": { | ||
| ".*": [ | ||
| ".json", | ||
| ".resx" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
41 changes: 41 additions & 0 deletions
41
skills/src/csharp/experimental/hospitalityskill/Adapters/DefaultAdapter.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System.Globalization; | ||
| using HospitalitySkill.Responses.Shared; | ||
| using HospitalitySkill.Services; | ||
| using Microsoft.Bot.Builder; | ||
| using Microsoft.Bot.Builder.Azure; | ||
| using Microsoft.Bot.Builder.Integration.AspNet.Core; | ||
| using Microsoft.Bot.Builder.Solutions.Middleware; | ||
| using Microsoft.Bot.Builder.Solutions.Responses; | ||
| using Microsoft.Bot.Connector.Authentication; | ||
| using Microsoft.Bot.Schema; | ||
|
|
||
| namespace HospitalitySkill.Bots | ||
| { | ||
| public class DefaultAdapter : BotFrameworkHttpAdapter | ||
| { | ||
| public DefaultAdapter( | ||
| BotSettings settings, | ||
| ICredentialProvider credentialProvider, | ||
| IBotTelemetryClient telemetryClient, | ||
| ResponseManager responseManager) | ||
| : base(credentialProvider) | ||
| { | ||
| OnTurnError = async (context, exception) => | ||
| { | ||
| CultureInfo.CurrentUICulture = new CultureInfo(context.Activity.Locale); | ||
| await context.SendActivityAsync(responseManager.GetResponse(SharedResponses.ErrorMessage)); | ||
| await context.SendActivityAsync(new Activity(type: ActivityTypes.Trace, text: $"Skill Error: {exception.Message} | {exception.StackTrace}")); | ||
| telemetryClient.TrackException(exception); | ||
| }; | ||
|
|
||
| Use(new TranscriptLoggerMiddleware(new AzureBlobTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container))); | ||
| Use(new TelemetryLoggerMiddleware(telemetryClient, logPersonalInformation: true)); | ||
| Use(new ShowTypingMiddleware()); | ||
| Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us")); | ||
| Use(new EventDebuggerMiddleware()); | ||
| } | ||
| } | ||
| } |
41 changes: 41 additions & 0 deletions
41
skills/src/csharp/experimental/hospitalityskill/Adapters/HospitalitySkillAdapter.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System.Globalization; | ||
| using HospitalitySkill.Responses.Shared; | ||
| using HospitalitySkill.Services; | ||
| using Microsoft.Bot.Builder; | ||
| using Microsoft.Bot.Builder.Azure; | ||
| using Microsoft.Bot.Builder.Dialogs; | ||
| using Microsoft.Bot.Builder.Skills; | ||
| using Microsoft.Bot.Builder.Solutions.Middleware; | ||
| using Microsoft.Bot.Builder.Solutions.Responses; | ||
| using Microsoft.Bot.Schema; | ||
|
|
||
| namespace HospitalitySkill.Adapters | ||
| { | ||
| public class HospitalitySkillAdapter : SkillWebSocketBotAdapter | ||
| { | ||
| public HospitalitySkillAdapter( | ||
| BotSettings settings, | ||
| UserState userState, | ||
| ConversationState conversationState, | ||
| ResponseManager responseManager, | ||
| IBotTelemetryClient telemetryClient) | ||
| { | ||
| OnTurnError = async (context, exception) => | ||
| { | ||
| CultureInfo.CurrentUICulture = new CultureInfo(context.Activity.Locale); | ||
| await context.SendActivityAsync(responseManager.GetResponse(SharedResponses.ErrorMessage)); | ||
| await context.SendActivityAsync(new Activity(type: ActivityTypes.Trace, text: $"Skill Error: {exception.Message} | {exception.StackTrace}")); | ||
| telemetryClient.TrackException(exception); | ||
| }; | ||
|
|
||
| Use(new TranscriptLoggerMiddleware(new AzureBlobTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container))); | ||
| Use(new TelemetryLoggerMiddleware(telemetryClient, logPersonalInformation: true)); | ||
| Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us")); | ||
| Use(new EventDebuggerMiddleware()); | ||
| Use(new SkillMiddleware(userState, conversationState, conversationState.CreateProperty<DialogState>(nameof(HospitalitySkill)))); | ||
| } | ||
| } | ||
| } |
46 changes: 46 additions & 0 deletions
46
skills/src/csharp/experimental/hospitalityskill/Bots/DialogBot.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System; | ||
| using System.Threading; | ||
| using System.Threading.Tasks; | ||
| using Microsoft.Bot.Builder; | ||
| using Microsoft.Bot.Builder.Dialogs; | ||
| using Microsoft.Bot.Schema; | ||
| using Microsoft.Extensions.DependencyInjection; | ||
|
|
||
| namespace HospitalitySkill.Bots | ||
| { | ||
| public class DialogBot<T> : IBot | ||
| where T : Dialog | ||
| { | ||
| private readonly Dialog _dialog; | ||
| private readonly BotState _conversationState; | ||
| private readonly BotState _userState; | ||
| private readonly IBotTelemetryClient _telemetryClient; | ||
|
|
||
| public DialogBot(IServiceProvider serviceProvider, T dialog) | ||
| { | ||
| _dialog = dialog; | ||
| _conversationState = serviceProvider.GetService<ConversationState>(); | ||
| _userState = serviceProvider.GetService<UserState>(); | ||
| _telemetryClient = serviceProvider.GetService<IBotTelemetryClient>(); | ||
| } | ||
|
|
||
| public async Task OnTurnAsync(ITurnContext turnContext, CancellationToken cancellationToken = default(CancellationToken)) | ||
| { | ||
| // Client notifying this bot took to long to respond (timed out) | ||
| if (turnContext.Activity.Code == EndOfConversationCodes.BotTimedOut) | ||
| { | ||
| _telemetryClient.TrackTrace($"Timeout in {turnContext.Activity.ChannelId} channel: Bot took too long to respond.", Severity.Information, null); | ||
| return; | ||
| } | ||
|
|
||
| await _dialog.RunAsync(turnContext, _conversationState.CreateProperty<DialogState>(nameof(DialogState)), cancellationToken); | ||
|
|
||
| // Save any state changes that might have occured during the turn. | ||
| await _conversationState.SaveChangesAsync(turnContext, false, cancellationToken); | ||
| await _userState.SaveChangesAsync(turnContext, false, cancellationToken); | ||
| } | ||
| } | ||
| } | ||
7 changes: 7 additions & 0 deletions
7
...perimental/hospitalityskill/Connected Services/Application Insights/ConnectedService.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider", | ||
| "Version": "8.13.10627.1", | ||
| "GettingStartedDocument": { | ||
| "Uri": "https://go.microsoft.com/fwlink/?LinkID=798432" | ||
| } | ||
| } |
84 changes: 84 additions & 0 deletions
84
skills/src/csharp/experimental/hospitalityskill/Content/ReservationDetails.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| { | ||
| "type": "AdaptiveCard", | ||
| "id": "ReservationDetails", | ||
| "body": [ | ||
| { | ||
| "type": "Container", | ||
| "backgroundImage": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmwAAADVCAIAAABlrTvmAAAACXBIWXMAABYlAAAWJQFJUiTwAAAG0mlUWHRYTUw6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RgWToaqeSOiijA4nQ0UrEdFVGANYSOyuhsZXZURAFWcjyd/3evo/MV2FERBViPjkYqraMiCrAqHY0UOrovo6MiCrA2HY00DP3vZXRURAEy0NFIhXRURAHy0NFIJXRURAGy0dFI2TsqogA56WikvB0VUYDMdDRSxo6KKEB+OhopV0dFFKAIOhopS0dFFKAUOhpp/Y6KKEBBdDTSyh0VUYCy6GikNTsqogDF0dFIq3VURAFKpKOR1umoiAIUKnQ094qKrdBREQUo1/F0/ktHIyzdUREFKJqORlq0oyIKUDodjfTY0X36joooQAV0NNJCHRVRgDroaKQlOiqiANXQ0UjJOyqiADUJHT17gXSutB0VUYDK6GikhB0VUYD66GikVB0VUYAq6Wik0NFDXEdFFKBWOhopvqMiClAxHY0U2VERBaibjkaK6aiIAlRPRyPNfs5IRAFaoKOR5nVURAEaoaORZnRURAHaoaORpv4+KqIATTmezn991dH5JnVURAFaczzraJTxHRVRgAbpaKSRHRVRgDbpaKQxHRVRgGbpaKSrHRVRgJbpaKTXOyqiAI3T0UivdFREAdqno5Fe6qiIAmyCjka62FERBdiK0NGTjs71c0dFFGBDdDTSs46KKMC26GikHzsqogCbo6ORnjoqogBbpKORQkdFFGCjdDTSMPQiCrBdOhpJRAE2zfujMUQUYOt0dDYRBUBHZxJRALpOR2cRUQAePXY094yKiCgA3+noJCIKwN88nHR0LBEF4DkdHUlEAbhAR8cQUQAu09GrRBSAF+no60QUgNfo6CtEFIArdPQlIgrAdTp6kYgCMIqO/kxEARhLR58RUQAm0NEfiSgA0+joExEFYDIdDUQUgDl0tBNRAGbTUREFYL6Nd1REAYiy5Y6KKACxNttREQUggW12VEQBSOOxo1sKqYgCkMzD6fxhSx39P2CJeSCLm9hfAAAAAElFTkSuQmCC", | ||
| "items": [ | ||
| { | ||
| "type": "ColumnSet", | ||
| "columns": [ | ||
| { | ||
| "type": "Column", | ||
| "items": [ | ||
| { | ||
| "type": "ColumnSet", | ||
| "columns": [ | ||
| { | ||
| "type": "Column", | ||
| "items": [ |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MwNDcgMTIuNTc0MiAxMC4xOTkyIDEyLjQzMzYgMTAuMDY2NEMxMi4zMDA4IDkuOTI1NzggMTIuMTk1MyA5Ljc2NTYyIDEyLjExNzIgOS41ODU5NEMxMi4wMzkxIDkuNDA2MjUgMTIgOS4yMTA5NCAxMiA5SDUuMzMyMDNMMy4wOTM3NSAxMy41Wk0yMi41IDE4VjE1SDEuNVYxOEgyMi41WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==", | ||
| "size": "Small", | ||
| "width": "30px", | ||
| "height": "30px" | ||
| } | ||
| ], | ||
| "width": "auto" | ||
| }, | ||
| { | ||
| "type": "Column", | ||
| "verticalContentAlignment": "Center", | ||
| "items": [ | ||
| { | ||
| "type": "TextBlock", | ||
| "id": "title", | ||
| "size": "Large", | ||
| "weight": "Bolder", | ||
| "color": "Light", | ||
| "text": "{Title}" | ||
| } | ||
| ], | ||
| "width": "stretch" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "width": "stretch" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "type": "Container", | ||
| "id": "items", | ||
| "items": [ | ||
| { | ||
| "type": "FactSet", | ||
| "facts": [ | ||
| { | ||
| "title": "Check-in Date", | ||
| "value": "{CheckInDate}" | ||
| }, | ||
| { | ||
| "title": "Check-out Date", | ||
| "value": "{CheckOutDate}" | ||
| }, | ||
| { | ||
| "title": "Check-out Time", | ||
| "value": "{CheckOutTime}" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
| "version": "1.0", | ||
| "speak": "{Speak}" | ||
| } |
24 changes: 24 additions & 0 deletions
24
skills/src/csharp/experimental/hospitalityskill/Controllers/BotController.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using Microsoft.AspNetCore.Mvc; | ||
| using Microsoft.Bot.Builder; | ||
| using Microsoft.Bot.Builder.Integration.AspNet.Core; | ||
| using Microsoft.Bot.Builder.Skills; | ||
| using Microsoft.Bot.Builder.Solutions; | ||
|
|
||
| namespace HospitalitySkill.Controllers | ||
| { | ||
| [ApiController] | ||
| public class BotController : SkillController | ||
| { | ||
| public BotController( | ||
| IBot bot, | ||
| BotSettingsBase botSettings, | ||
| IBotFrameworkHttpAdapter botFrameworkHttpAdapter, | ||
| SkillWebSocketAdapter skillWebSocketAdapter) | ||
| : base(bot, botSettings, botFrameworkHttpAdapter, skillWebSocketAdapter) | ||
| { | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.