Skip to content

Instantly share code, notes, and snippets.

@kenjosling kenjosling/bot.js Secret
Created Jul 8, 2018

Embed
What would you like to do?
...
intent.matches('List.Tickets', 'List.Tickets')
...
bot.dialog('List.Tickets', [
function (session, results, next) {
var dateRange = builder.EntityRecognizer.findEntity(results.entities, 'builtin.datetimeV2.daterange');
var application = builder.EntityRecognizer.findEntity(results.entities, 'Application');
next({ dateRange: dateRange, application: application});
}
},
function (session, results) {
var data = getData({dateRange: results.dateRange, application: results.application});
var msg = new builder.Message(session);
...
session.send(msg).endDialog();
}
]).triggerAction({
matches: 'List.Tickets',
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.