Skip to content

Instantly share code, notes, and snippets.

@yamaryu0508
Created July 19, 2016 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yamaryu0508/bb5350381b137e64196a9ac45de84e63 to your computer and use it in GitHub Desktop.
Save yamaryu0508/bb5350381b137e64196a9ac45de84e63 to your computer and use it in GitHub Desktop.
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