I had asked this question before also but no luck, so I am posting again. I am working on amazon alexa skill and I want that when I call 'YESNOIntent' it should answer differently under different Intents.
'FirstIntent': function () {
speechoutput = 'bla bla, would you like to know anything else?'
this.emit(":ask", speechOutput)
},
'YESNOIntent': function (){
speechoutput = 'speech1'
this.emit(":ask", speechOutput)
},
'SecondIntent': function () {
speechoutput = 'bla bla, would you like to know anything else?'
this.emit(":ask", speechOutput)
},
'YESNOIntent': function (){
speechoutput = 'speech2'
this.emit(":ask", speechOutput)
},
'ThirdIntent': function () {
speechoutput = 'bla bla, would you like to know anything else?'
this.emit(":ask", speechOutput)
},
'YESNOIntent': function (){
speechoutput = 'speech3'
this.emit(":ask", speechOutput)
},
...... so on