Bot - Override Dialog behaviours
// See: http://www.pveller.com/smarter-conversations-part-2-open-dialogs/#Trigger-Actions
// You can define your own dialog’s behaviors by overwriting begin, replyReceived, and even recognize on your dialogs:
bot.dialog('custom', Object.assign(new builder.Dialog(), {
begin: (session) => {
session.send('I am built custom');
},
replyReceived: (session) => {
session.endDialog();
}
}));