Esempio n. 1
0
        public async Task ScheduleMeeting(IDialogContext context, LuisResult result)
        {
            await context.PostAsync("Scheduling Meeting...");

            context.Call(new ScheduleMeetingDialog(), ResumeAfterGeneral);
        }
 public async Task SetUpNUpdateCardMessage(IDialogContext context, IActivity activity)
 {
     context.Call(new UpdateCardMsgSetupDialog(), this.EndDialog);
 }
 public async Task RunMessageBackDialog(IDialogContext context, IActivity activity)
 {
     context.Call(new MessagebackDialog(), this.EndDialog);
 }
 public async Task FetchLastExecutedDialog(IDialogContext context, IActivity activity)
 {
     context.Call(new GetLastDialogUsedDialog(), this.EndDialog);
 }
 public async Task FetchRosterPayLoadDetails(IDialogContext context, IActivity activity)
 {
     context.Call(new FetchRosterDialog(), this.EndDialog);
 }
 public async Task RunHelloDialog(IDialogContext context, IActivity activity)
 {
     context.Call(new HelloDialog(), this.EndDialog);
 }
 public async Task MultiDialog2(IDialogContext context, IActivity activity)
 {
     context.Call(new MultiDialog2(), this.EndDialog);
 }
Esempio n. 8
0
        public async Task ProjectInitiation(IDialogContext context, LuisResult result)
        {
            await context.PostAsync("select project for definition...");

            context.Call(new ProjectInitiationDialog(), ResumeAfterGeneral);
        }
Esempio n. 9
0
        public async Task CostEstimation(IDialogContext context, LuisResult result)
        {
            await context.PostAsync("select project for which you want to check cost...");

            context.Call(new CostEstimationDialog(), ResumeAfterGeneral);
        }
Esempio n. 10
0
        public async Task Release(IDialogContext context, LuisResult result)
        {
            await context.PostAsync("For which sprint you wanted to know the release date?");

            context.Call(new ReleaseDialog(), ResumeAfterGeneral);
        }
Esempio n. 11
0
        public async Task Resources(IDialogContext context, LuisResult result)
        {
            await context.PostAsync("Searching for available Resources");

            context.Call(new ResourceDialog(), ResumeAfterGeneral);
        }
Esempio n. 12
0
        public async Task CurrentProjectList(IDialogContext context, LuisResult result)
        {
            await context.PostAsync("your Current Project List...");

            context.Call(new CurrentProjectListDialog(), ResumeAfterGeneral);
        }
Esempio n. 13
0
        public async Task ListOfProject(IDialogContext context, LuisResult result)
        {
            await context.PostAsync("Finding your Project List...");

            context.Call(new ProjectListDialog(), ResumeAfterGeneral);
        }
Esempio n. 14
0
        public async Task NoProjectTeam(IDialogContext context, LuisResult result)
        {
            await context.PostAsync("Finding team members details for your project...");

            context.Call(new NoProjectTeamDialog(), ResumeAfterGeneral);
        }
Esempio n. 15
0
        public async Task BugReport(IDialogContext context, LuisResult result)
        {
            var enrollmentForm = new FormDialog <BugReport>(new BugReport(), this.NewBugReport, FormOptions.PromptInStart);

            context.Call <BugReport>(enrollmentForm, Callback);
        }
Esempio n. 16
0
 public async Task CompletedTask(IDialogContext context, LuisResult result)
 {
     context.Call(new CompletedTaskDialog(), ResumeAfterGeneral);
 }
        private async Task SendStep1MsgAsync(IDialogContext context, IActivity activity)
        {
            await context.PostAsync(Strings.DialogFlowStep2);

            context.Call(new BeginDialogExampleDialog(), this.ResumeAfterDialogFlow);
        }
Esempio n. 18
0
 public async Task RemainingTask(IDialogContext context, LuisResult result)
 {
     context.Call(new RemainingTaskDialog(), ResumeAfterGeneral);
 }
 public async Task AtMentionMatchUser(IDialogContext context, IActivity activity)
 {
     context.Call(new AtMentionDialog(), this.EndDialog);
 }
Esempio n. 20
0
 public async Task Help(IDialogContext context, LuisResult result)
 {
     context.Call(new HelpDialog(), ResumeAfterGeneral);
 }
 public async Task Default(IDialogContext context, IActivity activity)
 {
     context.Call(new HelpDialog(), this.EndDialog);
 }
