Actions with Google

108056ccba92f98fdbbabad534537573?s=47 Bryan Herbst
February 04, 2017

Actions with Google

Learn how to create custom actions for the Google Assistant

108056ccba92f98fdbbabad534537573?s=128

Bryan Herbst

February 04, 2017
Tweet

Transcript

  1. 7.

    What should I have for dinner? What are you in

    the mood for? You can say Italian, American, Mexican, or Chinese. !
  2. 8.

    What should I have for dinner? What are you in

    the mood for? You can say Italian, American, Mexican, or Chinese. ! Take turns.
  3. 21.

    ”Buy me a KitKat bar.” ”Okay, ordering a king sized

    KitKat bar from Amazon. Is that correct?”
  4. 22.

    ”Buy me a KitKat bar.” ”Okay, ordering a king sized

    KitKat bar from Amazon. Is that correct?” “Yes.”
  5. 23.

    ”Buy me a KitKat bar.” ”Okay, ordering a king sized

    KitKat bar from Amazon. Is that correct?” “No, make it a regular sized KitKat bar.”
  6. 29.
  7. 30.

    Conversation Direct Trigger “Talk to SERVICE about TOPIC” “Do this

    action” Responsibilities You handle interaction and fulfillment Availability Now
  8. 31.

    Conversation Direct Trigger “Talk to SERVICE about TOPIC” “Do this

    action” Responsibilities You handle interaction and fulfillment Google handles interaction, you handle fulfillment. Availability Now
  9. 32.

    Conversation Direct Trigger “Talk to SERVICE about TOPIC” “Do this

    action” Responsibilities You handle interaction and fulfillment Google handles interaction, you handle fulfillment. Availability Now Soon
  10. 47.

    Trigger Phrases • Let me talk to… • I want

    to talk to... • Can I talk to... • Talk to... • Ask... • At... • Tell... • Tell me...
  11. 56.
  12. 58.

    Intent examples • Set an alarm for 6:00am • Wake

    me up at 6:00am • I need an alarm at 6:00am • Set an alarm for March 1st at 6:00pm
  13. 59.

    Intent examples • Set an alarm for 6:00am • Wake

    me up at 6:00am • I need an alarm at 6:00am • Set an alarm for March 1st at 6:00pm
  14. 60.

    Intent examples • Set an alarm for 6:00am • Wake

    me up at 6:00am • I need an alarm at 6:00am • Set an alarm for March 1st at 6:00pm
  15. 61.

    Intent examples • Set an alarm for 6:00am • Wake

    me up at 6:00am • I need an alarm at 6:00am • Set an alarm for March 1st at 6:00pm
  16. 64.

    Fallback Intent Tell Clocky to order me a pizza I

    don’t know how to help with that.
  17. 70.
  18. 78.

    Simple webhook server let Assistant = require('actions-on-google').ApiAiAssistant; let app =

    express(); app.post('/', function (req, res) { const assistant = new Assistant({request: req, response: res}); } }
  19. 82.

    SSML- Speech Synthesis Markup Language function withSsml() { assistant.tell("This response

    uses” + "<say-as interpret-as='characters'>SSML</say-as>.” + "Isn't it <break> awesome?"); }
  20. 83.

    User Identity • ID (resettable!) • Display name • Given

    name • Family name • Coarse device location (zip code and city) • Precise device location (lat/lng, address)
  21. 84.

    User Identity • ID (resettable!) • Display name • Given

    name • Family name • Coarse device location (zip code and city) • Precise device location (lat/lng, address) Requires permission
  22. 87.

    What’s the weather like in Minneapolis? It is currently 10°

    in Minneapolis. ! Context Location: Minneapolis Temperature: 10°
  23. 88.

    What’s the weather like in Minneapolis? It is currently 10°

    in Minneapolis. ! Context Location: Minneapolis Temperature: 10°
  24. 95.