Closed antonio8101 closed 3 years ago
I confirm that it's possible to send text as input to a custom commands application.
Creates a Recognizer
as new DialogServiceConnector
and then use it a follows:
var activity = new { Text = sentence, Type = "message" };
var activitySerialized = JsonSerializer.Serialize(activity);
await Recognizer.SendActivityAsync(activitySerialized);
Is it possible to send text to match command by using the method
SendActivityAsync
. It accepts text in the form of a serialized object that must contain Text and Type property as follows: