我正在开发一种Alexa技能,在启动它会询问,具体Do you want to perform something ?
取决于用户的回复'yes'或'no'我想发布另一个意图.
var handlers = {
'LaunchRequest': function () {
let prompt = this.t("ASK_FOR_SOMETHING");
let reprompt = this.t("LAUNCH_REPROMPT");
this.response.speak(this.t("WELCOME_MSG") + ' ' + prompt).listen(reprompt);
this.emit(':responseReady');
},
"SomethingIntent": function () {
//Launch this intent if the user's response is 'yes'
}
};
Run Code Online (Sandbox Code Playgroud)
我确实看过,dialog model似乎它将达到目的.但我不知道如何实现它.
amazon-web-services alexa aws-lambda alexa-skill alexa-skills-kit
其中除语言Node.js和Go更适合'chaincode的发展,当谈到maintainibility,可扩展性和更好的支持?