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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Natasha Carlyon
June 21, 2018
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Alexa, what is 2 + 2?
Natasha Carlyon
June 21, 2018
More Decks by Natasha Carlyon
See All by Natasha Carlyon
Exploring The Digital Frontier: CSS Grid & Flexbox
nscarlyon
0
34
Upping_Your_Interviewing_Game.pdf
nscarlyon
0
56
DevOps
nscarlyon
0
26
Where's Waldo: Building Better APIs with Swagger
nscarlyon
0
39
ng g talk-on-angular-console
nscarlyon
0
140
Mob Programming
nscarlyon
0
310
Other Decks in Programming
See All in Programming
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.6k
The ROI of Quarkus for Spring Boot Applications
hollycummins
0
110
DynamoDBには集計系のクエリがないけどなんとかしたい
musan
1
130
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
350
スマートグラスで並列バイブコーディング
hyshu
0
120
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
490
Webフレームワークの ベンチマークについて
yusukebe
0
160
New "Type" system on PicoRuby
pocke
1
830
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
0
220
net-httpのHTTP/2対応について
naruse
0
470
Developing with AI Agents — Codex, Claude Code & Cowork Practical Guide
x5gtrn
PRO
0
1.3k
正しくソフトウェアを作る、前提を疑うための認知の視点 / doubt-premise
minodriven
21
6.5k
Featured
See All Featured
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
330
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
380
Paper Plane
katiecoart
PRO
1
51k
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
450
The Curious Case for Waylosing
cassininazir
1
380
The untapped power of vector embeddings
frankvandijk
2
1.8k
Code Review Best Practice
trishagee
74
20k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
230
KATA
mclloyd
PRO
35
15k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
Transcript
Alexa, what is 2 + 2? Natasha Carlyon
[email protected]
@nscarlyon
Natasha Carlyon • Software Crafter • Greater Sum • @nscarlyon
• http://speakerdeck.com/ •
[email protected]
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/