Skip to content

Instantly share code, notes, and snippets.

@sandeep
Created December 5, 2016 23:18
Show Gist options
  • Save sandeep/7ba8e5d1f5533d9abf349b3fc331b74e to your computer and use it in GitHub Desktop.
Save sandeep/7ba8e5d1f5533d9abf349b3fc331b74e to your computer and use it in GitHub Desktop.
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