Development of WeatherBot code
We have completed setting up LUIS. Now let's develop a bot for knowing the weather of a given geography. We will also see how LUIS can help us in identifying the geography of a given sentence.
This guide is for C# using the Bot Framework Connector SDK .NET template:
- Open Visual Studio and navigate to
New
|Project
:

- Select
Visual C#
from the left-hand side template category. From the templates section, you will see theBot Application
template:

- Select the
Bot Application
template, name the projectWeatherBot
, and then click onOK
:

- Select the
MessagesController.cs
file, which is located under theControllers
folder:

- Update the
Post
method to call theDialogs
. For that, add a class calledWeatherDialog.cs
in to your solution and extend it withIDialog
. For that, you have to right-click on your project and selectAdd
|Class...
:

Extend the class with
IDialog
, implement its interface method,StartAsync()
, and also decorate the class with aSerializable
annotation:

The core...