SlideShare a Scribd company logo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
B uild a Game S kill for E cho B uttons!
A L X 3 0 6
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
PRESENTED BY:
Chachi Kruel
Senior Software
Development
Manager, Alexa
Nathan Grice
Senior
Solutions
Architect, Alexa
Kyle McGee
Senior Business
Development
Lead, Alexa
Cami Williams
Senior
Evangelist,
Alexa
Jenn Jinong
Senior Developer
Advocate,
Alexa
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Welcome to the Echo Game Buttons Workshop
Agenda
• Are you in the right session? Are you here for the hands-on workshop?
• Alexa Skills Tech Review (10 mins)
• Overview of Echo Button skills (5 mins)
• New Interfaces for Game Engine and Gadget Commands (10 mins)
• Resources, Samples and Guides
• Labs 1-3
• Team Demos
• Game skill pitch-off. Tell us your best game idea!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Welcome to the Echo Game Buttons Workshop
Before we get started, to do the labs you need to:
• Download the lab https://s3.amazonaws.com/alx306/ALX306.zip
• Go to this URL: https://alexa171.typeform.com/to/uYOnU9
• Fill out the quick survey and provide your account details.
• Get into groups of 2-3 per Dot/Button set.
• From the group, whoever has a Developer Portal Account and an AWS account,
register the Echo dot to your account.
• Feel free register the device now, or wait until the start of Lab 1 and we can help
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Alexa Skills Tech Review
A quick review of what Alexa skills are, the interaction flow, components and requests/responses expected
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Alexa Skills Tech Review
What is an Alexa skill?
What is the user interaction flow?
Request
Audio
Response
Your
Service
Text to Speech
Machine Learning
Natural Language
Understanding
Speech
Recognition
Cards
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Alexa Skills Review – Skill Components
What components are needed for creating a skill?
Language Model
Intents
Utterances
Slots
+
AWS Lambda
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Alexa Skill – Request & Response
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Overview of Echo Button skills
How are skills different for Echo Buttons?
Understanding different modalities - Voice vs Buttons
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Button Events Flow
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Understanding InputHandler Events
Speech
Button Events
Alexa Service
ASR/NLU
GameEngine
Intent Events
AWS
Lambda
(your skill
code)GameEngine
Events
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
New Interfaces for Game Engine and
Gadget Commands
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GameEngine.StartInputHandler
• A new directive block in your response
• Contains instructions for listening to button events
• Important concepts
• Timeout
• Proxies
• Recognizers
• Events
• Docs: http://amzn.to/2zY3Cw6
Sample GameEngine.StartInputHandler directive
• Contains list of recognizers that define
button actions to track in the game engine
• Each recognizer contains a pattern that can
match on color, actions and optionally,
specific buttons via named gadgetIDs
• Contains list of named events bound to
meets and fails recognizer statements
using boolean ‘and’ logic. i.e. more than
one named recognizer in a meets property
means they both must be fulfilled to fire the
event to your lambda function
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GadgetController.SetLight Directive
• Generically speaking, sends an animation to a light on a gadget
• 24-bit RGB colors
• Optional blending
• 3 triggers: “none”, “buttonDown”, “buttonUp”
• You can stack more than one in each
request to send different animations and
different triggers to different buttons
• Docs: http://amzn.to/2A3QJyC
GadgetController.SetLight Example directive
• Can be directed at a list of gadgetIDs in
the targetGadgets list
• Contains a list of sequence objects that
designate the duration, color, intensity and
fade/blend behavior that will be executed
in order based on the triggerEvent
• triggerEvent that is one of ‘none’,
‘buttonDown’ or ‘buttonUp’. Tells the
button on what action to start the
animation. ‘none’ means play without
waiting for button action
• triggerEventTimeMs is how long to wait
after the trigger even to play the animation
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Standard skill response & shouldEndSession
Skills return a value in their responses normally indicating if the
Alexa device should listen for voice input from the user. This has an
effect on game skills
1. shouldEndSession = true, close the session
2. shouldEndSession = false, don’t close the session, open the mic
for voice input
3. shouldEndSession = null/undefined, don’t close the session but
DON’T open the mic for voice input
Listening for Echo Button input? shouldEndSession = null
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lab 1: Hello Buttons
Goal: Get a working skill that exercises the new directives
• Create new skill in the developer portal
• Declare the skill’s support for Echo Buttons in the skill definition
• Create a new Lambda function in AWS Lambda to handle
skill requests
• Upload the HelloButtons skill provided as part of the Lab 1 guide
• Successfully test the sample skill using your Echo buttons
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Resources & Tools
• Gadget API Docs: http://amzn.to/2jgTBjH
• GameEngine.StartInputHandler http://amzn.to/2zY3Cw6
• GadgetController.SetLight http://amzn.to/2A3QJyC
• All Labs and this deck (pdf):
https://s3.amazonaws.com/alx306/alx306.zip
• Lab 1: https://s3.amazonaws.com/alx306/ALX306-lab1.zip
• Lab 2: https://s3.amazonaws.com/alx306/ALX306-lab2.zip
• Lab 3: https://s3.amazonaws.com/alx306/ALX306-lab3.zip
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lab 1 Recap and Prep for Lab 2
• Ship It!
• Created new skill that declares Echo Button support
• Create new Lambda function that supports Alexa
Skill Triggers
• Launch skill and successfully test a button
• Lab 2 Demo
• Pitch Off Contest
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lab 2: De e p dive on Game Eng ine .StartI npu tHandler
and Gadg e tC ontrolle r.Se tLig ht
• Inspect the provided GameEngine.StartInputHandler directive and learn
how it affects event behavior to your skill
• Modify the existing GameEngine.StartInputHandler such that it performs
something called a roll call to declare player intent to play game.
• Inspect the provided GadgetController.SetLight directives and learn how
it affects button animations
• Modify LaunchRequest response to change the color of the buttons that
declared themselves eligible to play by participating in the roll call above
• Note: if you didn’t finish Lab 1, don’t worry, there is a fully working
sample in the zip file for Lab 1.
Getting in the weeds - GameEngine
The GameEngine is:
• A new service in Alexa that listens for button
events based on rules you specify from your skills.
The GameEngine has two primary directives
available to skill developers
• GameEngine.StartInputHandler which is a signal
to the service layer, based on a set of Recognizer
objects you specify, that will trigger an event to
your lambda function.
• GameEngine.StopInputHandler is a construct for
terminating any input handlers you might have
running when you need to stop gameplay to
address something else in the skill, like if a user
asks for help.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Getting in the weeds - GadgetController
The GadgetController is
• A generic Alexa Gadgets interface used to control devices connected to Alexa endpoints, of which the Echo
buttons are the first physical manifestation of an Alexa Gadget.
The GadgetController has:
• A SetLight directive to set different animations on the buttons
• Can be used for things like visual cues important to gameplay
• Green when correct
• Red when wrong
• Blue for ‘ready to buzz in’
• More detail available in your lab guides
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lab 2: Resources & Tools
• Gadget API Docs: http://amzn.to/2jgTBjH
• GameEngine.StartInputHandler http://amzn.to/2zY3Cw6
• GadgetController.SetLight http://amzn.to/2A3QJyC
• All Labs and this deck (pdf):
https://s3.amazonaws.com/alx306/alx306.zip
• Lab 1: https://s3.amazonaws.com/alx306/ALX306-lab1.zip
• Lab 2: https://s3.amazonaws.com/alx306/ALX306-lab2.zip
• Lab 3: https://s3.amazonaws.com/alx306/ALX306-lab3.zip
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lab 2 Recap and Prep for Lab 3
• Ship It!
• Understand GameEngine directives
• Modify GameEngine directive to support a roll call
• Understand GadgetController directives
• Modify GadgetController directive to change
button animations
• Lab 2 Demo
• Lab 3 Demo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lab 3 : Add voice intent to change button
to your favorite color
• Add new utterances to the language model to support new
voice interaction
• Add new Intent ’FavoriteColorIntent’ to handle this interaction
in your lambda function.
• Allow for voice input that matches on a spoken color
• Modify button animation to change the button to that color.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Resources & Tools
• Gadget API Docs: http://amzn.to/2jgTBjH
• GameEngine.StartInputHandler http://amzn.to/2zY3Cw6
• GadgetController.SetLight http://amzn.to/2A3QJyC
• All Labs and this deck (pdf):
https://s3.amazonaws.com/alx306/alx306.zip
• Lab 1: https://s3.amazonaws.com/alx306/ALX306-lab1.zip
• Lab 2: https://s3.amazonaws.com/alx306/ALX306-lab2.zip
• Lab 3: https://s3.amazonaws.com/alx306/ALX306-lab3.zip
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Demos
• Show us your demo!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
THANK YOU!
D o n ’ t f o r g e t t o r a t e t h i s s e s s i o n !

