Koshak
Developer
Posts: 16
Joined: Thu Feb 11, 2016 12:42 am

Get access to the normilized user input in .NET SDK

Wed May 18, 2016 8:43 pm

Hey guys,

I am wondering how I can access the normalized user input in the C# custom adapters Evaluate() function. context.Request.UserMessage returns the original input; I've found some variable which is called InputSentence which can be accessible via context.Request.InputList[0].Raw.InputSentence but I am not sure it is the way it's supposed to be.

JeffersonStack
Pro
Posts: 44
Joined: Fri Apr 05, 2013 1:20 am

Re: Get access to the normilized user input in .NET SDK

Wed May 18, 2016 10:15 pm

maybe you could try context.Request.FormattedMessage

Koshak
Developer
Posts: 16
Joined: Thu Feb 11, 2016 12:42 am

Re: Get access to the normilized user input in .NET SDK

Wed May 18, 2016 10:45 pm

I am using Syn.Bot 1.2.3 NuGet package and in this version context.Request has no variable with such a name :x

JeffersonStack
Pro
Posts: 44
Joined: Fri Apr 05, 2013 1:20 am

Re: Get access to the normilized user input in .NET SDK

Thu May 19, 2016 1:14 pm

hmm try context.QueryTree.InputSentence :)

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest