Slide 14
Slide 14 text
14
リクエスタの実装
const continueIntentHandler = {
・・・
handle(handlerInput) {
const speakOutput = 'それではプリンタスキルを呼び出して印刷します。';
return handlerInput.responseBuilder
.speak(speakOutput)
.addDirective({
'type': 'Connections.StartConnection',
'uri': 'connection://AMAZON.PrintPDF/1',
'input': {
'@type': 'PrintPDFRequest',
'@version': '1',
'title': 'サンプルのPDF',
'description': 'スキルコネクションズのサンプルのPDFです。',
'url': 'https://******.s3-ap-northeast-1.amazonaws.com/sample1.pdf'
},
'token': 'none'
})
.getResponse();