狠狠撸

狠狠撸Share a Scribd company logo
Creéz votre première Skill Alexa sur AWS
Sébastien Stormacq
Manager, Alexa Solution Architecture, EU @ sebsto
1 9 7 0 s 1 9 8 0 s 1 9 9 0 s P R E S E N T2 0 0 0 s
This Magic Moment
Character Mode
GUI
Web
Mobile
VUI
Voice represents the
next major disruption
in computing
W E B E L I E V E :
Comprised of two important frameworks that enable brands to connect to customers
Lives In The Cloud
Automated Speech
Recognition (ASR)
Natural Language
Understanding (NLU)
Always Learning
Alexa’s Framework
Comprised of two important frameworks that enable brands to connect to customers
Lives In The Cloud
Automated Speech
Recognition (ASR)
Natural Language
Understanding (NLU)
Always Learning
ALEX A
V O ICE
SERV ICE
Unparalleled Distribution:
AVS allows your content
to be everywhere
Alexa’s Framework
A L E X A - E N A B L E D D E V I C E S
Comprised of two important frameworks that enable brands to connect to customers
ALEX A
V O ICE
SERV ICE
Unparalleled Distribution:
AVS allows your content
to be everywhere
Lives In The Cloud
Automated Speech
Recognition (ASR)
Natural Language
Understanding (NLU)
Always Learning
ALEX A
SKILLS
KIT
Create Great Content:
ASK is how you connect
to your consumer
Alexa’s Framework
Alexa for Developers
Alexa Skills Store
(Desktop & Mobile)
Alexa App
(Desktop & Mobile)
Or just ask Alexa!
Where and How to find Skills ?
Custom
For crafting unique
app experiences
Smart Home
For controlling smart
home and devices
Flash Briefing
For providing flash
briefing content (either
audio, video or text)
“Alexa, allume la
cuisine”
“Alexa, quel est mon
flash quotidien ?”
“Alexa, demande à
Marmiton une recette
de crêpes.”
Voice User Interface Programming Logic
+
developer.amazon.com aws.amazon.com
(could be hosted anywhere)
Back-EndFront-End
Alexa Skills Kit
Request
Audio
Response
Your Service
Text to Speech
Machine Learning
Natural Language Understanding
Speech Recognition
Cards
Wake word
detection
Beam forming
Cards
Your Service
Request
Alexa Skills Kit: Signal Processing
Text to Speech
Machine Learning
Natural Language Understanding
Speech Recognition
Response
Alexa
wake
word
S p e a k w i t h A l e x a
Alexa Skills Kit: Utterances Into Intents
Your Service
Cards
Utterances
Intents
Text to Speech
Machine Learning
Natural Language Understanding
Speech Recognition
Response
Alexa, ouvre mon restaurant
wake
word
Invocation namelaunch
S p e a k w i t h A l e x a
démarre
commence
lance
allume
mets
Alexa, demande à mon restaurant une suggestion pour le déjeuner
wake
word
Invocation namelaunch
S p e a k w i t h A l e x a
utterance
une recommendation pour le midi
un bon endroit pour manger
la meilleure place pour déjeuner
Alexa, ouvre mon restaurant
wake word invocation namelaunch
S p e a k w i t h A l e x a
Recommande-moi un restaurant avec quatre kilometres de marche
slot
utterance
RecommendationIntent
{distance: “4”}
slot value
intent
Alexa Skills Kit: Requests and Responses
Your Service
Cards
Audio
Intents
Text to Speech
Machine Learning
Natural Language Understanding
Speech Recognition
Response
Text to Speech (SSML)
Machine Learning
Natural Language Understanding
Speech Recognition
Alexa Skills Kit: Output
Your Service
Cards
Audio
Intents
Response
Upload your code Setup your triggers Runs only when triggered
Pay only for the compute
time used!
Deploy your Back-End
AWS Lambda
Language (Interaction) Model Skill Code (Lambda Function) Skill Publish Information
Alexa Developer Portal Alexa Developer PortalAWS Console Local Code+
Skill Development
Local Code
Language (Interaction) Model Skill Code (Lambda Function) Skill Publish Information
Skill Development
alexa.design/askcli
ASK Command Line Interface
Based on Node JS
? Runs on Windows, Mac, Linux
Manage Skills Programmatically
? uses Skills Management API (SMAPI)
Deploy Skill Lambda Functions
? uses AWS CLI under the hood
alexa.design/askcli
ASK CLI != AWS CLI
Skill Manifest
CLI mapping to profile
information
Front-End
Back-End
alexa.design/nodesdk alexa.design/javaalexa.design/python
LET’S BUILD A SKILL
Persistence
? Remember: AWS Lambda maintains no state across executions
? As a Skill Builder, you therefore have two layers of memory:
Session Attributes Persistent Attributes
Expire when session ends Persist across sessions
Memory
Sessions Attributes
const attributesManager = handlerInput.attributesManager;
const sessionAttributes = attributesManager.getSessionAttributes();
/*
YOUR CODE LOGIC HERE
*/
sessionAttributes["profile"] = ...;
attributesManager.setSessionAttributes(sessionAttributes);
Connect to Amazon DynamoDB
const skillBuilder = Alexa.SkillBuilders.standard();
exports.handler = skillBuilder
.addRequestHandlers( // ... handlers )
.addRequestInterceptors( // ... request interceptors )
.addResponseInterceptors( // ... response interceptors )
.addErrorHandlers(ErrorHandler)
.withTableName("theFoodie")
.withAutoCreateTable(true)
.lambda(); Table
Fully managed
Low cost
Predictable performance
Massively scalable
Highly available
Persistent Attributes
const attributesManager = handlerInput.attributesManager;
let persistentAttributes = await attributesManager.getPersistentAttributes();
persistentAttributes.profile.allergies = "shellfish";
attributesManager.setPersistentAttributes(persistentAttributes);
attributesManager.savePersistentAttributes();
AWS-SDK to call services
Ressources
alexa.design/france Alexa Skills Kit in France
alexa.design/github
alexa.design/guide Alexa Voice Design Guide
Github Alexa
alexa.design/videotutorial Video Series : Building Alexa Skills from Scratch
alexa.design/nodesdk Main repo for the ASK NodeJS SDK
alexa.design/askcli Alexa Command Line Interface
Merci !
@ sebsto
Alexa for Developers

More Related Content

What's hot (12)

PPTX
Alexa Skills Kit
Jun Ichikawa
?
PPTX
Alexa in 10 minutes
James Burt
?
PDF
Build an Alexa Skill Step-by-Step
Rick Wargo
?
PDF
David Isbitski - Enabling new voice experiences with Amazon Alexa and AWS Lambda
WithTheBest
?
PPTX
Amazon Alexa Development Overview
John Brady
?
PPTX
Amazon Alexa - Introduction & Custom Skills
André Maré
?
PPTX
Voice enable all the things with Alexa
Mark Bate
?
PPTX
Amazon Alexa and Echo
Mahesh Mahajan
?
PPTX
Amazon alexa ppt
VishalHotchandani2
?
PDF
Alexa Skills Kit with Web API on Azure
Heather Downing
?
PDF
Understanding Alexa Skills: How to Add Amazon’s Market-Leading Device Into Yo...
Click Consult (Part of Ceuta Group)
?
PDF
Alexa, nice to meet you!
Artur Skowroński
?
Alexa Skills Kit
Jun Ichikawa
?
Alexa in 10 minutes
James Burt
?
Build an Alexa Skill Step-by-Step
Rick Wargo
?
David Isbitski - Enabling new voice experiences with Amazon Alexa and AWS Lambda
WithTheBest
?
Amazon Alexa Development Overview
John Brady
?
Amazon Alexa - Introduction & Custom Skills
André Maré
?
Voice enable all the things with Alexa
Mark Bate
?
Amazon Alexa and Echo
Mahesh Mahajan
?
Amazon alexa ppt
VishalHotchandani2
?
Alexa Skills Kit with Web API on Azure
Heather Downing
?
Understanding Alexa Skills: How to Add Amazon’s Market-Leading Device Into Yo...
Click Consult (Part of Ceuta Group)
?
Alexa, nice to meet you!
Artur Skowroński
?

Similar to Alexa for Developers (9)

PDF
What Devs Need to Know about Amazon Alexa Skills
AI Leadership Institute
?
PDF
ServerlessConf Tokyo キーノート
Amazon Web Services Japan
?
PDF
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Dinah Barrett
?
PDF
Alexa user group bangalore meetup - let us build multimodal skill
Ilanchezhian Ganesamurthy
?
PDF
Red Hat Nordics 2020 - Apache Camel 3 the next generation of enterprise integ...
Claus Ibsen
?
PPTX
Hackster DFW - Amazon Echo Workshop
Ron Dagdag
?
PDF
Marcel Pociot "Alexa, let's build a voice-powered app"
Fwdays
?
PPTX
AWS User Group December 2016
PolarSeven Pty Ltd
?
PDF
Continuous Integration and Deployment Best Practices on AWS
Danilo Poccia
?
What Devs Need to Know about Amazon Alexa Skills
AI Leadership Institute
?
ServerlessConf Tokyo キーノート
Amazon Web Services Japan
?
Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop
Dinah Barrett
?
Alexa user group bangalore meetup - let us build multimodal skill
Ilanchezhian Ganesamurthy
?
Red Hat Nordics 2020 - Apache Camel 3 the next generation of enterprise integ...
Claus Ibsen
?
Hackster DFW - Amazon Echo Workshop
Ron Dagdag
?
Marcel Pociot "Alexa, let's build a voice-powered app"
Fwdays
?
AWS User Group December 2016
PolarSeven Pty Ltd
?
Continuous Integration and Deployment Best Practices on AWS
Danilo Poccia
?
Ad

Recently uploaded (20)

PPTX
办理方法澳洲硕士毕业证澳大利亚国家戏剧艺术学院文凭证书狈滨顿础学费单
Taqyea
?
PPTX
Full_MDM_PC_Compromise_Report_Presentation_Final_WithVisuals.pptx
jasongriewing
?
PPTX
Communication skills - I.pptx hell o chadda i am here
u23ec178
?
PPTX
What were the national movements and the victory of the August Revolution .pptx
MinhKha41
?
PPT
426773238-ELECTRICAL-INSTALLATION-AND-MAINTENANCE-ppt (1).ppt
rhodalynpichon640
?
PPTX
privacy preserving protocols in networking.pptx
jamesmay2663
?
DOCX
Are you scared to Buy Snapchat Accounts service online?
pvaway
?
PPTX
Technology and LIvelihood education - ICTon
espinozajenneli
?
PPTX
Q1W1D1 Exploring Tools and Equipment in ICT.pptx
TheodoraCatalan
?
PPTX
Q1W2D3 ICT- related Legal Bases in ict subject.pptx
TheodoraCatalan
?
PPTX
Q1W1D3 Types of Software in g7 ict subject.pptx
TheodoraCatalan
?
PDF
EC-770SE Coating Tester | Instromart Sensors
seoinstromart
?
PPTX
Derivites constracts and its implications and uses
icuphamid
?
PPT
cisco Network Associates Notes +++++++++
ssclengineer2025
?
PPTX
Blind stick project on robotics covering basics.pptx
ganamb
?
PDF
[Back2School] Crosstalk and Noise- Chapter 6.pdf
Ahmed Abdelazeem
?
PPTX
Technology and LIvelihood Education ICT- Computer
espinozajenneli
?
PDF
Understanding First Loss Default Guarantee (FLDG)
Lokesh Agrawal
?
PPTX
Q1W1D2 Exploring Tools and Equipment in ICT.pptx
TheodoraCatalan
?
PPTX
FIRST REVIEW PPT-PENDEKANTI HARIKA(222T1F00B8)..pptx
ygomathibai
?
办理方法澳洲硕士毕业证澳大利亚国家戏剧艺术学院文凭证书狈滨顿础学费单
Taqyea
?
Full_MDM_PC_Compromise_Report_Presentation_Final_WithVisuals.pptx
jasongriewing
?
Communication skills - I.pptx hell o chadda i am here
u23ec178
?
What were the national movements and the victory of the August Revolution .pptx
MinhKha41
?
426773238-ELECTRICAL-INSTALLATION-AND-MAINTENANCE-ppt (1).ppt
rhodalynpichon640
?
privacy preserving protocols in networking.pptx
jamesmay2663
?
Are you scared to Buy Snapchat Accounts service online?
pvaway
?
Technology and LIvelihood education - ICTon
espinozajenneli
?
Q1W1D1 Exploring Tools and Equipment in ICT.pptx
TheodoraCatalan
?
Q1W2D3 ICT- related Legal Bases in ict subject.pptx
TheodoraCatalan
?
Q1W1D3 Types of Software in g7 ict subject.pptx
TheodoraCatalan
?
EC-770SE Coating Tester | Instromart Sensors
seoinstromart
?
Derivites constracts and its implications and uses
icuphamid
?
cisco Network Associates Notes +++++++++
ssclengineer2025
?
Blind stick project on robotics covering basics.pptx
ganamb
?
[Back2School] Crosstalk and Noise- Chapter 6.pdf
Ahmed Abdelazeem
?
Technology and LIvelihood Education ICT- Computer
espinozajenneli
?
Understanding First Loss Default Guarantee (FLDG)
Lokesh Agrawal
?
Q1W1D2 Exploring Tools and Equipment in ICT.pptx
TheodoraCatalan
?
FIRST REVIEW PPT-PENDEKANTI HARIKA(222T1F00B8)..pptx
ygomathibai
?
Ad

Alexa for Developers

  • 1. Creéz votre première Skill Alexa sur AWS Sébastien Stormacq Manager, Alexa Solution Architecture, EU @ sebsto
  • 2. 1 9 7 0 s 1 9 8 0 s 1 9 9 0 s P R E S E N T2 0 0 0 s This Magic Moment Character Mode GUI Web Mobile VUI
  • 3. Voice represents the next major disruption in computing W E B E L I E V E :
  • 4. Comprised of two important frameworks that enable brands to connect to customers Lives In The Cloud Automated Speech Recognition (ASR) Natural Language Understanding (NLU) Always Learning Alexa’s Framework
  • 5. Comprised of two important frameworks that enable brands to connect to customers Lives In The Cloud Automated Speech Recognition (ASR) Natural Language Understanding (NLU) Always Learning ALEX A V O ICE SERV ICE Unparalleled Distribution: AVS allows your content to be everywhere Alexa’s Framework
  • 6. A L E X A - E N A B L E D D E V I C E S
  • 7. Comprised of two important frameworks that enable brands to connect to customers ALEX A V O ICE SERV ICE Unparalleled Distribution: AVS allows your content to be everywhere Lives In The Cloud Automated Speech Recognition (ASR) Natural Language Understanding (NLU) Always Learning ALEX A SKILLS KIT Create Great Content: ASK is how you connect to your consumer Alexa’s Framework
  • 9. Alexa Skills Store (Desktop & Mobile) Alexa App (Desktop & Mobile) Or just ask Alexa! Where and How to find Skills ?
  • 10. Custom For crafting unique app experiences Smart Home For controlling smart home and devices Flash Briefing For providing flash briefing content (either audio, video or text) “Alexa, allume la cuisine” “Alexa, quel est mon flash quotidien ?” “Alexa, demande à Marmiton une recette de crêpes.”
  • 11. Voice User Interface Programming Logic + developer.amazon.com aws.amazon.com (could be hosted anywhere) Back-EndFront-End
  • 12. Alexa Skills Kit Request Audio Response Your Service Text to Speech Machine Learning Natural Language Understanding Speech Recognition Cards
  • 13. Wake word detection Beam forming Cards Your Service Request Alexa Skills Kit: Signal Processing Text to Speech Machine Learning Natural Language Understanding Speech Recognition Response
  • 14. Alexa wake word S p e a k w i t h A l e x a
  • 15. Alexa Skills Kit: Utterances Into Intents Your Service Cards Utterances Intents Text to Speech Machine Learning Natural Language Understanding Speech Recognition Response
  • 16. Alexa, ouvre mon restaurant wake word Invocation namelaunch S p e a k w i t h A l e x a démarre commence lance allume mets
  • 17. Alexa, demande à mon restaurant une suggestion pour le déjeuner wake word Invocation namelaunch S p e a k w i t h A l e x a utterance une recommendation pour le midi un bon endroit pour manger la meilleure place pour déjeuner
  • 18. Alexa, ouvre mon restaurant wake word invocation namelaunch S p e a k w i t h A l e x a Recommande-moi un restaurant avec quatre kilometres de marche slot utterance RecommendationIntent {distance: “4”} slot value intent
  • 19. Alexa Skills Kit: Requests and Responses Your Service Cards Audio Intents Text to Speech Machine Learning Natural Language Understanding Speech Recognition Response
  • 20. Text to Speech (SSML) Machine Learning Natural Language Understanding Speech Recognition Alexa Skills Kit: Output Your Service Cards Audio Intents Response
  • 21. Upload your code Setup your triggers Runs only when triggered Pay only for the compute time used! Deploy your Back-End AWS Lambda
  • 22. Language (Interaction) Model Skill Code (Lambda Function) Skill Publish Information Alexa Developer Portal Alexa Developer PortalAWS Console Local Code+ Skill Development
  • 23. Local Code Language (Interaction) Model Skill Code (Lambda Function) Skill Publish Information Skill Development alexa.design/askcli
  • 24. ASK Command Line Interface Based on Node JS ? Runs on Windows, Mac, Linux Manage Skills Programmatically ? uses Skills Management API (SMAPI) Deploy Skill Lambda Functions ? uses AWS CLI under the hood alexa.design/askcli ASK CLI != AWS CLI
  • 25. Skill Manifest CLI mapping to profile information Front-End Back-End
  • 29. ? Remember: AWS Lambda maintains no state across executions ? As a Skill Builder, you therefore have two layers of memory: Session Attributes Persistent Attributes Expire when session ends Persist across sessions Memory
  • 30. Sessions Attributes const attributesManager = handlerInput.attributesManager; const sessionAttributes = attributesManager.getSessionAttributes(); /* YOUR CODE LOGIC HERE */ sessionAttributes["profile"] = ...; attributesManager.setSessionAttributes(sessionAttributes);
  • 31. Connect to Amazon DynamoDB const skillBuilder = Alexa.SkillBuilders.standard(); exports.handler = skillBuilder .addRequestHandlers( // ... handlers ) .addRequestInterceptors( // ... request interceptors ) .addResponseInterceptors( // ... response interceptors ) .addErrorHandlers(ErrorHandler) .withTableName("theFoodie") .withAutoCreateTable(true) .lambda(); Table
  • 32. Fully managed Low cost Predictable performance Massively scalable Highly available
  • 33. Persistent Attributes const attributesManager = handlerInput.attributesManager; let persistentAttributes = await attributesManager.getPersistentAttributes(); persistentAttributes.profile.allergies = "shellfish"; attributesManager.setPersistentAttributes(persistentAttributes); attributesManager.savePersistentAttributes();
  • 34. AWS-SDK to call services
  • 35. Ressources alexa.design/france Alexa Skills Kit in France alexa.design/github alexa.design/guide Alexa Voice Design Guide Github Alexa alexa.design/videotutorial Video Series : Building Alexa Skills from Scratch alexa.design/nodesdk Main repo for the ASK NodeJS SDK alexa.design/askcli Alexa Command Line Interface