More Related Content

What's hot

ENT301_Real-World AI For the Enterprise
ENT301_Real-World AI For the EnterpriseENT301_Real-World AI For the Enterprise
ENT301_Real-World AI For the Enterprise
Amazon Web Services
 
NEW LAUNCH! Introducing Amazon EKS - CON215 - re:Invent 2017
NEW LAUNCH! Introducing Amazon EKS - CON215 - re:Invent 2017NEW LAUNCH! Introducing Amazon EKS - CON215 - re:Invent 2017
NEW LAUNCH! Introducing Amazon EKS - CON215 - re:Invent 2017
Amazon Web Services
 
IOT308-One Message to a Million Things Done in 60 seconds with AWS IoT
IOT308-One Message to a Million Things Done in 60 seconds with AWS IoTIOT308-One Message to a Million Things Done in 60 seconds with AWS IoT
IOT308-One Message to a Million Things Done in 60 seconds with AWS IoT
Amazon Web Services
 
NEW LAUNCH! Building Smart Conference Rooms with Alexa for Business - BAP309 ...
NEW LAUNCH! Building Smart Conference Rooms with Alexa for Business - BAP309 ...NEW LAUNCH! Building Smart Conference Rooms with Alexa for Business - BAP309 ...
NEW LAUNCH! Building Smart Conference Rooms with Alexa for Business - BAP309 ...
Amazon Web Services
 
