-
-
Save kenjosling/aa554384a1b57fb7707a8eff8c768768 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
... | |
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