Пример #1
0
        public GetHelpDialog(LuisSetup luisRecognizer, ILogger <GetHelpDialog> logger, UserState userState, NoUnderstandDialog noUnderstand, GiveOptionsDialog giveOptions, GoodbyeDialog goodbye, IHttpClientFactory httpClient, IConfiguration configuration, NoPermissionDialog noPermission)
            : base(nameof(GetHelpDialog))
        {
            _recognizer        = luisRecognizer;
            _userState         = userState;
            _configuration     = configuration;
            _httpClientFactory = httpClient;
            Logger             = logger;

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(noUnderstand);
            AddDialog(giveOptions);
            AddDialog(goodbye);
            AddDialog(noPermission);

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                AskHelpAsync,
                WhatToHelpAsync,
                RetryWhatToHelpAsync,
                QnaGoToAsync,
                EndAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Пример #2
0
        public SendContactDialog(LuisSetup luisRecognizer, ILogger <SendContactDialog> logger, UserState userState, GoodbyeDialog goodbye, NoPermissionDialog noPermission)
            : base(nameof(SendContactDialog))
        {
            _recognizer = luisRecognizer;
            _userState  = userState;
            Logger      = logger;

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(goodbye);
            AddDialog(noPermission);

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                SendAsync,
                FinalStepAsync,
                EndAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
        public SuitCustomerNeedsDialog(LuisSetup luisRecognizer, ILogger <SuitCustomerNeedsDialog> logger, UserState userState, NoPermissionDialog noPermission)
            : base(nameof(SuitCustomerNeedsDialog))
        {
            _recognizer = luisRecognizer;
            _userState  = userState;
            Logger      = logger;

            //AddDialog(new MainDialog());
            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(noPermission);

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                GetEmployeeAsync,
                GoToEmployeeAsync,
                EndAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Пример #4
0
        public TrueNoToMainDialog(LuisSetup luisRecognizer, ILogger <TrueNoToMainDialog> logger, UserState userState, IConfiguration configuration, IHttpClientFactory httpClientFactory, GoodbyeDialog goodbye, NoPermissionDialog noPermission)
            : base(nameof(TrueNoToMainDialog))
        {
            _recognizer        = luisRecognizer;
            _userState         = userState;
            _configuration     = configuration;
            _httpClientFactory = httpClientFactory;
            Logger             = logger;

            //AddDialog(new MainDialog());
            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(goodbye);
            AddDialog(noPermission);

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                PreQnaAsync,
                QnaAsync,
                RetryEnd,
                EndAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Пример #5
0
        public InfoSendNotClientDialog(LuisSetup luisRecognizer, ILogger <InfoSendNotClientDialog> logger, UserState userState, NoPermissionDialog noPermission, NoUnderstandDialog noUnderstand, GetPhoneDialog getPhone, GoodbyeDialog goodbye)
            : base(nameof(InfoSendNotClientDialog))
        {
            _recognizer = luisRecognizer;
            _userState  = userState;
            Logger      = logger;

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(noPermission);
            AddDialog(noUnderstand);
            AddDialog(getPhone);
            AddDialog(goodbye);

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                WantMoreAsync,
                YesNoAsync,
                RetryYesNoAsync,
                EndAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Пример #6
0
        public GetPhoneDialog(LuisSetup luisRecognizer, ILogger <GetPhoneDialog> logger, UserState userState, NoPermissionDialog noPermission)
            : base(nameof(GetPhoneDialog))
        {
            _recognizer = luisRecognizer;
            _userState  = userState;
            Logger      = logger;

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(noPermission);

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                PleaseSendAsync,
                FinalAsync,
                EndAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Пример #7
0
        public GetAssistantDialog(LuisSetup luisRecognizer, ILogger <GetAssistantDialog> logger, UserState userState, NoPermissionDialog noPermission, SuitCustomerNeedsDialog suitCustomer, NoUnderstandDialog noUnderstand, GoodbyeDialog goodbye)
            : base(nameof(GetAssistantDialog))
        {
            _recognizer = luisRecognizer;
            _userState  = userState;
            Logger      = logger;

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(noPermission);
            AddDialog(suitCustomer);
            AddDialog(noUnderstand);
            AddDialog(goodbye);

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                WantAsync,
                RetryWantAsync,
                EndAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Пример #8
0
        public WhereToReceiveDialog(LuisSetup luisRecognizer, ILogger <WhereToReceiveDialog> logger, UserState userState, NoUnderstandDialog noUnderstand, GetAssistantDialog getAssistant, NoPermissionDialog noPermission, GoodbyeDialog goodbye)
            : base(nameof(WhereToReceiveDialog))
        {
            _recognizer = luisRecognizer;
            _userState  = userState;
            Logger      = logger;

            //AddDialog(new MainDialog());
            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(noUnderstand);
            AddDialog(getAssistant);
            AddDialog(noPermission);
            AddDialog(goodbye);

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                OkEmployeeAsync,
                EndOkEmployeeAsync,
                RetryEndOkEmployeeAsync,
                EndAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }