{"id":15755,"date":"2018-12-07T23:30:47","date_gmt":"2018-12-07T14:30:47","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=15755"},"modified":"2018-12-04T16:20:38","modified_gmt":"2018-12-04T07:20:38","slug":"%e3%80%90alexa%e3%82%b9%e3%82%ad%e3%83%ab%e9%96%8b%e7%99%ba%e3%80%91%e4%bb%8a%e6%9b%b4%e3%81%a0%e3%81%91%e3%81%a9%e3%80%81body-template%e3%81%ae%e7%a8%ae%e9%a1%9e%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/%e3%80%90alexa%e3%82%b9%e3%82%ad%e3%83%ab%e9%96%8b%e7%99%ba%e3%80%91%e4%bb%8a%e6%9b%b4%e3%81%a0%e3%81%91%e3%81%a9%e3%80%81body-template%e3%81%ae%e7%a8%ae%e9%a1%9e%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","title":{"rendered":"\u3010Alexa\u30b9\u30ad\u30eb\u958b\u767a\u3011\u4eca\u66f4\u3060\u3051\u3069\u3001Body Template\u306e\u7a2e\u985e\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u307f\u305f"},"content":{"rendered":"<p><a href=\"https:\/\/qiita.com\/advent-calendar\/2018\/assistant\">AI\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8 Advent Calendar 2018<\/a> 8\u65e5\u76ee\u3067\u3059!<\/p>\n<p>\u958b\u767a\u90e8 \u8fbb\u3067\u3059\u3002<br \/>\n\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u767b\u9332\u3057\u3066\u3044\u305f\u3053\u3068\u3092\u4e00\u9031\u9593\u524d\u307e\u3067\u5fd8\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>12\u670812\u65e5\u306b\u3064\u3044\u306b\u65e5\u672c\u306b\u3082Echo Show\u7aef\u672b\u304c\u6765\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u753b\u9762\u4ed8\u304d\u30b9\u30ad\u30eb\u958b\u767a\u306b\u306f\u6b20\u304b\u305b\u306a\u3044Body Template\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u203b\u4eca\u56deAlexa Presentation Language(APL)\u306e\u8a71\u306f\u3057\u307e\u305b\u3093\u306e\u3067\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Alexa Developer Console\u306e\u30c6\u30b9\u30c8\u3067\u8868\u793a\u3055\u308c\u308b\u3082\u306e\u306f\u82e5\u5e72\u753b\u50cf\u306e\u8868\u793a\u306a\u3069\u304c\u305a\u308c\u3066\u3044\u308b\u305f\u3081\u3001Echo Show(\u65e5\u672c\u672a\u767a\u58f2)\u3092\u4f7f\u7528\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<br \/>\n(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3092\u64ae\u5f71\u3057\u305f\u305f\u3081\u5199\u771f\u304c\u7c97\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u2026\u3059\u307f\u307e\u305b\u3093)<\/p>\n<h2>\u76ee\u6b21<\/h2>\n<ul>\n<li><a href=\"#BodyTemplate1\">BodyTemplate1<\/a><\/li>\n<li><a href=\"#BodyTemplate2\">BodyTemplate2<\/a><\/li>\n<li><a href=\"#BodyTemplate3\">BodyTemplate3<\/a><\/li>\n<li><a href=\"#BodyTemplate6\">BodyTemplate6<\/a><\/li>\n<li><a href=\"#BodyTemplate7\">BodyTemplate7<\/a><\/li>\n<\/ul>\n<h2 id=\"BodyTemplate1\">BodyTemplate1<\/h2>\n<p>\u753b\u50cf\u304c\u80cc\u666f\u306b\u3001\u5de6\u4e0a\u306b\u6587\u5b57\u304c\u51fa\u3066\u304f\u308b\u30bf\u30a4\u30d7\u3067\u3059\u306d\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl1.jpg\" alt=\"\" width=\"4032\" height=\"2268\" class=\"alignnone size-full wp-image-15760\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl1.jpg 4032w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl1-300x169.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl1-768x432.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl1-1024x576.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl1-240x135.jpg 240w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl1-728x410.jpg 728w\" sizes=\"auto, (max-width: 4032px) 100vw, 4032px\" \/><\/a><\/p>\n<pre>\nconst IMG_URL = 'https:\/\/www.sabacan.info\/img\/syoku_img01.png';\n\nconst image = new ImageHelper()\n    .addImageInstance(IMG_URL)\n    .getImage();\n\nconst text = new PlainTextContentHelper()\n    .withPrimaryText('Primary Text')\n    .withSecondaryText('Secondary Text')\n    .withTertiaryText('Tertiary Text')\n    .getTextContent();\n\nconst title = 'BodyTemplate1';\n\nreturn handlerInput.responseBuilder\n    .speak(title)\n    .addRenderTemplateDirective({\n        type: \"BodyTemplate1\",\n        backButton: \"VISIBLE\",\n        backgroundImage: image,\n        title: title,\n        textContent: text\n    })\n    .getResponse();\n<\/pre>\n<h2 id=\"BodyTemplate2\">BodyTemplate2<\/h2>\n<p>BodyTemplate1\u306e\u53f3\u4e0a\u306b\u5225\u306e\u753b\u50cf\u3092\u633f\u5165\u3067\u304d\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl2.jpg\" alt=\"\" width=\"4032\" height=\"2268\" class=\"alignnone size-full wp-image-15762\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl2.jpg 4032w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl2-300x169.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl2-768x432.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl2-1024x576.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl2-240x135.jpg 240w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl2-728x410.jpg 728w\" sizes=\"auto, (max-width: 4032px) 100vw, 4032px\" \/><\/a><\/p>\n<pre>\nconst IMG_URL = 'https:\/\/www.sabacan.info\/img\/syoku_img01.png';\nconst IMG2_URL = 'https:\/\/www.sabacan.info\/img\/syoku_img00.png';\n\nconst image = new ImageHelper()\n    .addImageInstance(IMG_URL)\n    .getImage();\n\nconst image2 = new ImageHelper()\n    .addImageInstance(IMG2_URL)\n    .getImage();\n\nconst text = new PlainTextContentHelper()\n    .withPrimaryText('Primary Text')\n    .withSecondaryText('Secondary Text')\n    .withTertiaryText('Tertiary Text')\n    .getTextContent();\n\nconst title = 'BodyTemplate2';\n\nreturn handlerInput.responseBuilder\n    .speak(title)\n    .addRenderTemplateDirective({\n        type: \"BodyTemplate2\",\n        backButton: \"VISIBLE\",\n        backgroundImage: image,\n        image: image2,\n        title: title,\n        textContent: text\n    })\n    .getResponse();\n<\/pre>\n<h2 id=\"BodyTemplate3\">BodyTemplate3<\/h2>\n<p>\u5de6\u4e0a\u306e\u753b\u50cf\u3092\u9854\u5199\u771f\u3068\u304b\u306b\u3059\u308c\u3070\u4eba\u7269\u7d39\u4ecb\u306b\u4f7f\u3048\u305d\u3046\u306a\u611f\u3058<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl3.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl3.jpg\" alt=\"\" width=\"4032\" height=\"2268\" class=\"alignnone size-full wp-image-15764\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl3.jpg 4032w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl3-300x169.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl3-768x432.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl3-1024x576.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl3-240x135.jpg 240w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl3-728x410.jpg 728w\" sizes=\"auto, (max-width: 4032px) 100vw, 4032px\" \/><\/a><\/p>\n<pre>\nconst IMG_URL = 'https:\/\/www.sabacan.info\/img\/syoku_img01.png';\nconst IMG2_URL = 'https:\/\/www.sabacan.info\/img\/syoku_img00.png';\n\nconst image = new ImageHelper()\n    .addImageInstance(IMG_URL)\n    .getImage();\n\nconst image2 = new ImageHelper()\n    .addImageInstance(IMG2_URL)\n    .getImage();\n\nconst text = new PlainTextContentHelper()\n    .withPrimaryText('Primary Text')\n    .withSecondaryText('Secondary Text')\n    .withTertiaryText('Tertiary Text')\n    .getTextContent();\n\nconst title = 'BodyTemplate3';\n\nreturn handlerInput.responseBuilder\n    .speak(title)\n    .addRenderTemplateDirective({\n        type: \"BodyTemplate3\",\n        backButton: \"VISIBLE\",\n        backgroundImage: image,\n        image: image2,\n        title: title,\n        textContent: text\n    })\n    .getResponse();\n<\/pre>\n<h2 id=\"BodyTemplate6\">BodyTemplate6<\/h2>\n<p>\u5de6\u4e0b\u306b\u3061\u3087\u3063\u3068\u3057\u305f\u8aac\u660e\u3092\u5165\u308c\u308b\u611f\u3058\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl6.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl6.jpg\" alt=\"\" width=\"4032\" height=\"2268\" class=\"alignnone size-full wp-image-15765\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl6.jpg 4032w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl6-300x169.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl6-768x432.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl6-1024x576.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl6-240x135.jpg 240w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl6-728x410.jpg 728w\" sizes=\"auto, (max-width: 4032px) 100vw, 4032px\" \/><\/a><\/p>\n<pre>\nconst IMG_URL = 'https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/11\/IMG_3016-728x546.jpg';\nconst IMG2_URL = 'https:\/\/www.sabacan.info\/img\/syoku_img00.png';\n\nconst image = new ImageHelper()\n    .addImageInstance(IMG_URL)\n    .getImage();\n\nconst image2 = new ImageHelper()\n    .addImageInstance(IMG2_URL)\n    .getImage();\n\nconst text = new PlainTextContentHelper()\n    .withPrimaryText('Primary Text')\n    .withSecondaryText('Secondary Text')\n    .withTertiaryText('Tertiary Text')\n    .getTextContent();\n\nconst title = 'BodyTemplate6';\n\nreturn handlerInput.responseBuilder\n    .speak(title)\n    .addRenderTemplateDirective({\n        type: \"BodyTemplate6\",\n        backButton: \"VISIBLE\",\n        backgroundImage: image,\n        image: image2,\n        textContent: text\n    })\n    .getResponse();\n<\/pre>\n<h2 id=\"BodyTemplate7\">BodyTemplate7<\/h2>\n<p>\u6587\u5b57\u60c5\u5831\u306f\u30bf\u30a4\u30c8\u30eb\u306e\u307f\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002<br \/>\n\u753b\u50cf\u3067\u8aac\u660e\u3057\u305f\u3044\u5834\u5408\u306b\u4fbf\u5229\u305d\u3046\u3067\u3059<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl7.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl7.jpg\" alt=\"\" width=\"4032\" height=\"2268\" class=\"alignnone size-full wp-image-15767\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl7.jpg 4032w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl7-300x169.jpg 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl7-768x432.jpg 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl7-1024x576.jpg 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl7-240x135.jpg 240w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/12\/Tpl7-728x410.jpg 728w\" sizes=\"auto, (max-width: 4032px) 100vw, 4032px\" \/><\/a><\/p>\n<pre>\nconst IMG_URL = 'https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2017\/11\/IMG_3016-728x546.jpg';\nconst IMG2_URL = 'https:\/\/www.sabacan.info\/img\/syoku_img00.png';\n\nconst image = new ImageHelper()\n    .addImageInstance(IMG_URL)\n    .getImage();\n\nconst image2 = new ImageHelper()\n    .addImageInstance(IMG2_URL)\n    .getImage();\n\nconst text = new PlainTextContentHelper()\n    .withPrimaryText('Primary Text')\n    .withSecondaryText('Secondary Text')\n    .withTertiaryText('Tertiary Text')\n    .getTextContent();\n\nconst title = 'BodyTemplate7';\n\nreturn handlerInput.responseBuilder\n    .speak(title)\n    .addRenderTemplateDirective({\n        type: \"BodyTemplate7\",\n        backButton: \"VISIBLE\",\n        backgroundImage: image,\n        image: image2,\n        title: title,\n    })\n    .getResponse();\n<\/pre>\n<h2 id=\"end\">\u307e\u3068\u3081<\/h2>\n<p>\u3082\u3046\u3059\u3050\u65e5\u672c\u3067\u3082Echo Show\u304c\u767b\u5834\u3059\u308b\u306e\u3067\u3001\u5927\u753b\u9762\u8868\u793a\u5bfe\u5fdc\u306e\u30b9\u30ad\u30eb\u958b\u767a\u304c\u306f\u304b\u3069\u308a\u307e\u3059\u306d!!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AI\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8 Advent Calendar 2018 8\u65e5\u76ee\u3067\u3059! \u958b\u767a\u90e8 \u8fbb\u3067\u3059\u3002 \u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u767b\u9332\u3057\u3066\u3044\u305f\u3053\u3068\u3092\u4e00\u9031\u9593\u524d\u307e\u3067\u5fd8\u308c\u3066\u3044\u307e\u3057\u305f\u3002 12\u670812\u65e5\u306b\u3064\u3044\u306b\u65e5\u672c\u306b\u3082Echo Show\u7aef\u672b\u304c\u6765\u308b\u3068&#8230;<\/p>\n","protected":false},"author":1,"featured_media":15251,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"15755","footnotes":""},"categories":[316,9],"tags":[334,335,102],"class_list":{"0":"post-15755","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-alexa","8":"category-dev","9":"tag-alexa","10":"tag-ask-sdk","11":"tag-aws","12":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/15755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=15755"}],"version-history":[{"count":7,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/15755\/revisions"}],"predecessor-version":[{"id":15770,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/15755\/revisions\/15770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/15251"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=15755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=15755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=15755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}