0
我正嘗試使用Microsoft bot框架構建luis ai bot。是否有可能讓用戶參與進來?Bot框架LuisDialog混合對話框
例如:
internal static IDialog<Order> MakeRootDialog()
{
return Chain.From(() => FormDialog.FromForm(Order.BuildForm));
}
[LuisIntent("SWO")]
public async Task StartWo(IDialogContext context, LuisResult result)
{
if (no == 0)
{
Message message = new Message();
await Conversation.SendAsync(message, MakeRootDialog);
}
else
{
string message = "starting work ";
await context.PostAsync(message);
context.Wait(MessageReceived);
}
}