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

Build natural voice experience with Laravel App...

Build natural voice experience with Laravel Application & Amazon Alexa (LaravelLive India)

Build voice enabled experience with your Laravel application.

Avatar for Vaibhavraj Roham

Vaibhavraj Roham

March 17, 2018

Other Decks in Technology

Transcript

  1. About Me Vaibhavraj Roham Pro duct En gineer at MYVIZO

    row anwins/vue-dropzone v r a j r o h a m h t t p s : / / v r a j r o h a m . m e v a i b h a v r a j @ v r a j r o h a m . m e laravellivein
  2. • Intelligent personal assistant • Capable of • voice interaction,

    • music playback, • making to-do lists, • setting alarms, • streaming podcasts, • playing audiobooks, • providing weather, traffic • and other real-time information, such as news. • Alexa can also control several smart devices using itself as a home automation system. • Users can extend the Alexa capabilities by installing "skills" (additional functionality developed by third-party vendors, more commonly called apps)
  3. So Alexa is Software or Hardware? Jackie is again confused…

    Sort of Hardware and Software connected to Internet.
  4. But what can I do with Alexa and my Laravel

    Application Good question Jackie… • Alexa, ask ola to book a cab • Alexa, buy me a pizza • Alexa, buy me a paper • ...
  5. Alexa, how many support tickets are open? You have 4

    support tickets assigned, 1 is on high priority. Alexa, close ticket ID #123? Ticket ID #123 is now closed. Scenario 1 Basic
  6. Alexa, schedule maintenance window for ABC application What is the

    reason? Database maintenance Ok. What is the timeframe? Next Friday, 4 AM to 5 AM Ok. Should I notify all users about this? Yes Event created and notifications to users is on the way. Beginner Scenario 2
  7. Alexa, schedule meeting with Fahad tomorrow 6 PM to 7

    PM in Romeo Sorry the room Romeo is already booked for this slot. Room Inception has 1 HR window from 6:30 PM to 7:30 PM, should I book this for you? Yes Do you need conference call facility? No, Thanks Ok. Room Inception booked for 6:30 to 7:30 PM and meeting invitation has been sent to Fahad. Little advance Scenario 3
  8. Alexa, how many production issues do I have? Enough to

    keep you working this weekend. Some bloopers Alexa, what is the status of production issue ID #123 Uh-oh, you might need to spend your whole night on it. Scenario 4
  9. What to build today? Backup Skill Laravel Backup A modern

    backup solution for Laravel apps https://github.com/spatie/laravel-backup
  10. Alexa, ask {myskill} to take a backup Sure. Backup of

    what? Code, database or all? Code Backup successful. Notification is on the way. How Backup Skill will work.
  11. Prerequisites to build Amazon Developer Account (https://developer.amazon.com) Spatie’s Laravel Backup

    Package. (https://github.com/spatie/laravel-backup) Alexa Laravel Integration Package (https://github.com/develpr/alexa-app) Laravel Passport (https://laravel.com/docs/master/passport)
  12. • OAuth2 Authorization server • Mainly used for API Authentication.

    • Enables 3rd party applications to obtain limited access to user accounts. • E.g. Login with GitHub, Facebook, Google etc. • Integrates in matter of minutes https://laravel.com/docs/master/passport An Introduction to OAuth 2
  13. Laravel Backup Application Laravel Application with vrajroham/laravel-passport-for-alexa Laravel Alexa Backup

    Skill Application Laravel Backup develpr/alexa-app vrajroham/laravel-alexa-backup-skill
  14. Important Terms Invocation Name Users say a skill's invocation name

    to begin an interaction with a particular custom skill. Example – If the invocation name is "daily horoscopes", users can say: Alexa, ask daily horoscopes for the horoscope for Gemini Intents and Slots An intent represents an action that fulfills a user's spoken request. Intents can optionally have arguments called slots. We can call them as methods in simple terms. Example – Alexa, ask Plan My Trip to plan a trip from Mumbai to New Delhi on Friday. Intent (method name) Slot 2 (Parameter) Slot 1 (Parameter) Slot 3 (Parameter) Endpoint An URL(https) where all Alexa requests will be sent. We can call it as webhook.
  15. Laravel Backup Application Code Laravel Application with vrajroham/laravel-passport-for-alexa Laravel Alexa

    Backup Skill Application Laravel Backup develpr/alexa-app vrajroham/laravel-alexa-backup-skill
  16. @ v r a j r o h a m

    h t t p s : / / v r a j r o h a m . m e v a i b h a v r a j @ v r a j r o h a m . m e https://developer.amazon.com/alexa-skills-kit/learn Learn More