[英]How to get skill Id within a handler with node.js and Lambda
我想獲得Alexa發送給我的lambda函數的技能ID,但我不知道如何在處理程序中訪問它。 context.systen.session.application.applicationid無效,因為我沒有上下文或事件對象。
const LaunchRequestHandler = {
canHandle(handlerInput) {
return handlerInput.requestEnvelope.request.type === 'LaunchRequest';
},
handle(handlerInput) {
//????????????????how do I get the skill ID here??????????????
return handlerInput.responseBuilder
.speak('Test Test')
.getResponse();
},
};
const skillId = handlerInput.requestEnvelope.session.application.applicationId;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.