Hi,
How should i include the endpoint url from the Luis.ai in my project to get the LuisIntent.
Endpointurl: https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/........
MessageController:
- public async Task<HttpResponseMessage> Post([FromBody]Activity activity)
- {
- if (activity.Type == ActivityTypes.Message)
- {
- await Conversation.SendAsync(activity,() => new BotLuisDialog());
-
- }
- else
- {
- HandleSystemMessage(activity);
- }
- var response = Request.CreateResponse(HttpStatusCode.OK);
- return response;
- }
BotDialog:
- [LuisModel("10035b6 MY KEYS", "5dbb54 PROGRAMMATIC API KEYS")]
- [Serializable]
- public class BotLuisDialog : LuisDialog<object>
- {
- [LuisIntent("Greeting")]
- public async Task WelcomeGreeting(IDialogContext context, string messageText)
- {
- await context.PostAsync("Hello there, How can i help you?");
- context.Wait(MessageReceived);
- }
- }
Tell me where should i place the endpint url with method to get the intents.
Thanks,