$30 off During Our Annual Pro Sale. View Details »
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
110
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
29
Upping_Your_Interviewing_Game.pdf
nscarlyon
0
55
DevOps
nscarlyon
0
24
Where's Waldo: Building Better APIs with Swagger
nscarlyon
0
31
ng g talk-on-angular-console
nscarlyon
0
140
Mob Programming
nscarlyon
0
300
Other Decks in Programming
See All in Programming
SwiftUIで本格音ゲー実装してみた
hypebeans
0
450
手が足りない!兼業データエンジニアに必要だったアーキテクチャと立ち回り
zinkosuke
0
780
JETLS.jl ─ A New Language Server for Julia
abap34
1
420
脳の「省エネモード」をデバッグする ~System 1(直感)と System 2(論理)の切り替え~
panda728
PRO
0
110
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
150
エディターってAIで操作できるんだぜ
kis9a
0
740
非同期処理の迷宮を抜ける: 初学者がつまづく構造的な原因
pd1xx
1
740
Rubyで鍛える仕組み化プロヂュース力
muryoimpl
0
150
tparseでgo testの出力を見やすくする
utgwkk
2
260
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
10
1.3k
Cell-Based Architecture
larchanjo
0
140
Rediscover the Console - SymfonyCon Amsterdam 2025
chalasr
2
180
Featured
See All Featured
Getting science done with accelerated Python computing platforms
jacobtomlinson
0
73
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
27
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
0
22
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
220
Between Models and Reality
mayunak
0
140
Claude Code のすすめ
schroneko
65
200k
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/