Created
December 5, 2016 23:18
-
-
Save sandeep/7ba8e5d1f5533d9abf349b3fc331b74e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var intents = new builder.IntentDialog({ recognizers: [recognizer] }) | |
.matches('Greeting', (session, args) => { | |
session.send('oh Halo.'); | |
}) | |
.matches('None', (session, args) => { | |
session.send("Hrm.. I didn't understand that. Can you say it differently") | |
}) | |
.onDefault((session) => { | |
session.send('Sorry, I did not understand \'%s\'.', session.message.text); | |
}); | |
bot.dialog('/', intents); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment