I am new to node.js and trying to develop a sample alexa skill based on lambda function.My launch request function is like this.
'LaunchRequest': function () {
const speechOutput = HELP_MESSAGE;
console.log("Inside launch");
const reprompt = "Welcome to US Facts. Do you want a new fact";
this.response.speak(speechOutput).listen(reprompt);
this.emit(':responseReady');
// this.emit('GetmyFactIntent');
},
I want to capture what is the value user uttered? The speechoutput is emitted fine but based on user value entered\uttered I want to call different Intents. How to do that?
Also when I test lambda function..the console.log stmt is never printed. It prints fine from GetmyFactIntent method.