Exemple #1
0
        public async Task <IActionResult> GetIntent(Guid id)
        {
            var intent = await _luisService.GetIntentByIdAsync(id);

            if (intent == null)
            {
                return(NotFound());
            }
            var examples = await _luisService.GetExamplesAsync(intent.Name);

            return(Ok(new { intent, examples }));
        }