What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017
Amazon Web Services
 
Introduction to AWS Fargate & Amazon Elastic Container Service for Kubernetes
Introduction to AWS Fargate & Amazon Elastic Container Service for KubernetesIntroduction to AWS Fargate & Amazon Elastic Container Service for Kubernetes
Introduction to AWS Fargate & Amazon Elastic Container Service for Kubernetes
Amazon Web Services
 
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
Amazon Web Services
 
IOT207_Panasonic—Building the Road of the Future on AWS
IOT207_Panasonic—Building the Road of the Future on AWSIOT207_Panasonic—Building the Road of the Future on AWS
IOT207_Panasonic—Building the Road of the Future on AWS
Amazon Web Services
 
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
Amazon Web Services
 
Designing and Implementing a Serverless Media Processing Workflow Using AWS S...
Designing and Implementing a Serverless Media Processing Workflow Using AWS S...Designing and Implementing a Serverless Media Processing Workflow Using AWS S...
Designing and Implementing a Serverless Media Processing Workflow Using AWS S...
Amazon Web Services
 
MCL331_Building a Virtual Assistant with Amazon Polly and Amazon Lex Pollexy
MCL331_Building a Virtual Assistant with Amazon Polly and Amazon Lex PollexyMCL331_Building a Virtual Assistant with Amazon Polly and Amazon Lex Pollexy
MCL331_Building a Virtual Assistant with Amazon Polly and Amazon Lex Pollexy
Amazon Web Services
 
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
Amazon Web Services
 
