slotの値を受け取るように

This commit is contained in:
rca 2024-07-17 06:51:33 +09:00
parent dbf3291b5a
commit a42645c295

View File

@ -36,9 +36,12 @@ const KidShiftAuthIntentHandler = {
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'KidShiftAuthIntent';
},
async handle(handlerInput: Alexa.HandlerInput) {
const speakOutput = 'Hello World!2';
const loginCode = Alexa.getSlotValue(handlerInput.requestEnvelope, 'loginCode');
const message = 'Slot value is ' + loginCode;
return handlerInput.responseBuilder
.speak(speakOutput)
.speak(message)
.getResponse();
}
};