WordPress make easier to create Alexa Skills

WordPress make easier to create Alexa Skills

Alexa Days 2017/05/17 Slides

75486cbfd37125f121cf4a6c5614601c?s=128

Hidetaka Okamoto

May 17, 2017
Tweet

Transcript

  1. 2.

    w 8 P S E $ B N Q 

    ,Z P U P       0 S H B O J [ F S  )JEFUBLB0LBNPUP %JHJUBMDVCF%FWFMPQFS
  2. 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
  3. 5.

    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. 6.

    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. 9.
  6. 10.

    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>
  7. 17.

    Easy install by GIt / WP-CLI IUUQTXQLZPUPOFUFOUSZBMFYBXQQMVHJO $ /PATH/TO/WORDPRESS/wp-content/plugins $

    git clone git@github.com:alleyinteractive/wordpress- fieldmanager.git $ wp plugin activate wordpress-fieldmanager $ git clone git@github.com:tomharrigan/AlexaWP.git $ wp plugin get AlexaWP --format=json $ wp plugin activate AlexaWP $ wp rewrite flush
  8. 21.

    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') } };
  9. 23.

    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: "zooinfo@zoo.org\n 206 548 2500” }, { name: "EMP Museum”, content: "Dedicated to contemporary …