Click here to Skip to main content
15,881,027 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
This is the code, so in this how would I enter a set of question and answers , so that the chatbot can respond on entering a question ;


public partial class BotService : Page
   {
       private static WidgetChannel WidgetChannel { get; }
       private static OscovaBot Bot { get; }

       static BotService()
       {
           Bot = new OscovaBot();
           WidgetChannel = new WidgetChannel(Bot);

           //Add the pre-built channel test dialog.
           Bot.Dialogs.Add(new ChannelTestDialog(Bot));

           //Start training.
           Bot.Trainer.StartTraining();

           var websiteUrl = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority);
           WidgetChannel.ServiceUrl = websiteUrl + "/BotService.aspx";
           WidgetChannel.ResourceUrl = websiteUrl + "/BotResources";

           WidgetChannel.WidgetTitle = "Our Smart Bot!";
           WidgetChannel.LaunchButtonText = "Ask";
           WidgetChannel.InputPlaceHolder = "Ask your query here...";


       }

       protected void Page_Load(object sender, EventArgs e)
       {
           WidgetChannel.Process(Request, Response);
       }
   }


I have all types of references required for it .

What I have tried:

Nothing till now. Still searching for the answer .
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900