예제 #1
0
        /// <summary>
        /// Demande à luis la comprehension
        /// </summary>
        /// <param name="result"></param>
        /// <returns></returns>
        public async Task <JsonResult> GetReponse(string result)
        {
            var actions = GetJsonModels();
            //UserConnect.GetContext(HttpContext);
            LuisService luisService = new LuisService();
            var         resultLuis  = await luisService.SendRequest(result);

            var resultRequest = actions.Where(a => a.Intent == resultLuis.TopScoringIntent.Intent).FirstOrDefault();

            return(new JsonResult()
            {
                Data = "Test", JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }