You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/LUIS/luis-csharp-tutorial-bf-v4.md
+182-8Lines changed: 182 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,22 +105,196 @@ In order to develop the web app bot code, download the code and use on your loca
105
105
106
106
1. Open the **LuisHelper.cs** file. This is where the user utterance entered into the bot is sent to LUIS. The response from LUIS is returned from the method as a **BookDetails** object. When you create your own bot, you should also create your own object to return the details from LUIS.
107
107
108
-
[!code-csharp[Console app code that calls a LUIS endpoint](~/samples-luis/documentation-samples/quickstarts/analyze-text/csharp/Program.cs)]
109
108
110
-
[!code-csharp[Console app code that calls a LUIS endpoint](~/samples-luis/documentation-samples/tutorial-web-app-bot/v4/luis-csharp-bot-johnsmith-src/LuisHelper.cs)]
109
+
```csharp
110
+
// Copyright (c) Microsoft Corporation. All rights reserved.
[!code-csharp[Console app code that calls a LUIS endpoint](~/samples-luis/documentation-samples/quickstarts/analyze-text/csharp/Program.cs)]
115
-
116
-
[!code-csharp[Open the BookingDetails.cs file to view how the object abstracts the LUIS information.](~/samples-luis/documentation-samples/tutorial-web-app-bot/v4/luis-csharp-bot-johnsmith-src/BookingDetails.cs"Open the BookingDetails.cs file to view how the object abstracts the LUIS information.")]
169
+
```csharp
170
+
// Copyright (c) Microsoft Corporation. All rights reserved.
[!code-csharp[Console app code that calls a LUIS endpoint](~/samples-luis/documentation-samples/quickstarts/analyze-text/csharp/Program.cs)]
122
-
123
-
[!code-csharp[Open the Dialogs folder, then the BookingDialog.cs file to understand how the BookingDetails object is used to manage the conversation flow.](~/samples-luis/documentation-samples/tutorial-web-app-bot/v4/luis-csharp-bot-johnsmith-src/Dialogs/BookingDialog.cs "Open the Dialogs folder, then the BookingDialog.cs file to understand how the BookingDetails object is used to manage the conversation flow.")]
188
+
```csharp
189
+
// Copyright (c) Microsoft Corporation. All rights reserved.
returnawaitstepContext.PromptAsync(nameof(TextPrompt), newPromptOptions { Prompt=MessageFactory.Text("Where would you like to travel to?") }, cancellationToken);
returnawaitstepContext.PromptAsync(nameof(TextPrompt), newPromptOptions { Prompt=MessageFactory.Text("Where are you traveling from?") }, cancellationToken);
0 commit comments