Esempio n. 22
0
 public async Task TaskTomorrow(IDialogContext context, IAwaitable <object> activity, LuisResult result)
 {
     context.Call(new TaskTomorrowDialog(), ResumeAfterGeneral);
 }
        public async Task SendOneToOneConversation(IDialogContext context, IActivity activity)
        {
            await context.PostAsync(Strings.Send1on1ConfirmMsg);

            context.Call(new ProactiveMsgTo1to1Dialog(), this.EndDialog);
        }
Esempio n. 24
0
        public async Task StartInspection(IDialogContext context, LuisResult result)
        {
            await context.PostAsync("Inspection is started.");

            context.Call(_inspectionDialog, null);
        }
 public async Task UpdateLastSetUpTextMessage(IDialogContext context, IActivity activity)
 {
     context.Call(new UpdateTextMsgDialog(), this.EndDialog);
 }
Esempio n. 26
0
        private async Task BotLogic(IDialogContext context, IAwaitable <object> result)
        {
            if (await result is Activity activity && activity.Text != string.Empty)
            {
                var reply = activity.CreateReply(String.Empty);
                reply.Type = ActivityTypes.Typing;
                await context.PostAsync(reply);

                var userMessage = activity.Text;

                //Récupération du service QnaMaker
                var qnaService = new Services.CognitiveServices.QnaService();

                //Utilisation du service et récupération de la réponse
                var qnaResponse = await qnaService.GetAnswerFromQnA(userMessage);

                //Récupération du service Luis
                var luisService = new Services.CognitiveServices.LuisService();

                //Utilisation du service et récupération de la réponse
                var luisResponse = await luisService.GetAnswerFromLuis(userMessage);

                //Récupération du service TextAnalytics
                var textAnalyticsService = new Services.CognitiveServices.TextAnalyticsService();

                //Utilisation du service et récupération de la réponse
                var testAnalyticsResponse = await textAnalyticsService.GetTextAnalyticsSentiments(userMessage);

                //Test du scorable
                if (luisResponse.TopScoringIntent.Intent != "None" && qnaResponse.Score < 70 || luisResponse.TopScoringIntent.Intent == "GetOpinion" && luisResponse.TopScoringIntent.Score < 0.7 || luisResponse.TopScoringIntent.Intent == "Greetings")
                {
                    if (luisResponse.TopScoringIntent.Score > 0.6 && qnaResponse.Score < 70 || qnaResponse.Score > 100)
                    {
                        context.Call(new LuisDialog(luisResponse, testAnalyticsResponse, userMessage), BotLogic);
                    }

                    if (qnaResponse.Score > 70 && luisResponse.TopScoringIntent.Score < 0.7 ||
                        luisResponse.TopScoringIntent.Score > 1)
                    {
                        context.Call(new QnaDialog(qnaResponse, testAnalyticsResponse), BotLogic);
                    }

                    if (qnaResponse.Score > 70 && qnaResponse.Score <= 100 &&
                        luisResponse.TopScoringIntent.Score > 0.7 && luisResponse.TopScoringIntent.Score <= 1)
                    {
                        if (qnaResponse.Score > luisResponse.TopScoringIntent.Score)
                        {
                            context.Call(new QnaDialog(qnaResponse, testAnalyticsResponse), BotLogic);
                        }
                        else
                        {
                            context.Call(new LuisDialog(luisResponse, testAnalyticsResponse, userMessage), BotLogic);
                        }
                    }

                    if (qnaResponse.Score < 50 && luisResponse.TopScoringIntent.Score < 0.6 ||
                        luisResponse.TopScoringIntent.Intent == "None")
                    {
                        await context.PostAsync("Et là c'est le bug ! Peux-tu répéter ?");

                        context.Call(new TextAnalyticsDialog(testAnalyticsResponse), BotLogic);
                    }
                }
                else
                {
                    await context.PostAsync("Et là c'est le bug ! Peux-tu répéter ? Je vais te donner mon ressentiment sur ton message ");

                    context.Call(new TextAnalyticsDialog(testAnalyticsResponse), BotLogic);
                }
            }
 public async Task DisplayCards(IDialogContext context, IActivity activity)
 {
     context.Call(new DisplayCardsDialog(), this.EndDialog);
 }
Esempio n. 28
0
 public async Task Greeting(IDialogContext context, LuisResult result)
 {
     //**Colocar Punto Debug para localizar MEnsaje recivido
     context.Call(new GreetingDialog(), Callback);
 }
 public async Task DeeplinkDialog(IDialogContext context, IActivity activity)
 {
     context.Call(new DeepLinkStaticTabDialog(), this.EndDialog);
 }
Esempio n. 30
0
        public async Task Deadline(IDialogContext context, LuisResult result)
        {
            await context.PostAsync("Searching for deadline...");

            context.Call(new DeadLineDialog(), ResumeAfterGeneral);
        }