Alexa, ask me about PHP

Alexa, ask me about PHP

3d55a954b25a01f3f895eb20f7c48714?s=128

Omni Adams

July 11, 2017
Tweet

Transcript

  1. Alexa, ask me about PHP

  2. What is Alexa?

  3. None
  4. None
  5. None
  6. None
  7. None
  8. None
  9. None
  10. None
  11. None
  12. None
  13. if($extractType == ‘LME') { $extract = 38; } elseif ($extractType

    == ‘DME') { $extract = 45; } elseif (is_numeric($extractType)) { $extract = $extractType; } if (is_numeric($target_gu) && is_numeric($total_gu) && is_numeric($extract)) { return ($target_gu - $total_gu) / $extract; } else { return null; }
  14. None
  15. https://developer.amazon.com/

  16. None
  17. None
  18. None
  19. None
  20. None
  21. None
  22. None
  23. None
  24. None
  25. None
  26. None
  27. { “intents”: [ { “slots”: [], “intent”: “” } ]

    }
  28. function extractAddition($expected, $actual, $extractType)

  29. Alexa, ask brew calc how much DME to go from

    ten sixty to ten ninety
  30. Alexa, askbrew calc how much DME to go from ten

    sixt
  31. xa, ask brew calchow much DME to go from ten

    sixty to ten nin
  32. lc how much DME to go from ten sixty to

    ten ninety
  33. lc how much DME to go from ten sixty to

    ten ninety
  34. how much DME to go from ten sixty to ten

    ninety {“intents”: [{ “slots”: [ {“name”: “extract”, “type”: “LIST_OF_EXTRACT_TYPES”}, {“name”: “expected”, “type”: “AMAZON.FOUR_DIGIT_NUMBER”}, {“name”: “actual”, “type”: “AMAZON.FOUR_DIGIT_NUMBER”} ], “intent”: “BrewCalcIntent” }]}
  35. None
  36. None
  37. None
  38. None
  39. DEMO TIME!

  40. https://speakerdeck.com/omnicolor/alexa-ask-me-about-php https://github.com/omnicolor/automation https://twitter.com/omnicolor Omni Adams omni@digitaldarkness.com