Tuesday, 2 May 2017

Unable to match "None" intent with triggeractions

I have a bot that leverages LUIS and makes use of trigger actions. All intents work fine, but I am no longer able to get any results when the "None" intent is hit.

I understand from researching online that I might have to add an onDefault action instead, but I am unable to find any good documentation demonstrating this. Does anyone know how to make this work with triggerAction()?

The current code looks like this:

bot.dialog('None', [
    function (session, results, args, next) {
        session.send("NONE INTENT TRIGGERED", session);

    };
]).triggerAction({
    matches: 'None'
});

Would much appreciate any pointers in the right direction.



via DigitalLawyer

No comments:

Post a Comment