How to Determine If You Are Well Architected for Resiliency (or How I Learned...
How to Determine If You Are Well Architected for Resiliency (or How I Learned...How to Determine If You Are Well Architected for Resiliency (or How I Learned...
How to Determine If You Are Well Architected for Resiliency (or How I Learned...
Amazon Web Services
 
SID301_Using AWS Lambda as a Security Team
SID301_Using AWS Lambda as a Security TeamSID301_Using AWS Lambda as a Security Team
SID301_Using AWS Lambda as a Security Team
Amazon Web Services
 
SID302_Force Multiply Your Security Team with Automation and Alexa
SID302_Force Multiply Your Security Team with Automation and AlexaSID302_Force Multiply Your Security Team with Automation and Alexa
SID302_Force Multiply Your Security Team with Automation and Alexa
Amazon Web Services
 
NEW LAUNCH! Building Virtual Reality and Augmented Reality Applications with ...
NEW LAUNCH! Building Virtual Reality and Augmented Reality Applications with ...NEW LAUNCH! Building Virtual Reality and Augmented Reality Applications with ...
NEW LAUNCH! Building Virtual Reality and Augmented Reality Applications with ...
Amazon Web Services
 
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
Amazon Web Services
 
NEW LAUNCH! Bring Alexa to Work! Voice-enable Your Organization with Alexa fo...
NEW LAUNCH! Bring Alexa to Work! Voice-enable Your Organization with Alexa fo...NEW LAUNCH! Bring Alexa to Work! Voice-enable Your Organization with Alexa fo...
NEW LAUNCH! Bring Alexa to Work! Voice-enable Your Organization with Alexa fo...
Amazon Web Services
 
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
Amazon Web Services
 
GAM309-Breathe Life into a Mobile Game_NoNotes.pdf
GAM309-Breathe Life into a Mobile Game_NoNotes.pdfGAM309-Breathe Life into a Mobile Game_NoNotes.pdf
GAM309-Breathe Life into a Mobile Game_NoNotes.pdf
Amazon Web Services
 

What's hot (20)

ENT301_Real-World AI For the Enterprise
ENT301_Real-World AI For the EnterpriseENT301_Real-World AI For the Enterprise
ENT301_Real-World AI For the Enterprise
 
NEW LAUNCH! Introducing Amazon EKS - CON215 - re:Invent 2017
NEW LAUNCH! Introducing Amazon EKS - CON215 - re:Invent 2017NEW LAUNCH! Introducing Amazon EKS - CON215 - re:Invent 2017
NEW LAUNCH! Introducing Amazon EKS - CON215 - re:Invent 2017
 
IOT308-One Message to a Million Things Done in 60 seconds with AWS IoT
IOT308-One Message to a Million Things Done in 60 seconds with AWS IoTIOT308-One Message to a Million Things Done in 60 seconds with AWS IoT
IOT308-One Message to a Million Things Done in 60 seconds with AWS IoT
 
NEW LAUNCH! Building Smart Conference Rooms with Alexa for Business - BAP309 ...
NEW LAUNCH! Building Smart Conference Rooms with Alexa for Business - BAP309 ...NEW LAUNCH! Building Smart Conference Rooms with Alexa for Business - BAP309 ...
NEW LAUNCH! Building Smart Conference Rooms with Alexa for Business - BAP309 ...
 
What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017
 
Introduction to AWS Fargate & Amazon Elastic Container Service for Kubernetes
Introduction to AWS Fargate & Amazon Elastic Container Service for KubernetesIntroduction to AWS Fargate & Amazon Elastic Container Service for Kubernetes
Introduction to AWS Fargate & Amazon Elastic Container Service for Kubernetes
 
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
 
IOT207_Panasonic—Building the Road of the Future on AWS
IOT207_Panasonic—Building the Road of the Future on AWSIOT207_Panasonic—Building the Road of the Future on AWS
IOT207_Panasonic—Building the Road of the Future on AWS
 
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
 
Designing and Implementing a Serverless Media Processing Workflow Using AWS S...
Designing and Implementing a Serverless Media Processing Workflow Using AWS S...Designing and Implementing a Serverless Media Processing Workflow Using AWS S...
Designing and Implementing a Serverless Media Processing Workflow Using AWS S...
 
MCL331_Building a Virtual Assistant with Amazon Polly and Amazon Lex Pollexy
MCL331_Building a Virtual Assistant with Amazon Polly and Amazon Lex PollexyMCL331_Building a Virtual Assistant with Amazon Polly and Amazon Lex Pollexy
MCL331_Building a Virtual Assistant with Amazon Polly and Amazon Lex Pollexy
 
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
GPSWKS408-GPS Migrate Your Databases with AWS Database Migration Service and ...
 
How to Determine If You Are Well Architected for Resiliency (or How I Learned...
How to Determine If You Are Well Architected for Resiliency (or How I Learned...How to Determine If You Are Well Architected for Resiliency (or How I Learned...
How to Determine If You Are Well Architected for Resiliency (or How I Learned...
 
SID301_Using AWS Lambda as a Security Team
SID301_Using AWS Lambda as a Security TeamSID301_Using AWS Lambda as a Security Team
SID301_Using AWS Lambda as a Security Team
 
SID302_Force Multiply Your Security Team with Automation and Alexa
SID302_Force Multiply Your Security Team with Automation and AlexaSID302_Force Multiply Your Security Team with Automation and Alexa
SID302_Force Multiply Your Security Team with Automation and Alexa
 
NEW LAUNCH! Building Virtual Reality and Augmented Reality Applications with ...
NEW LAUNCH! Building Virtual Reality and Augmented Reality Applications with ...NEW LAUNCH! Building Virtual Reality and Augmented Reality Applications with ...
NEW LAUNCH! Building Virtual Reality and Augmented Reality Applications with ...
 
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
 
NEW LAUNCH! Bring Alexa to Work! Voice-enable Your Organization with Alexa fo...
NEW LAUNCH! Bring Alexa to Work! Voice-enable Your Organization with Alexa fo...NEW LAUNCH! Bring Alexa to Work! Voice-enable Your Organization with Alexa fo...
NEW LAUNCH! Bring Alexa to Work! Voice-enable Your Organization with Alexa fo...
 
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
 
GAM309-Breathe Life into a Mobile Game_NoNotes.pdf
GAM309-Breathe Life into a Mobile Game_NoNotes.pdfGAM309-Breathe Life into a Mobile Game_NoNotes.pdf
GAM309-Breathe Life into a Mobile Game_NoNotes.pdf
 

Similar to ALX306_Build a Game Skill for Echo Buttons!

Get Started Developing with Alexa and Drupal
Get Started Developing with Alexa and DrupalGet Started Developing with Alexa and Drupal
Get Started Developing with Alexa and Drupal
Amber Matz
 
OpenAI-SDK101.pptx
OpenAI-SDK101.pptxOpenAI-SDK101.pptx
OpenAI-SDK101.pptx
Ken Ross
 
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding WorkshopDigital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Dinah Barrett
 
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Anahe...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Anahe...AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Anahe...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Anahe...
Amazon Web Services
 
Build apps for slack
Build apps for slackBuild apps for slack
Build apps for slack
Binod Jung Bogati
 
NEW LAUNCH! Deploy Alexa In Your Organization with Alexa for Business - BAP20...
NEW LAUNCH! Deploy Alexa In Your Organization with Alexa for Business - BAP20...NEW LAUNCH! Deploy Alexa In Your Organization with Alexa for Business - BAP20...
NEW LAUNCH! Deploy Alexa In Your Organization with Alexa for Business - BAP20...
Amazon Web Services
 
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Chica...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Chica...AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Chica...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Chica...
Amazon Web Services
 
clicks2conversations.pdf
clicks2conversations.pdfclicks2conversations.pdf
clicks2conversations.pdf
Marie-Alice Blete
 
Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017
Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017
Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017
Rafael Antonio Gutiérrez Turullols
 
BDA210 AWS DeepLens Workshop Building Computer Vision Applications
BDA210 AWS DeepLens Workshop Building Computer Vision Applications BDA210 AWS DeepLens Workshop Building Computer Vision Applications
BDA210 AWS DeepLens Workshop Building Computer Vision Applications
Amazon Web Services
 
AWS DeepLens Workshop_Build Computer Vision Applications
AWS DeepLens Workshop_Build Computer Vision Applications AWS DeepLens Workshop_Build Computer Vision Applications
AWS DeepLens Workshop_Build Computer Vision Applications
Amazon Web Services
 
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Atlan...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Atlan...AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Atlan...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Atlan...
Amazon Web Services
 
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
Amazon Web Services
 
Google Home and Google Assistant Workshop: Build your own serverless Action o...
Google Home and Google Assistant Workshop: Build your own serverless Action o...Google Home and Google Assistant Workshop: Build your own serverless Action o...
Google Home and Google Assistant Workshop: Build your own serverless Action o...
Bret McGowen - NYC Google Developer Advocate
 
OAuth for QuickBooks Online REST Services
OAuth for QuickBooks Online REST ServicesOAuth for QuickBooks Online REST Services
OAuth for QuickBooks Online REST Services
Intuit Developer
 
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using ClearbitCustomer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
JanBogaert8
 
Google Assistant Revolution
Google Assistant RevolutionGoogle Assistant Revolution
Google Assistant Revolution
Rafael Casuso Romate
 
Advanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step FunctionsAdvanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step Functions
Amazon Web Services
 
IT Camp 2019: How to build your first Alexa skill in under one hour
IT Camp 2019: How to build your first Alexa skill in under one hourIT Camp 2019: How to build your first Alexa skill in under one hour
IT Camp 2019: How to build your first Alexa skill in under one hour
Ionut Balan
 
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
Amazon Web Services
 

Similar to ALX306_Build a Game Skill for Echo Buttons! (20)

Get Started Developing with Alexa and Drupal
Get Started Developing with Alexa and DrupalGet Started Developing with Alexa and Drupal
Get Started Developing with Alexa and Drupal
 
OpenAI-SDK101.pptx
OpenAI-SDK101.pptxOpenAI-SDK101.pptx
OpenAI-SDK101.pptx
 
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding WorkshopDigital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
 
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Anahe...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Anahe...AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Anahe...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Anahe...
 
Build apps for slack
Build apps for slackBuild apps for slack
Build apps for slack
 
NEW LAUNCH! Deploy Alexa In Your Organization with Alexa for Business - BAP20...
NEW LAUNCH! Deploy Alexa In Your Organization with Alexa for Business - BAP20...NEW LAUNCH! Deploy Alexa In Your Organization with Alexa for Business - BAP20...
NEW LAUNCH! Deploy Alexa In Your Organization with Alexa for Business - BAP20...
 
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Chica...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Chica...AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Chica...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Chica...
 
clicks2conversations.pdf
clicks2conversations.pdfclicks2conversations.pdf
clicks2conversations.pdf
 
Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017
Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017
Building a Slack Bot Workshop @ Nearsoft OctoberTalks 2017
 
BDA210 AWS DeepLens Workshop Building Computer Vision Applications
BDA210 AWS DeepLens Workshop Building Computer Vision Applications BDA210 AWS DeepLens Workshop Building Computer Vision Applications
BDA210 AWS DeepLens Workshop Building Computer Vision Applications
 
AWS DeepLens Workshop_Build Computer Vision Applications
AWS DeepLens Workshop_Build Computer Vision Applications AWS DeepLens Workshop_Build Computer Vision Applications
AWS DeepLens Workshop_Build Computer Vision Applications
 
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Atlan...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Atlan...AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Atlan...
AWS DeepLens Workshop: Building Computer Vision Applications - BDA201 - Atlan...
 
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
How to Build a Backend for an Alexa Smart Home Skill - ALX316 - re:Invent 2017
 
Google Home and Google Assistant Workshop: Build your own serverless Action o...
Google Home and Google Assistant Workshop: Build your own serverless Action o...Google Home and Google Assistant Workshop: Build your own serverless Action o...
Google Home and Google Assistant Workshop: Build your own serverless Action o...
 
OAuth for QuickBooks Online REST Services
OAuth for QuickBooks Online REST ServicesOAuth for QuickBooks Online REST Services
OAuth for QuickBooks Online REST Services
 
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using ClearbitCustomer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
 
Google Assistant Revolution
Google Assistant RevolutionGoogle Assistant Revolution
Google Assistant Revolution
 
Advanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step FunctionsAdvanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step Functions
 
IT Camp 2019: How to build your first Alexa skill in under one hour
IT Camp 2019: How to build your first Alexa skill in under one hourIT Camp 2019: How to build your first Alexa skill in under one hour
IT Camp 2019: How to build your first Alexa skill in under one hour
 
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
Amazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
Amazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
Amazon Web Services
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Amazon Web Services
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
Amazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
Amazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Amazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
Amazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Amazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

ALX306_Build a Game Skill for Echo Buttons!

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. B uild a Game S kill for E cho B uttons! A L X 3 0 6
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. PRESENTED BY: Chachi Kruel Senior Software Development Manager, Alexa Nathan Grice Senior Solutions Architect, Alexa Kyle McGee Senior Business Development Lead, Alexa Cami Williams Senior Evangelist, Alexa Jenn Jinong Senior Developer Advocate, Alexa
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Welcome to the Echo Game Buttons Workshop Agenda • Are you in the right session? Are you here for the hands-on workshop? • Alexa Skills Tech Review (10 mins) • Overview of Echo Button skills (5 mins) • New Interfaces for Game Engine and Gadget Commands (10 mins) • Resources, Samples and Guides • Labs 1-3 • Team Demos • Game skill pitch-off. Tell us your best game idea!
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Welcome to the Echo Game Buttons Workshop Before we get started, to do the labs you need to: • Download the lab https://s3.amazonaws.com/alx306/ALX306.zip • Go to this URL: https://alexa171.typeform.com/to/uYOnU9 • Fill out the quick survey and provide your account details. • Get into groups of 2-3 per Dot/Button set. • From the group, whoever has a Developer Portal Account and an AWS account, register the Echo dot to your account. • Feel free register the device now, or wait until the start of Lab 1 and we can help
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Alexa Skills Tech Review A quick review of what Alexa skills are, the interaction flow, components and requests/responses expected
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Alexa Skills Tech Review What is an Alexa skill? What is the user interaction flow? Request Audio Response Your Service Text to Speech Machine Learning Natural Language Understanding Speech Recognition Cards
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Alexa Skills Review – Skill Components What components are needed for creating a skill? Language Model Intents Utterances Slots + AWS Lambda
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Alexa Skill – Request & Response
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Overview of Echo Button skills How are skills different for Echo Buttons? Understanding different modalities - Voice vs Buttons
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Button Events Flow
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Understanding InputHandler Events Speech Button Events Alexa Service ASR/NLU GameEngine Intent Events AWS Lambda (your skill code)GameEngine Events
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. New Interfaces for Game Engine and Gadget Commands
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. GameEngine.StartInputHandler • A new directive block in your response • Contains instructions for listening to button events • Important concepts • Timeout • Proxies • Recognizers • Events • Docs: http://amzn.to/2zY3Cw6
  • 14. Sample GameEngine.StartInputHandler directive • Contains list of recognizers that define button actions to track in the game engine • Each recognizer contains a pattern that can match on color, actions and optionally, specific buttons via named gadgetIDs • Contains list of named events bound to meets and fails recognizer statements using boolean ‘and’ logic. i.e. more than one named recognizer in a meets property means they both must be fulfilled to fire the event to your lambda function
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. GadgetController.SetLight Directive • Generically speaking, sends an animation to a light on a gadget • 24-bit RGB colors • Optional blending • 3 triggers: “none”, “buttonDown”, “buttonUp” • You can stack more than one in each request to send different animations and different triggers to different buttons • Docs: http://amzn.to/2A3QJyC
  • 16. GadgetController.SetLight Example directive • Can be directed at a list of gadgetIDs in the targetGadgets list • Contains a list of sequence objects that designate the duration, color, intensity and fade/blend behavior that will be executed in order based on the triggerEvent • triggerEvent that is one of ‘none’, ‘buttonDown’ or ‘buttonUp’. Tells the button on what action to start the animation. ‘none’ means play without waiting for button action • triggerEventTimeMs is how long to wait after the trigger even to play the animation
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Standard skill response & shouldEndSession Skills return a value in their responses normally indicating if the Alexa device should listen for voice input from the user. This has an effect on game skills 1. shouldEndSession = true, close the session 2. shouldEndSession = false, don’t close the session, open the mic for voice input 3. shouldEndSession = null/undefined, don’t close the session but DON’T open the mic for voice input Listening for Echo Button input? shouldEndSession = null
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lab 1: Hello Buttons Goal: Get a working skill that exercises the new directives • Create new skill in the developer portal • Declare the skill’s support for Echo Buttons in the skill definition • Create a new Lambda function in AWS Lambda to handle skill requests • Upload the HelloButtons skill provided as part of the Lab 1 guide • Successfully test the sample skill using your Echo buttons
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Resources & Tools • Gadget API Docs: http://amzn.to/2jgTBjH • GameEngine.StartInputHandler http://amzn.to/2zY3Cw6 • GadgetController.SetLight http://amzn.to/2A3QJyC • All Labs and this deck (pdf): https://s3.amazonaws.com/alx306/alx306.zip • Lab 1: https://s3.amazonaws.com/alx306/ALX306-lab1.zip • Lab 2: https://s3.amazonaws.com/alx306/ALX306-lab2.zip • Lab 3: https://s3.amazonaws.com/alx306/ALX306-lab3.zip
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lab 1 Recap and Prep for Lab 2 • Ship It! • Created new skill that declares Echo Button support • Create new Lambda function that supports Alexa Skill Triggers • Launch skill and successfully test a button • Lab 2 Demo • Pitch Off Contest
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lab 2: De e p dive on Game Eng ine .StartI npu tHandler and Gadg e tC ontrolle r.Se tLig ht • Inspect the provided GameEngine.StartInputHandler directive and learn how it affects event behavior to your skill • Modify the existing GameEngine.StartInputHandler such that it performs something called a roll call to declare player intent to play game. • Inspect the provided GadgetController.SetLight directives and learn how it affects button animations • Modify LaunchRequest response to change the color of the buttons that declared themselves eligible to play by participating in the roll call above • Note: if you didn’t finish Lab 1, don’t worry, there is a fully working sample in the zip file for Lab 1.
  • 22. Getting in the weeds - GameEngine The GameEngine is: • A new service in Alexa that listens for button events based on rules you specify from your skills. The GameEngine has two primary directives available to skill developers • GameEngine.StartInputHandler which is a signal to the service layer, based on a set of Recognizer objects you specify, that will trigger an event to your lambda function. • GameEngine.StopInputHandler is a construct for terminating any input handlers you might have running when you need to stop gameplay to address something else in the skill, like if a user asks for help.
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Getting in the weeds - GadgetController The GadgetController is • A generic Alexa Gadgets interface used to control devices connected to Alexa endpoints, of which the Echo buttons are the first physical manifestation of an Alexa Gadget. The GadgetController has: • A SetLight directive to set different animations on the buttons • Can be used for things like visual cues important to gameplay • Green when correct • Red when wrong • Blue for ‘ready to buzz in’ • More detail available in your lab guides
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lab 2: Resources & Tools • Gadget API Docs: http://amzn.to/2jgTBjH • GameEngine.StartInputHandler http://amzn.to/2zY3Cw6 • GadgetController.SetLight http://amzn.to/2A3QJyC • All Labs and this deck (pdf): https://s3.amazonaws.com/alx306/alx306.zip • Lab 1: https://s3.amazonaws.com/alx306/ALX306-lab1.zip • Lab 2: https://s3.amazonaws.com/alx306/ALX306-lab2.zip • Lab 3: https://s3.amazonaws.com/alx306/ALX306-lab3.zip
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lab 2 Recap and Prep for Lab 3 • Ship It! • Understand GameEngine directives • Modify GameEngine directive to support a roll call • Understand GadgetController directives • Modify GadgetController directive to change button animations • Lab 2 Demo • Lab 3 Demo
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lab 3 : Add voice intent to change button to your favorite color • Add new utterances to the language model to support new voice interaction • Add new Intent ’FavoriteColorIntent’ to handle this interaction in your lambda function. • Allow for voice input that matches on a spoken color • Modify button animation to change the button to that color.
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Resources & Tools • Gadget API Docs: http://amzn.to/2jgTBjH • GameEngine.StartInputHandler http://amzn.to/2zY3Cw6 • GadgetController.SetLight http://amzn.to/2A3QJyC • All Labs and this deck (pdf): https://s3.amazonaws.com/alx306/alx306.zip • Lab 1: https://s3.amazonaws.com/alx306/ALX306-lab1.zip • Lab 2: https://s3.amazonaws.com/alx306/ALX306-lab2.zip • Lab 3: https://s3.amazonaws.com/alx306/ALX306-lab3.zip
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Demos • Show us your demo!
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. THANK YOU! D o n ’ t f o r g e t t o r a t e t h i s s e s s i o n !