0
votes

I am using node js, I want to call luis dialog("morningUpdate") from general dialog("work")

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

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

how we can achieve this.

2
morningUpdate is the name of your dialog or the name of an intent in LUIS?Ezequiel Jadib
name of intent is morningUpdate. It mean name of intent and dialog both are sameAakash Kag
So you want to call the LUIS dialog manually, instead of just using the LUIS recognizer?Ezequiel Jadib
yes i want to call LUIS dialog manually sometime ,and some time it will call by LUIS recognizerAakash Kag
Ok, I added the question... the standard beginDialog should do the trick.. have you tried that?Ezequiel Jadib

2 Answers

1
votes

To call a new dialog, you can just use session.beginDialog('nameOfDialog');. Take a look at the basic and advanced Multi Dialogs samples.

If you need a LUIS sample, take a look at this one.

0
votes

here is actual answer

link for code

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

        }
    ]);