Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Activity Info from an IDialogContext

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?

like image 481
sebagomez Avatar asked Sep 07 '16 15:09

sebagomez


1 Answers

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.

like image 61
Ezequiel Jadib Avatar answered Oct 20 '22 23:10

Ezequiel Jadib