Experiment with Yes and No intent

This commit is contained in:
GotPPay
2018-01-23 00:40:19 +01:00
parent b1a853c363
commit 2ae983d211
2 changed files with 14 additions and 13 deletions

View File

@@ -66,16 +66,17 @@ var generateInteractionModel = function (skill) {
//Special Amazon intent
allIntents.push (
{
name: 'AMAZON.YesIntent',
samples: [],
},
{
name: 'AMAZON.NoIntent',
samples: [],
}
);
allIntents.push ({
name: 'YesIntent',
samples: ['Yes', 'Yes please', 'Sure'],
slots: [],
});
allIntents.push ({
name: 'NoIntent',
samples: ['No', 'No thank you'],
slots: [],
});
skill.intents.map (intent => {
allIntents.push ({name: intent.intentName, samples: intent.questions});