Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Alexa, what is 2 + 2?
Search
Natasha Carlyon
June 21, 2018
Programming
0
100
Alexa, what is 2 + 2?
Natasha Carlyon
June 21, 2018
Tweet
Share
More Decks by Natasha Carlyon
See All by Natasha Carlyon
Exploring The Digital Frontier: CSS Grid & Flexbox
nscarlyon
0
23
Upping_Your_Interviewing_Game.pdf
nscarlyon
0
53
DevOps
nscarlyon
0
23
Where's Waldo: Building Better APIs with Swagger
nscarlyon
0
26
ng g talk-on-angular-console
nscarlyon
0
130
Mob Programming
nscarlyon
0
290
Other Decks in Programming
See All in Programming
オレを救った Cline を紹介する
codehex
16
15k
DevNexus - Create AI Infused Java Apps with LangChain4j
kdubois
0
160
Amazon Bedrockマルチエージェントコラボレーションを諦めてLangGraphに入門してみた
akihisaikeda
1
200
⚪⚪の⚪⚪をSwiftUIで再現す る
u503
0
150
フロントエンドオブザーバビリティ on Google Cloud
yunosukey
0
130
Google Cloudとo11yで実現するアプリケーション開発者主体のDB改善
nnaka2992
1
180
Lambdaの監視、できてますか?Datadogを用いてLambdaを見守ろう
nealle
2
890
機能が複雑化しても 頼りになる FactoryBotの話
tamikof
1
280
ステートソーシング型イベント駆動の視点で捉えるCQRS+ES
shinnosuke0522
0
140
Functional APIから再考するLangGraphを使う理由
os1ma
4
560
「個人開発マネタイズ大全」が教えてくれたこと
bani24884
1
320
Jasprが凄い話
hyshu
0
260
Featured
See All Featured
RailsConf 2023
tenderlove
29
1k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
470
Adopting Sorbet at Scale
ufuk
75
9.3k
Embracing the Ebb and Flow
colly
84
4.6k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
4 Signs Your Business is Dying
shpigford
183
22k
Building Applications with DynamoDB
mza
93
6.3k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
410
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
2.8k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
6
590
Transcript
Alexa, what is 2 + 2? Natasha Carlyon natasha.carlyon@greatersum.com @nscarlyon
Natasha Carlyon • Software Crafter • Greater Sum • @nscarlyon
• http://speakerdeck.com/ • natasha.carlyon@greatersum.com
Intro
Who is Alexa?
https://developer.amazon.com/alexa-skills-kit An Alexa Skill Creates a Personalized Voice Experience for
Users
Smart Home
Games
Trivia
News
Business • Alexa for Business https://aws.amazon.com/alexaforbusiness/
Polly • Ivy • Joanna • Kendra • Kimberly •
Joey • Justin • Matthew
Alexa Devices
Alexa Voice Service https://developer.amazon.com/alexa-voice-service
Alexa Skills Kit https://developer.amazon.com/alexa-skills-kit • APIs • Tools • Documentation
• Code Samples
Prerequisites • Amazon Alexa Account • AWS Account • Alexa
enabled device*
Do I need to know how to code? It depends
How much will this cost me? • AWS Free Tier
• One million AWS Lambda requests / month • 750 hours of Amazon Cloud compute time / month
AWS Promotional Credit • Published Alexa Skill = $100 •
If you incur charges -> $100 / month • Essentially Free
Design
Purpose Why am I building this skill? Math Facts Engaging
Retention
Audience Who am I building this skill for? Children
How? Math Facts? - Multiplication, Division, Addition, Subtraction (0-12) Engaging?
- Choose Your Adventure Story Retention? - Repetition; Three/Four at a time; Circling; Gradual
Brainstorm
Start Simple You’re in a maze. You can go left
or right. Left Encounter! Right Encounter! Encounter Fight Encounter Fight
Build
Wake Word • Alexa • Echo • Amazon • Computer
Invocation Name is how users invoke your skill
Alexa ask Starbucks to order me a drink Alexa play
Would you Rather Alexa open Twenty Questions
Invocation Name • Easy to remember • Easy to pronounce
• Self explanatory
An utterance represents a user’s spoken request
I would like a tall java chip. I want to
buy a flight from Atlanta to San Francisco. What is the air-speed velocity of an unladen swallow?
A slot is a variable in an utterance
I would like a [tall java chip]. I want to
buy a flight from [Atlanta] to [San Francisco]. What is the air-speed velocity of an unladen [swallow]?
Intent represents an action that fulfills the user’s request(utterance)
Built-In Intents Fallback Intent Cancel Intent Help Intent Stop Intent
• AWS • First million calls is free for each
month • Cloud/Serverless • Only runs when you need it • Handles security for you • Easy to connect to your skill Lambdas
• Internet-accessible • Alexa Skill • Support HTTP over SSL
• Accept requests over port 443 • Certificate • Validate incoming requests are coming from Alexa https://developer.amazon.com/docs/custom-skills/host-a-cust om-skill-as-a-web-service.html Custom Web Service
Let’s Build an Alexa Skill! https://developer.amazon.com/alexa?
Map
Text Adventure
Alexa Text Adventure https://github.com/alexa/skill-sample-nodejs-adventure-game
Twine • http://twinery.org/ • Online • Desktop Version • Non-Linear
Stories
DynamoDB • AWS Service • Non-relational Database Service
Conclusion
Resources • https://github.com/alexa/skill-sample-nodejs-adventure-game • https://developer.amazon.com/alexa-skills-kit • https://aws.amazon.com/alexaforbusiness/ • https://developer.amazon.com/alexa-voice-service •
https://aws.amazon.com/ • https://developer.amazon.com/docs/smapi/quick-start-alexa-skills-kit-comman d-line-interface.html
Software Craftsmanship Unconference Exchange Ideas Meaningful Conversations Peer Learning Fri,
September 21, 2018 CODECAMP for 20% off https://scunconf.com/