ApiAiRecognizer icon indicating copy to clipboard operation
ApiAiRecognizer copied to clipboard

What is the right way to handle default intents?

Open InsaneNaman opened this issue 6 years ago • 0 comments

Hi there, According to docs, if we need to match an intent and respond acc to that then, we can do something like this

intents.matches('intent.name',function(session,args){  
    session.send("your response");  
});

But i just want to declare something like a default intent match so it can just push the default response coming from DialogFlow. So can anyone tell me the right procedure to do it? If no intent matches then bot should use that default one. Thanks in advance.

InsaneNaman avatar Sep 24 '18 16:09 InsaneNaman