How to connect Luis to Bot FormDialog platform

I have a Dialog class, which is FormDialog (say, FormDialog <SandwichOrder>; one that builds an order for a sandwich, according to the bot documentation website). SandwichOrder includes the Price property.

I also have a Dialog class, which comes from LuisDialog, which gets the price (based on, say, size and / or province).

How can I bind Luis functionality in a form dialog?

+7
luis botframework
source share
2 answers

It is currently not possible to invoke a dialog in a form field field. But you can create your own IRecognize implementation for the field in the form (in this case, β€œPrice”) and in the call to the IEnumerable<TermMatch> Matches(string input, object defaultValue = null) in your Luis model and return all possible TermMatches based on the detected Luis objects.

+2
source share

This post: Custom fields with FormBuilder in the Microsoft Bot Framework seem to offer an answer and a way to implement their own custom field that implements IRecognizer. But so far I have not worked.

+1
source share

All Articles