
var activity = await result as Activity // calculate something for us to return.private async Task MessageReceivedAsync(IDialogContext context, IAwaitable result).Replace the code of the method with below code.

Open RootDialog.cs class which is in the Dialogs folder. Now, we will make changes in the default code and will modify as per our need. Your solution should be built properly now. You need to change your application's target framework and make it 4.6.1 as below. This error comes because Task.CompletedTask is a static property added in. You just need to restore those missing NuGet packages by opening NuGet Manager.ĬS0117 'Task' does not contain a definition for 'CompletedTask' NeelBotDemo c:\users\NeelB\documents\visual studio 2017\Projects\NeelBotDemo\NeelBotDemo\Dialogs\RootDialog.cs 15 Active If you open MessagesController, it will look blood red because it cannot find the missing NuGet packages, Here, MessagesController is created by default which is the main entry point of the application. Once this is done, you can see Bot Application template as shown below.Ĭlick on Bot Application and then it will create a sample project which has the structure as below.



You have to do manual work to answer some repetitive questions.You have to send emails to get some information to send some information.You have to wait for next business day to start to get the answers to your queries.You have to read the whole FAQ to find some specific information for any website or any company.Observing how fast the companies are adopting bots, it is really the best time for you to start learning Bot Framework and start adopting bots for your business.
