in lambda/src/index.ts [208:226]
async handle(handlerInput) {
const confirmationStatus = (handlerInput.requestEnvelope.request as IntentRequest).intent.confirmationStatus
if (confirmationStatus === 'CONFIRMED') {
const speakOutput = '予定を登録しました';
await garoxaController.registerRegularSchedule(garoxaController.detail)
return handlerInput.responseBuilder
.speak(speakOutput)
.withShouldEndSession(true)
.getResponse();
}
return handlerInput.responseBuilder
.speak('予定の登録をキャンセルします')
.withShouldEndSession(true)
.getResponse();
}