Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WordPress make easier to create Alexa Skills

WordPress make easier to create Alexa Skills

Alexa Days 2017/05/17 Slides

Hidetaka Okamoto

May 17, 2017
Tweet

More Decks by Hidetaka Okamoto

Other Decks in Technology

Transcript

  1. w 8 P S E $ B N Q 

    ,Z P U P       0 S H B O J [ F S  )JEFUBLB0LBNPUP %JHJUBMDVCF%FWFMPQFS
  2. A u d i o C a p t u

    re A u d i o P l a y b a c k C a l l s o m e A P I Ta l k s o m t h i n g R e s p o n c e S p e e c h t o Te x t Te x t t o S p e e c h
  3. A u d i o C a p t u

    re A u d i o P l a y b a c k C a l l s o m e A P I Ta l k s o m t h i n g R e s p o n c e S p e e c h t o Te x t Te x t t o S p e e c h A L E X A S K I L L S K I T
  4. A u d i o C a p t u

    re A u d i o P l a y b a c k C a l l s o m e A P I Ta l k s o m t h i n g R e s p o n c e S p e e c h t o Te x t Te x t t o S p e e c h AW S L A M B D A W E B A P I A L E X A S K I L L S K I T
  5. WordPress can make RSS IUUQTXXXXJSFEDPNGFFE <item> <guid>https://www.wired.com/?p=2236905</guid> <title>The ‘Chilling Effect’

    of Trump’s Loose …</title> <description> <![CDATA[ Reports that President Trump shared highly classified intelligence with Russian officials .... </description> <link>https://www.wired.com/2017/05/…</link> <pubDate>Tue, 16 May 2017 02:29:13 +0000</pubDate> </item>
  6. Easy install by GIt / WP-CLI IUUQTXQLZPUPOFUFOUSZBMFYBXQQMVHJO $ /PATH/TO/WORDPRESS/wp-content/plugins $

    git clone [email protected]:alleyinteractive/wordpress- fieldmanager.git $ wp plugin activate wordpress-fieldmanager $ git clone [email protected]:tomharrigan/AlexaWP.git $ wp plugin get AlexaWP --format=json $ wp plugin activate AlexaWP $ wp rewrite flush
  7. Easy to create Alexa Skill backend IUUQTHJUIVCDPNBMFYBBMFYBTLJMMTLJUTELGPSOPEFKTJOTUBMMJOHBOE XPSLJOHXJUIUIFBMFYBTLJMMTLJUTELGPSOPEFKTBMFYBTEL 'use strict';var

    Alexa = require("alexa-sdk"); exports.handler = function(event, context, callback) { var alexa = Alexa.handler(event, context); alexa.registerHandlers(handlers); alexa.execute(); }; var handlers = { 'LaunchRequest': function () { this.emit(‘SayHello'); }, 'HelloWorldIntent': function () { this.emit(‘SayHello') } };
  8. These answer are hard coded into files. IUUQTHJUIVCDPNBMFYBTLJMMTBNQMFOPEFKTDJUZHVJEFCMPCNBTUFS TSDJOEFYKT-- var

    attractions = [ { name: "Woodland Park Zoo", content: "located just 10 minutes north of downtown …”, location: "There are two zoo entrances. \n West Entrance:\n Cross streets: Phinney Ave. N. between N. 55th St. & N. 56th St.\n Street address: 5500 Phinney Ave. …", contact: "[email protected]\n 206 548 2500” }, { name: "EMP Museum”, content: "Dedicated to contemporary …