LUIS / Bot Framework multiple dialog, move intent handling to another dialog

前端 未结 2 670
臣服心动
臣服心动 2021-01-21 13:14

my goal is to implement both dialogs and LUIS into a Microsoft Bot Framework application using their C# SDK. I tried to follow this thread https://github.com/M

2条回答
  •  情深已故
    2021-01-21 14:03

    Try removing the Chain.From(() from the context.Forward call. Not sure why you are adding it, but it shouldn't be there at all.

    Try with:

    await context.Forward(new ProductsDialog(), ProductsDialogCompleted, context.Activity, CancellationToken.None);
    

    And btw, if the message you forward hits the None intent the ProductsDialogCompleted method will be hit because you are doing context.Done, which basically ends the ProductsDialog.

    Also, have in mind the StartAsync method is present in the LuisDialog base class, so you need to add the override keyword.

提交回复
热议问题