TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ms_ Dev
NA
236
92k
Microsoft Bot Endpoint URL in project
Apr 21 2017 12:57 AM
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,
Reply
Answers (
1
)
Any thing related to Programming and IOT
Text to Speech for regional language of india in android