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

How to synchronize WordPress and Alexa at YAKIT...

How to synchronize WordPress and Alexa at YAKITORI Restaurant

When User tell to Alexa "Alexa, ask wp post set state to full", Alexa automatically update WordPress Page.

haruharuharuby

August 30, 2017
Tweet

More Decks by haruharuharuby

Other Decks in Technology

Transcript

  1. How to Use Alexa at YAKITORI Restaurant 30 August 2017

    Alexa and AI global meetup TiNm’S
  2. Who am I ? TiNm’S Tomoharu Ito Freelance Programmer. (I

    live in Netherlands now) Ruby、AWS、Alexa, etc…. I’m one of a organizer of JAWS-UG KOBE
  3. JAWS-UG KOBE TiNm’S • Atsushi Ando • Kazuto Takeshita •

    Tomoharu Ito Facebook community https://www.facebook.com/groups/450069605016080/ Doorkeeper https://jaws-ug-kobe.doorkeeper.jp/
  4. • It is full of customers. (This is very good

    situation!!! ) • Customer is checking our web site(WordPress) • We are apologizing whenever customers have come. • Our hands is covered by oil. We can’t touch any devices.
  5. !

  6. Solution You It is full of customers now! WP REST

    API You would wait for few minutes before getting in. Size of the could Now acceptable. ⬇ WordPress Voice Over Update
  7. Designing conversation User: Alexa, use wp post Alexa: Hi. What’s

    up? User: It’s a slow day. Alexa: OK. I hope You would become a busy. User: Alexa, use wp post Alexa: Hi. What’s up? User: It’s full of customers. Alexa: Sounds great! Dialog 1 Dialog 2
  8. Designing conversation User: Alexa, use wp post Alexa: Hi. What’s

    up? User: ….( no sounds.. ) Alexa: You can say. “It’s slow day” or “full of customer’ User: Alexa, use wp post Alexa: Hi. What’s up? User: It’s full of customers. Alexa: Sorry. I couldn’t understand. Please try again. Re-prompted dialog.. Error dialog..
  9. Intent, Slots, Sample Utterance • Intent ◦ This is definition

    user's intent. • Slots ◦ This is the specific word you want to take it in user utterance. • Sample Utterance ◦ This is example phrases that user talk to alexa.
  10. Implementation { "intents": [ { "name": "OurRestaulantAcceptableIntent", ← Intent "samples":

    [ "It’s a slow day.", ← Sample Utterance "We are free",← Sampl Utterance "Nobody is in our restaurant."← Sample Utterance ], "slots": []← Slots }, : ] } You define utterances how users tell to Alexa by using JSON.
  11. ← CALL WP REST API ← will changed by the

    contents on WordPress ← Response of Aexa if succeeded ↑ Response of Aexa if operation has failed ↑ Response of Aexa if no sounds..
  12. TiNm’S We don’t have to write many code. We don’t

    have to set many configuration. (Only few steps and define by JSON.)