尝试在我的lambda函数中为Alexa语音实现API请求。由于某种原因,它失败了。我相信这可能是格式问题。
这是我的意图:
int.MinValue
这是我的请求功能:
const UserReplyIntent_Handler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === 'IntentRequest' && request.intent.name === 'UserReplyIntent' ;
},
async handle(handlerInput) {
const response = await httpGet();
console.log(response);
return handlerInput.responseBuilder
.speak("Okay. Here is what I got back." + response.records.fields.Indication)
.reprompt("Would you like to learn more?")
.getResponse();
},
};
}
我唯一省略的是我的airtable授权密钥