diff --git a/samples/csharp_dotnetcore/52.enterprise-bot/Dialogs/Main/MainDialog.cs b/samples/csharp_dotnetcore/52.enterprise-bot/Dialogs/Main/MainDialog.cs index 8c8b55f0d8..3db8ea3c4a 100644 --- a/samples/csharp_dotnetcore/52.enterprise-bot/Dialogs/Main/MainDialog.cs +++ b/samples/csharp_dotnetcore/52.enterprise-bot/Dialogs/Main/MainDialog.cs @@ -103,7 +103,7 @@ public MainDialog(BotServices services, ConversationState conversationState, Use } else if (intent == Dispatch.Intent.q_FAQ) { - var qnaService = _services.QnAServices["EnterpriseBot-FAQ"]; + var qnaService = _services.QnAServices[""]; var answers = await qnaService.GetAnswersAsync(dc.Context); if (answers != null && answers.Count() > 0) diff --git a/samples/csharp_dotnetcore/52.enterprise-bot/readme.md b/samples/csharp_dotnetcore/52.enterprise-bot/readme.md index b1709fe46c..a897c57224 100644 --- a/samples/csharp_dotnetcore/52.enterprise-bot/readme.md +++ b/samples/csharp_dotnetcore/52.enterprise-bot/readme.md @@ -31,15 +31,19 @@ 5. Update your `appsettings.json` with your .bot file path and .bot file secret (if set). -6. There are two locations that need to be updated in the code. +6. There are two locations that need to be updated in the code to resolve the LUIS service. In the following files: MainDialog.cs EnterpriseDialog.cs The following line needs to be updated in both files: var luisService = _services.LuisServices[_General]; The must be replaced with the provided in step 4 above. + +7. Check the QnAService name in your `.bot` file and update the following line in MainDialog.cs. + var qnaService = _services.QnAServices[]; +The must be replaced with the of your QnA service. -7. Run your bot project and type "hi" to verify your services are correctly configured +8. Run your bot project and type "hi" to verify your services are correctly configured ## Enabling more scenarios