如何从通用对话框和luis dialog中调用luis dialog

How to call luis dialog from general dialog and luis dialog

我正在使用节点 js,我想从中调用 luis dialog("morningUpdate") 通用对话框("work")

dialog.matches('morningUpdate',[    
    function (session, args, next) {
  }
]);

bot.dialog('/work', [
  function (session, args) {
    //how to call here "morningUpdate" dialog
  }
]);

我们如何才能做到这一点。

要调用新对话框,只需使用session.beginDialog('nameOfDialog');。查看 basic and advanced 多对话框示例。

如果您需要 LUIS 示例,请查看此 one

这里是实际答案

link for code

dialog.matches('morningUpdate', 'morningUpdate');
   bot.dialog('morningUpdate', [    
        function (session, args, next) {

        }
    ]);