Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to handle attachments during a LuisDialog?

So far, I've been able to train a LUIS model and hook up its intents into a dialog that inherits from LuisDialog. I assumed that when whenever I sent an unrecognizable message to the model, it would be captured by the 'None' intent, and that's true for text, but not for files. When i send a picture, for instance, nothing happens, and when I send text+picture, some intent will pick it up, but there will be no picture in the message attachments.

What is the recommended way to handle files inside a LUIS dialog?

like image 232
Bernardo Avatar asked Oct 31 '22 06:10

Bernardo


1 Answers

You can override the MessageReceived(...) function of the LuisDialog keep the fields of the message that you need as member variables (in this case the attachments) and access those fields in your intent handlers.

like image 147
Shahin Shayandeh Avatar answered Jan 04 '23 14:01

Shahin Shayandeh