Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Developing alexa Skill using Java With AWS Lambda

95 views

Published on

Gone are the days where we build applications and just think about graphical user interfaces, look and feel etc., There is a new interface that is gaining popularity. As Amazon, Google and Apple are bringing in voice assistants, it has become extremely important for us to learn how to build voice-activated applications. Voice based commands are much more complex than a GUI, user actions on our application are limited to button clicks, combo box selections, typing in text fields comprise of the majority of instructions. With touchscreen, we can see some more actions users can perform like swipe, pinch, zoom, rotate etc., However, with voice a single user may ask our application to do specific tasks in wide variety of ways, to increase the complexity even further different people may use and each have their own way of speaking. Alexa provides a simple framework to build these skills. In this article I will show you how you can build your own Alexa Skills.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Developing alexa Skill using Java With AWS Lambda

  1. 1. Building Alexa Skills With Java on AWS -Buddha Jyothiprasad
  2. 2. Outline • Understand Requirements • Create the skill interface • Develop Lambda for handling intents • Use slots to extract data • Use DynamoDB to persist data
  3. 3. About Me SLIDE # 3 Buddha Jyothiprasad @prbuddha Controlspace.info JUG Lead for Hyderabad Java User Group, Open source Contributor and an Author at Pluralsight Personal Skills Work Experience SDE Amazon Developer Oracle Test Automation Engg. IBM AWS JavaFX Java Automation
  4. 4. Disclaimer I’m not representing Amazon’s view nor this should be treated as marketing for an Amazon’s product. I did not work in Alexa team, so I can be wrong in some aspects. Please do not mind.
  5. 5. How does it work SLIDE # 5 Echo
  6. 6. How does it work SLIDE # 6 Alexa voice service Echo
  7. 7. How does it work SLIDE # 7 Alexa voice service Echo Lambda function Traditional server
  8. 8. How does it work SLIDE # 8 Alexa voice service Echo Lambda function Traditional server Alexa enabled device Amazon dev portal Service endpoints
  9. 9. Lets get technical COMPANY NAME SLIDE # 9 User command User of Alexa gives a command Listen Alexa enabled devices listens the commands Send to cloud Device sends the command to Alexa Service Understand Alexa skill understands the intent
  10. 10. Lets get technical COMPANY NAME SLIDE # 10 command of Alexa a mand Listen Alexa enabled devices listens the commands Send to cloud Device sends the command to Alexa Service Understand Alexa skill understands the intent Invoke Code Alexa voice service calls lambda
  11. 11. Lets get technical COMPANY NAME SLIDE # 11 Invoke Code Alexa voice service calls lambda Data If required data is fetched from dynamo db Logging Any errors are logged to cloud watch by
  12. 12. Lets get technical COMPANY NAME SLIDE # 12 Invoke Code Alexa voice service calls lambda Data If required data is fetched from dynamo db Logging Any errors are logged to cloud watch by
  13. 13. Lets get technical COMPANY NAME SLIDE # 13 Handle response Textual response is received Invoke Code Alexa voice service calls lambda Data If required data is fetched from dynamo db Logging Any errors are logged to cloud watch by
  14. 14. Lets get technical COMPANY NAME SLIDE # 14 Response Prep Response to audio and card Handle response Textual response is received Invoke Code Alexa voice service calls lambda Data If required data is fetched from dynamo db Lo An log wa
  15. 15. Lets get technical COMPANY NAME SLIDE # 15 Play response Response received is announced Response Prep Response to audio and card Handle response Textual response is received Invoke Code Alexa voice service calls lambda Data If req is fetc dynam
  16. 16. Lets get technical COMPANY NAME SLIDE # 16 User is happy Can enjoy with his freed hands Play response Response received is announced Response Prep Response to audio and card Handle response Textual response is received
  17. 17. Process To Create an Alexa Skill Create skill in Alexa developer portal Intent Slots Interfaces Create several intents to capture User’s intention Any data to be extracted with the help of slots Configure any interfaces like audio player etc.,
  18. 18. Process To Create an Alexa Skill Create skill in Alexa developer portal Intent Slots Interfaces Create several intents to capture User’s intention Any data to be extracted with the help of slots Configure any interfaces like audio player etc., • What is the weather today • Please tell me today’s news • Add milk to my shopping list • Add slides preparation in TODO • Please play music by Lady Gaga
  19. 19. Process To Create an Alexa Skill Create skill in Alexa developer portal Intent Slots Interfaces Create several intents to capture User’s intention Any data to be extracted with the help of slots Configure any interfaces like audio player etc., • What is the weather today • Please tell me today’s news • Add milk to my shopping list • Add slides preparation in TODO • Please play music by Lady Gaga
  20. 20. Process To Create an Alexa Skill Create skill in Alexa developer portal Intent Slots Interfaces Create several intents to capture User’s intention Any data to be extracted with the help of slots Configure any interfaces like audio player etc., • What is the weather today • Please tell me today’s news • Add milk to my shopping list • Add slides preparation in TODO • Please play music by Lady Gaga
  21. 21. Process To Create an Alexa Skill Create skill in Alexa developer portal Intent Slots Interfaces Create several intents to capture User’s intention Any data to be extracted with the help of slots Configure any interfaces like audio player etc., • What is the weather today • Please tell me today’s news • Add milk to my shopping list • Add slides preparation in TODO • Please play music by Lady Gaga
  22. 22. Process To Create an Alexa Skill Create skill in Alexa developer portal Intent Slots Interfaces Create several intents to capture User’s intention Any data to be extracted with the help of slots Configure any interfaces like audio player etc., • Today you can expect rain • India and Pakistan made peace • Milk is added to your shopping list • Slides preparation Added in TODO • Shuffling music by Lady Gaga
  23. 23. Process To Create an Alexa Skill Create skill in Alexa developer portal Intent Slots Interfaces Create several intents to capture User’s intention Any data to be extracted with the help of slots Configure any interfaces like audio player etc.,
  24. 24. Process To Create an Alexa Skill Create skill in Alexa developer portal Intent Slots Interfaces Create several intents to capture User’s intention Any data to be extracted with the help of slots Configure any interfaces like audio player etc., Configure EndPoint
  25. 25. Process To Create an Alexa Skill Create skill in Alexa developer portal Intent Slots Interfaces Create several intents to capture User’s intention Any data to be extracted with the help of slots Configure any interfaces like audio player etc., Configure EndPoint Develop Lambda Deploy Lambda Give required permissions
  26. 26. Demo • Create the skill interface • Develop Lambda for handling intents • Use slots to extract data • Use DynamoDB to persist data
  27. 27. https://developer.amazon.com/alexa-skills-kit Next Steps

×