I'm using a LuisDialog and all I get the the callback returns is an IDialogContext and the LuisResult. Is there a way I can get info from the original Activity, like channel, from name, et al?
Asked
Active
Viewed 2,018 times
1 Answers
11
Since the v3.2.0 release you can access the original incoming message from the intent handlers. Check here to understand how your intent handler should looks like.
public async Task MyHandler(IDialogContext context, IAwaitable<IMessageActivity> activity, LuisResult result)
Alternatively, you can use context.MakeMessage but I would recommend updating your intent handlers.

Ezequiel Jadib
- 14,767
- 2
- 38
- 43
-
thanks, BTW with `context.MakeMessage` you can't get the text from the original Activity, so I guess upgrading is a must :) – sebagomez Sep 07 '16 at 22:50
-
Correct. If you need the original text, you must go with the newest intent handler signature. – Ezequiel Jadib Sep 08 '16 at 09:45
-
When I use this in my intent, It shows an exception with intent name in exception message "none". I think it means it could not find the none intent with same signature. – Chirag K Feb 05 '17 at 10:42
-
Do you have to change the syntax of your messagescontroller in order to get it to work? I don't know how to do it. Help!!! – Chirag K Feb 05 '17 at 13:44
-
Have you updated the version of the BotBuilder nuget package? Do you have a none intent both in the code and in Luis? – Ezequiel Jadib Feb 06 '17 at 10:13