Bot Recognizer
// Setup help system
bot.recognizer(new builder.RegExpRecognizer('HelpIntent', /^(help|options)/i));
bot.dialog('helpDialog', function (session, args) {
switch (args.action) {
default:
// args.action is '*:/help' indicating the triggerAction() was matched
session.endDialog("You can say 'flip a coin' or 'roll dice'.");
break;
case 'flipCoinHelp':
session.endDialog("Say 'heads' or 'tails'.");
break;
case 'rollDiceHelp':
session.endDialog("Say the number of dice you'd like rolled.");
break;
}
}).triggerAction({ matches: 'HelpIntent' });