Created
July 19, 2016 07:24
-
-
Save yamaryu0508/bb5350381b137e64196a9ac45de84e63 to your computer and use it in GitHub Desktop.
This file contains 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
function runBalus(intent, session, callback) { | |
console.log('start "run Balus"'); | |
var cardTitle = intent.name; | |
var favoriteColorSlot = intent.slots.Color; | |
var repromptText = "Run Balus. I'll delete all kintone records."; | |
var sessionAttributes = {}; | |
var shouldEndSession = true; | |
var speechOutput = "Run Balus. I'll delete all kintone records."; | |
deleteOpeInvoke(function(r) { | |
console.log('kintone all records deletion'); | |
callback(sessionAttributes, | |
buildSpeechletResponse(cardTitle, speechOutput, repromptText, shouldEndSession)); | |
}, function(e) { | |
callback(sessionAttributes, | |
buildSpeechletResponse(cardTitle, speechOutput, repromptText, shouldEndSession)); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment