Closed secondubly closed 8 years ago
Hi @epitone.
I'm afraid I can't see your specific problem, but (and sorry if I am telling you something you already know but, even if you do, maybe it can help someone else). There is a specific Dialog to help with using the LUIS service. The LUISDialog (https://docs.botframework.com/en-us/csharp/builder/sdkreference/d8/df9/class_microsoft_1_1_bot_1_1_builder_1_1_dialogs_1_1_luis_dialog.html) allows you to decorate it with properties to point to your specific model and then you can have a method per Intent (as well as a method for when an intent is not matched).
I am working on a blog post about this, but it isn't finished yet, but there is a good one at http://mayoster.blogspot.co.uk/2016/05/luis-and-bot-framework-natural-language.html.
thanks @garypretty ! I may just switch to this method, as my current method is proving to be quite frustrating. I'm going to go ahead and close this.
Though when you finish that blog post, I'd love to see it!
Great, well follow me on Twitter (@garypretty) or keep an eye on www.garypretty.co.uk - it should be up in a few days! Let me know how you get on with the LUISDialog too.
Essentially what the title says, in my MessageReceivedAsync method, I grab the user's message and make a HTTP call to Luis to grab the relevant intents that match it - if it matches a specific one, I route to a specific part of the conversation. My problem is that on the first pass, the routing works fine, but on the second pass, in a specific if-statement, I get a serialization exception - which doesn't makes sense because if it worked the first time, why wouldn't it work the second time? I've marked the relevant class as Serializable, but that's not solving the problem. My code is below:
MessageReceivedAsync
InitialIntentLUIS
I double-starred the if-statement that is causing trouble - again, it works when the user goes through the first pass (telling the bot that they're looking for an app) but when they respond to that message (provide their seller ID) the bot throws a serialization error.
Any help would be greatly appreciated!