apply comment from PR
This commit is contained in:
@@ -63,25 +63,27 @@ var refreshTokens = function () {
|
||||
var generateInteractionModel = function (skill) {
|
||||
let result = {};
|
||||
let allIntents = [];
|
||||
let builtInIntents = [];
|
||||
|
||||
skill.intents.map (intent => {
|
||||
allIntents.push ({name: intent.intentName, samples: intent.questions});
|
||||
});
|
||||
|
||||
//Special intents (Amazon built-in don't work, probably something related to existance of dialog intent
|
||||
allIntents.push ({
|
||||
//Built-In like intents (Amazon built-in don't work, probably something related to existance of dialog intent
|
||||
|
||||
builtInIntents.push ({
|
||||
name: 'HelpIntent',
|
||||
samples: ['Help', 'Can you help me', 'I need help'],
|
||||
slots: [],
|
||||
});
|
||||
|
||||
allIntents.push ({
|
||||
builtInIntents.push ({
|
||||
name: 'CancelIntent',
|
||||
samples: ['Cancel', 'Stop', 'Please stop'],
|
||||
slots: [],
|
||||
});
|
||||
|
||||
allIntents.push ({
|
||||
builtInIntents.push ({
|
||||
name: 'YesIntent',
|
||||
samples: [
|
||||
'Yes',
|
||||
@@ -92,12 +94,14 @@ var generateInteractionModel = function (skill) {
|
||||
slots: [],
|
||||
});
|
||||
|
||||
allIntents.push ({
|
||||
builtInIntents.push ({
|
||||
name: 'NoIntent',
|
||||
samples: ['No', 'No thank you'],
|
||||
slots: [],
|
||||
});
|
||||
|
||||
allIntents.push(builtInIntents);
|
||||
|
||||
//Special intent for sending message (Dialog)
|
||||
|
||||
allIntents.push ({
|
||||
|
||||
Reference in New Issue
Block a user