SlideShare a Scribd company logo
1 of 58
Download to read offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Welcome to today’s workshop!
To successfully complete this workshop, you’ll need:
• An AWS account - https://aws.amazon.com
• An Amazon Developer account - https://developer.amazon.com/alexa-
skills-kit
• The ASK-CLI installed on your laptop - https://alexa.design/cli-jump-
start
Don’t have these all ready to go? While you’re waiting for the session to
start, check out https://alexa.design/isp-workshop-get-ready
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use Alexa Skills to Buy Digital
Content: A Workshop for In-Skill
Purchasing
Sampat Biswas
Sr. Software Dev Engineer
Amazon Alexa
A L X 4 0 1
Franklin Lobb
Sr. Solutions Architect
Amazon Alexa
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
How Alexa In-Skill Purchasing (ISP) works
Creating In-Skill products + lab
Incorporating ISP into your VUI and skill code + lab
Persistent attributes & consumable tracking + lab
Wrap-up
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is In-Skill Purchasing?
• Used to sell premium (digital) content
• Complements the free experience
• Uses payment options associated with
the customer’s Amazon account
• Currently en-US only
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What can customers purchase?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Let’s talk price
Subscriptions and
one-time purchases
$0.99 - $99.99
Consumables
$0.99 to $9.99
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
More on price
70%
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Who does what?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Workshop architecture
Skill
• Game to guess TV show
• Sell hints in packs of five
Components
• Alexa Skill Kit
• AWS Lambda
• Amazon DynamoDB
• Alexa Monetization Service
Alexa Skills KitEcho
Amazon DynamoDB
Alexa Monetization
Service
AWS Lambda
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Adding a consumable
•ask add ispStart from ASK CLI
•ConsumableSelect ISP type
•Consumable_TemplateSelect template
•referenceName in jsonEnter name
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Consumable ISP JSON—Type and referenceName
{
"version": "1.0",
"type": "CONSUMABLE",
"referenceName": "two_hint_pack",
"publishingInformation": {
"locales": {
"en-US": {
"name": "2 Hint Pack",
…
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Consumable ISP JSON—Product details
…
"summary": "You can purchase the 2 hint pack to get two hints during game play to help
you guess the number.",
"description": "With the 2 hint pack, you can ask me twice for a hint to help you guess
the number during any game play. Purchase as many as you need or as you go.",
…
"purchasePromptDescription": "The <PREMIUM_CONTENT_TITLE> includes 2 hints you can use
during game play to help you guess the number.",
"boughtCardDescription": "You now have 2 more hints to use. To use hints, say 'Alexa,
give me a hint' during gameplay.“
…
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Consumable ISP JSON—Pricing and purchasability
…
"pricing": {
"amazon.com": {
"releaseDate": "2018-01-01T00:00Z",
"defaultPriceListing": {
"price": 0.99,
"currency": "USD"
…
"purchasableState": "PURCHASABLE"
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab one—Create
consumable products
Objectives
• Deploy skill w/o ISP’s
• Add consumable ISP’s to skill
using the ASK CLI
Alexa Skills KitEcho
Amazon DynamoDB
Alexa Monetization
Service
AWS Lambda
https://alexa.design/isp-workshop-lab-one
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab one—Create
consumable products
Completed
 Deployed skill w/o ISP’s
 Added Consumable ISP’s to
skill using the ASK CLI
Alexa Skills KitEcho
Amazon DynamoDB
Alexa Monetization
Service
AWS Lambda
https://alexa.design/isp-workshop-lab-one
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Briefly stepping out of the flow
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• Suggestive of option, based
on context
• Dynamic prompt
• Ends with yes/no question,
for example: Would you like
to learn more?
• If yes, moves directly to buy
• Includes pricing information
(including any discount)
• Purchase prompt is in product
configuration
• If Voice Code is configured,
checked if customer wants to
buy
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Are there any other adventures
I can try?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We have a jungle adventure which is
available for purchase. Do you want to
know more about it?
Are there any other adventures
I can try?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We have a jungle adventure which is
available for purchase. Do you want to
know more about it?
Are there any other adventures
I can try?
Upsell
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We have a jungle adventure which is
available for purchase. Do you want to
know more about it?
Are there any other adventures
I can try?
Yes!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We have a jungle adventure which is
available for purchase. Do you want to
know more about it?
Are there any other adventures
I can try?
Yes!
The jungle adventure is amazing. Prime
members save 19 cents, without Prime
it costs 99 cents. Would you like to buy
it?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We have a jungle adventure which is
available for purchase. Do you want to
know more about it?
Are there any other adventures
I can try?
Yes!
The jungle adventure is amazing. Prime
members save 19 cents, without Prime
it costs 99 cents. Would you like to buy
it?
Buy
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
I want to buy the jungle
adventure.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
I want to buy the jungle
adventure.
The jungle adventure is
amazing. Prime members save
19 cents, without Prime it
costs 99 cents. Would you like
to buy it?
Buy
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Purchase process
ACCEPTED
DECLINED
Connections.SendRequest
Connections.Response
Upsell
Buy
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Upsell directive
return handlerInput.responseBuilder
.addDirective({
'type': 'Connections.SendRequest',
'name': 'Upsell',
'payload': {
'InSkillProduct’: { 'productId': HINT_PACK_PRODUCT_ID
},
'upsellMessage': 'You do not have any available hints
to use. Want to learn more about how to purchase?'
},
'token': 'correlationToken' }) .getResponse();
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Buy directive
return handlerInput.responseBuilder
.addDirective({
'type': 'Connections.SendRequest',
'name': 'Buy',
'payload’: {
'InSkillProduct’: { 'productId': HINT_PACK_PRODUCT_ID }
},
'token': 'correlationToken'
}) .getResponse();
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Connections response
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Testing In-Skill Purchasing
Developer (account)
• Never pays—no money changes
hands—even after going live
• Reset using ASK CLI
Beta tester
• During beta test, does not pay
• Reset during beta test using ASK CLI
• Automatically reset at end of beta test
• Purchases do not carry over
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab two—VUI and skill
code updates
Objectives
• Update voice interaction
model to include buy, upsell,
and other ISP related intents
• Update the skill code to
handle new intents
• Update the skill code to send
connections directives and
handle connections events
Alexa Skills KitEcho
Amazon DynamoDB
Alexa Monetization
Service
AWS Lambda
https://alexa.design/isp-workshop-lab-two
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab two—VUI and skill
code updates
Completed
 Updated voice interaction
model to include buy, upsell,
and other ISP related intents
 Updated the skill code to
handle new intents
 Updated the skill code to
send connections directives
and handle connections
events
Alexa Skills KitEcho
Amazon DynamoDB
Alexa Monetization
Service
AWS Lambda
https://alexa.design/isp-workshop-lab-two
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Three types of attributes in the SDK
Request
attributes
Session attributes
Persistent
attributes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Connect to Amazon DynamoDB
const skillBuilder = Alexa.SkillBuilders.standard();
exports.handler = skillBuilder .addRequestHandlers( // ... handlers )
.addRequestInterceptors( // ... request interceptors )
.addResponseInterceptors( // ... response interceptors )
.addErrorHandlers(ErrorHandler)
.withTableName(“mySkillName")
.withAutoCreateTable(true)
.lambda();
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Get persistent attributes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Set persistent attributes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Save persistent attributes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Consumable lifecycle events
• Initialize when first run (zero out)
• Consume it (decrement)
• Refill—purchase more (increment)
• Return / Cancel (decrement)
• Inventory check (current value) Inventory
Initialize
Consume
RefillReturn
Check
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What should be tracked?
Required
• Remaining inventory
Strongly recommended
• Total purchased
Optional
• Expiration timestamp
• Purchase/usage history
0
1
2
3
4
5
6
1 2 3 4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
To stack or not to stack?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Out of skill “experience”—Customer refunds
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Re-enablements with consumables
User id = ABC123User id = XYZ321
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Promo codes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab three—
Consumable tracking
Objectives
• Use persistent attributes to
track consumable inventory
levels
• Test by purchasing and
consuming hints
Alexa Skills KitEcho
Amazon DynamoDB
Alexa Monetization
Service
AWS Lambda
https://alexa.design/isp-workshop-lab-three
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab three—
Consumable tracking
Completed
 Used persistent attributes to
track consumable inventory
levels
 Tested by purchasing and
consuming hints
Alexa Skills KitEcho
Amazon DynamoDB
Alexa Monetization
Service
AWS Lambda
https://alexa.design/isp-workshop-lab-three
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Congratulations!
Alexa Skills KitEcho
Amazon DynamoDB
Alexa Monetization
Service
AWS Lambda
Today you:
 Created a skill
 Added consumable ISP
 Updated VUI and skill code
 Tracked consumables
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Next steps
• Add premium content and ISP’s to your skill
• Consider adding additional analytics within your skill
• Conduct a beta test (tweet me and I’ll be a beta tester for your skill)
• Submit for certification
• Monitor your skill’s performance
• Iterate and enhance your skill
https://alexa.design/isp-workshop
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Related Sessions
Thursday, November 29th
Deep Dive into Three Critical Aspects of Alexa’s In-Skill Purchase API
11:30 am – 12:30 pm | Bellagio
Wednesday, November 28th
Build an Interactive Alexa Voice Experience for Multiple Screens
7:00 pm – 9:15 pm | Venetian
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sampat Biswas
@sampatbiswas
Franklin Lobb
@franklinlobb
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

What's hot (20)

BDA309 Build Your First Big Data Application on AWS
BDA309 Build Your First Big Data Application on AWSBDA309 Build Your First Big Data Application on AWS
BDA309 Build Your First Big Data Application on AWS
 
SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
 SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
 
Serverless Stream Processing Tips & Tricks (ANT358) - AWS re:Invent 2018
Serverless Stream Processing Tips & Tricks (ANT358) - AWS re:Invent 2018Serverless Stream Processing Tips & Tricks (ANT358) - AWS re:Invent 2018
Serverless Stream Processing Tips & Tricks (ANT358) - AWS re:Invent 2018
 
AWS and Symantec: Cyber Defense at Scale (SEC311-S) - AWS re:Invent 2018
AWS and Symantec: Cyber Defense at Scale (SEC311-S) - AWS re:Invent 2018AWS and Symantec: Cyber Defense at Scale (SEC311-S) - AWS re:Invent 2018
AWS and Symantec: Cyber Defense at Scale (SEC311-S) - AWS re:Invent 2018
 
How Disney Streaming Services and TrueCar Deliver Web Applications for Scale,...
How Disney Streaming Services and TrueCar Deliver Web Applications for Scale,...How Disney Streaming Services and TrueCar Deliver Web Applications for Scale,...
How Disney Streaming Services and TrueCar Deliver Web Applications for Scale,...
 
Improve Productivity with Continuous Integration & Delivery
Improve Productivity with Continuous Integration & DeliveryImprove Productivity with Continuous Integration & Delivery
Improve Productivity with Continuous Integration & Delivery
 
What's New with the AWS CLI (DEV322-R1) - AWS re:Invent 2018
What's New with the AWS CLI (DEV322-R1) - AWS re:Invent 2018What's New with the AWS CLI (DEV322-R1) - AWS re:Invent 2018
What's New with the AWS CLI (DEV322-R1) - AWS re:Invent 2018
 
Manage IoT Devices throughout Their Lifecycle - AWS Online Tech Talks
Manage IoT Devices throughout Their Lifecycle - AWS Online Tech TalksManage IoT Devices throughout Their Lifecycle - AWS Online Tech Talks
Manage IoT Devices throughout Their Lifecycle - AWS Online Tech Talks
 
BDA303 Amazon Rekognition: Deep Learning-Based Image and Video Analysis
BDA303 Amazon Rekognition: Deep Learning-Based Image and Video AnalysisBDA303 Amazon Rekognition: Deep Learning-Based Image and Video Analysis
BDA303 Amazon Rekognition: Deep Learning-Based Image and Video Analysis
 
Serverless Architectural Patterns and Best Practices
Serverless Architectural Patterns and Best PracticesServerless Architectural Patterns and Best Practices
Serverless Architectural Patterns and Best Practices
 
AWS, I Choose You: Pokemon's Battle against the Bots (SEC402-R1) - AWS re:Inv...
AWS, I Choose You: Pokemon's Battle against the Bots (SEC402-R1) - AWS re:Inv...AWS, I Choose You: Pokemon's Battle against the Bots (SEC402-R1) - AWS re:Inv...
AWS, I Choose You: Pokemon's Battle against the Bots (SEC402-R1) - AWS re:Inv...
 
Amazon CI-CD Practices for Software Development Teams
Amazon CI-CD Practices for Software Development Teams Amazon CI-CD Practices for Software Development Teams
Amazon CI-CD Practices for Software Development Teams
 
AWS Security in Your Sleep: Build End-to-End Automation for IR Workflows (SEC...
AWS Security in Your Sleep: Build End-to-End Automation for IR Workflows (SEC...AWS Security in Your Sleep: Build End-to-End Automation for IR Workflows (SEC...
AWS Security in Your Sleep: Build End-to-End Automation for IR Workflows (SEC...
 
Bring Alexa to Work
Bring Alexa to Work Bring Alexa to Work
Bring Alexa to Work
 
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
 
Running Container on AWS - Builders Day Israel
Running Container on AWS - Builders Day IsraelRunning Container on AWS - Builders Day Israel
Running Container on AWS - Builders Day Israel
 
Taking Serverless to the Edge
Taking Serverless to the Edge Taking Serverless to the Edge
Taking Serverless to the Edge
 
[REPEAT 1] Managing Identity Management, Authentication, & Authorization for ...
[REPEAT 1] Managing Identity Management, Authentication, & Authorization for ...[REPEAT 1] Managing Identity Management, Authentication, & Authorization for ...
[REPEAT 1] Managing Identity Management, Authentication, & Authorization for ...
 
Building Microservices with Containers (CON308-R1) - AWS re:Invent 2018
Building Microservices with Containers (CON308-R1) - AWS re:Invent 2018Building Microservices with Containers (CON308-R1) - AWS re:Invent 2018
Building Microservices with Containers (CON308-R1) - AWS re:Invent 2018
 
Building Massively Parallel Event-Driven Architectures (SRV373-R1) - AWS re:I...
Building Massively Parallel Event-Driven Architectures (SRV373-R1) - AWS re:I...Building Massively Parallel Event-Driven Architectures (SRV373-R1) - AWS re:I...
Building Massively Parallel Event-Driven Architectures (SRV373-R1) - AWS re:I...
 

Similar to Use Alexa Skills to Buy Digital Content: A Workshop for In-Skill Purchasing (ALX401-R2) - AWS re:Invent 2018

데이터 센터 모던화::임흥선::AWS Summit Seoul 2018
데이터 센터 모던화::임흥선::AWS Summit Seoul 2018데이터 센터 모던화::임흥선::AWS Summit Seoul 2018
데이터 센터 모던화::임흥선::AWS Summit Seoul 2018
Amazon Web Services Korea
 

Similar to Use Alexa Skills to Buy Digital Content: A Workshop for In-Skill Purchasing (ALX401-R2) - AWS re:Invent 2018 (20)

AI Services for Developers | AWS Floor28
AI Services for Developers | AWS Floor28AI Services for Developers | AWS Floor28
AI Services for Developers | AWS Floor28
 
AI Services for Developers - Floor28
AI Services for Developers - Floor28AI Services for Developers - Floor28
AI Services for Developers - Floor28
 
Building Alexa Skills - Floor28
Building Alexa Skills - Floor28Building Alexa Skills - Floor28
Building Alexa Skills - Floor28
 
Building Alexa Skills with AWS | AWS Floor28
Building Alexa Skills with AWS | AWS Floor28Building Alexa Skills with AWS | AWS Floor28
Building Alexa Skills with AWS | AWS Floor28
 
Serverless for Developers
Serverless for DevelopersServerless for Developers
Serverless for Developers
 
Alexa Tools For Building Great Skills
Alexa Tools For Building Great SkillsAlexa Tools For Building Great Skills
Alexa Tools For Building Great Skills
 
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
 
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
 
Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...
Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...
Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...
 
Intro to AWS Cloud Development Kit | AWS Floor28
Intro to AWS Cloud Development Kit | AWS Floor28Intro to AWS Cloud Development Kit | AWS Floor28
Intro to AWS Cloud Development Kit | AWS Floor28
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
 
How to Use AWS Lambda Layers and Lambda Runtime
How to Use AWS Lambda Layers and Lambda RuntimeHow to Use AWS Lambda Layers and Lambda Runtime
How to Use AWS Lambda Layers and Lambda Runtime
 
Update Your Developer Workflow for Cloud-Enabled Mobile Apps (MOB315-R1) - AW...
Update Your Developer Workflow for Cloud-Enabled Mobile Apps (MOB315-R1) - AW...Update Your Developer Workflow for Cloud-Enabled Mobile Apps (MOB315-R1) - AW...
Update Your Developer Workflow for Cloud-Enabled Mobile Apps (MOB315-R1) - AW...
 
From Code to a Running Container | AWS Floor28
From Code to a Running Container | AWS Floor28From Code to a Running Container | AWS Floor28
From Code to a Running Container | AWS Floor28
 
Launch Applications the Amazon Way: AWS Startup Day - New York 2018
Launch Applications the Amazon Way: AWS Startup Day - New York 2018Launch Applications the Amazon Way: AWS Startup Day - New York 2018
Launch Applications the Amazon Way: AWS Startup Day - New York 2018
 
CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...
CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...
CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS...
 
「リモートペアプロでマントルを突き抜けろ!」AWS Cloud9でリモートペアプロ&楽々サーバーレス開発
「リモートペアプロでマントルを突き抜けろ!」AWS Cloud9でリモートペアプロ&楽々サーバーレス開発「リモートペアプロでマントルを突き抜けろ!」AWS Cloud9でリモートペアプロ&楽々サーバーレス開発
「リモートペアプロでマントルを突き抜けろ!」AWS Cloud9でリモートペアプロ&楽々サーバーレス開発
 
Aws summit strikingly analytics
Aws summit   strikingly analyticsAws summit   strikingly analytics
Aws summit strikingly analytics
 
Scaling Up To and Beyond 10M Users
Scaling Up To and Beyond 10M UsersScaling Up To and Beyond 10M Users
Scaling Up To and Beyond 10M Users
 
데이터 센터 모던화::임흥선::AWS Summit Seoul 2018
데이터 센터 모던화::임흥선::AWS Summit Seoul 2018데이터 센터 모던화::임흥선::AWS Summit Seoul 2018
데이터 센터 모던화::임흥선::AWS Summit Seoul 2018
 

More from 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 AWS
Amazon 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 Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon 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
 

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
 

Use Alexa Skills to Buy Digital Content: A Workshop for In-Skill Purchasing (ALX401-R2) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Welcome to today’s workshop! To successfully complete this workshop, you’ll need: • An AWS account - https://aws.amazon.com • An Amazon Developer account - https://developer.amazon.com/alexa- skills-kit • The ASK-CLI installed on your laptop - https://alexa.design/cli-jump- start Don’t have these all ready to go? While you’re waiting for the session to start, check out https://alexa.design/isp-workshop-get-ready
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use Alexa Skills to Buy Digital Content: A Workshop for In-Skill Purchasing Sampat Biswas Sr. Software Dev Engineer Amazon Alexa A L X 4 0 1 Franklin Lobb Sr. Solutions Architect Amazon Alexa
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda How Alexa In-Skill Purchasing (ISP) works Creating In-Skill products + lab Incorporating ISP into your VUI and skill code + lab Persistent attributes & consumable tracking + lab Wrap-up
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What is In-Skill Purchasing? • Used to sell premium (digital) content • Complements the free experience • Uses payment options associated with the customer’s Amazon account • Currently en-US only
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What can customers purchase?
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Let’s talk price Subscriptions and one-time purchases $0.99 - $99.99 Consumables $0.99 to $9.99
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. More on price 70%
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Who does what?
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Workshop architecture Skill • Game to guess TV show • Sell hints in packs of five Components • Alexa Skill Kit • AWS Lambda • Amazon DynamoDB • Alexa Monetization Service Alexa Skills KitEcho Amazon DynamoDB Alexa Monetization Service AWS Lambda
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Adding a consumable •ask add ispStart from ASK CLI •ConsumableSelect ISP type •Consumable_TemplateSelect template •referenceName in jsonEnter name
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Consumable ISP JSON—Type and referenceName { "version": "1.0", "type": "CONSUMABLE", "referenceName": "two_hint_pack", "publishingInformation": { "locales": { "en-US": { "name": "2 Hint Pack", …
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Consumable ISP JSON—Product details … "summary": "You can purchase the 2 hint pack to get two hints during game play to help you guess the number.", "description": "With the 2 hint pack, you can ask me twice for a hint to help you guess the number during any game play. Purchase as many as you need or as you go.", … "purchasePromptDescription": "The <PREMIUM_CONTENT_TITLE> includes 2 hints you can use during game play to help you guess the number.", "boughtCardDescription": "You now have 2 more hints to use. To use hints, say 'Alexa, give me a hint' during gameplay.“ …
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Consumable ISP JSON—Pricing and purchasability … "pricing": { "amazon.com": { "releaseDate": "2018-01-01T00:00Z", "defaultPriceListing": { "price": 0.99, "currency": "USD" … "purchasableState": "PURCHASABLE"
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab one—Create consumable products Objectives • Deploy skill w/o ISP’s • Add consumable ISP’s to skill using the ASK CLI Alexa Skills KitEcho Amazon DynamoDB Alexa Monetization Service AWS Lambda https://alexa.design/isp-workshop-lab-one
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab one—Create consumable products Completed  Deployed skill w/o ISP’s  Added Consumable ISP’s to skill using the ASK CLI Alexa Skills KitEcho Amazon DynamoDB Alexa Monetization Service AWS Lambda https://alexa.design/isp-workshop-lab-one
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Briefly stepping out of the flow
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. • Suggestive of option, based on context • Dynamic prompt • Ends with yes/no question, for example: Would you like to learn more? • If yes, moves directly to buy • Includes pricing information (including any discount) • Purchase prompt is in product configuration • If Voice Code is configured, checked if customer wants to buy
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Are there any other adventures I can try?
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. We have a jungle adventure which is available for purchase. Do you want to know more about it? Are there any other adventures I can try?
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. We have a jungle adventure which is available for purchase. Do you want to know more about it? Are there any other adventures I can try? Upsell
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. We have a jungle adventure which is available for purchase. Do you want to know more about it? Are there any other adventures I can try? Yes!
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. We have a jungle adventure which is available for purchase. Do you want to know more about it? Are there any other adventures I can try? Yes! The jungle adventure is amazing. Prime members save 19 cents, without Prime it costs 99 cents. Would you like to buy it?
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. We have a jungle adventure which is available for purchase. Do you want to know more about it? Are there any other adventures I can try? Yes! The jungle adventure is amazing. Prime members save 19 cents, without Prime it costs 99 cents. Would you like to buy it? Buy
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. I want to buy the jungle adventure.
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. I want to buy the jungle adventure. The jungle adventure is amazing. Prime members save 19 cents, without Prime it costs 99 cents. Would you like to buy it? Buy
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Purchase process ACCEPTED DECLINED Connections.SendRequest Connections.Response Upsell Buy
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Upsell directive return handlerInput.responseBuilder .addDirective({ 'type': 'Connections.SendRequest', 'name': 'Upsell', 'payload': { 'InSkillProduct’: { 'productId': HINT_PACK_PRODUCT_ID }, 'upsellMessage': 'You do not have any available hints to use. Want to learn more about how to purchase?' }, 'token': 'correlationToken' }) .getResponse();
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Buy directive return handlerInput.responseBuilder .addDirective({ 'type': 'Connections.SendRequest', 'name': 'Buy', 'payload’: { 'InSkillProduct’: { 'productId': HINT_PACK_PRODUCT_ID } }, 'token': 'correlationToken' }) .getResponse();
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Connections response
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Testing In-Skill Purchasing Developer (account) • Never pays—no money changes hands—even after going live • Reset using ASK CLI Beta tester • During beta test, does not pay • Reset during beta test using ASK CLI • Automatically reset at end of beta test • Purchases do not carry over
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab two—VUI and skill code updates Objectives • Update voice interaction model to include buy, upsell, and other ISP related intents • Update the skill code to handle new intents • Update the skill code to send connections directives and handle connections events Alexa Skills KitEcho Amazon DynamoDB Alexa Monetization Service AWS Lambda https://alexa.design/isp-workshop-lab-two
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab two—VUI and skill code updates Completed  Updated voice interaction model to include buy, upsell, and other ISP related intents  Updated the skill code to handle new intents  Updated the skill code to send connections directives and handle connections events Alexa Skills KitEcho Amazon DynamoDB Alexa Monetization Service AWS Lambda https://alexa.design/isp-workshop-lab-two
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Three types of attributes in the SDK Request attributes Session attributes Persistent attributes
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Connect to Amazon DynamoDB const skillBuilder = Alexa.SkillBuilders.standard(); exports.handler = skillBuilder .addRequestHandlers( // ... handlers ) .addRequestInterceptors( // ... request interceptors ) .addResponseInterceptors( // ... response interceptors ) .addErrorHandlers(ErrorHandler) .withTableName(“mySkillName") .withAutoCreateTable(true) .lambda();
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Get persistent attributes
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Set persistent attributes
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Save persistent attributes
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Consumable lifecycle events • Initialize when first run (zero out) • Consume it (decrement) • Refill—purchase more (increment) • Return / Cancel (decrement) • Inventory check (current value) Inventory Initialize Consume RefillReturn Check
  • 47. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What should be tracked? Required • Remaining inventory Strongly recommended • Total purchased Optional • Expiration timestamp • Purchase/usage history 0 1 2 3 4 5 6 1 2 3 4
  • 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. To stack or not to stack?
  • 49. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Out of skill “experience”—Customer refunds
  • 50. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Re-enablements with consumables User id = ABC123User id = XYZ321
  • 51. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Promo codes
  • 52. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab three— Consumable tracking Objectives • Use persistent attributes to track consumable inventory levels • Test by purchasing and consuming hints Alexa Skills KitEcho Amazon DynamoDB Alexa Monetization Service AWS Lambda https://alexa.design/isp-workshop-lab-three
  • 53. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab three— Consumable tracking Completed  Used persistent attributes to track consumable inventory levels  Tested by purchasing and consuming hints Alexa Skills KitEcho Amazon DynamoDB Alexa Monetization Service AWS Lambda https://alexa.design/isp-workshop-lab-three
  • 54. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Congratulations! Alexa Skills KitEcho Amazon DynamoDB Alexa Monetization Service AWS Lambda Today you:  Created a skill  Added consumable ISP  Updated VUI and skill code  Tracked consumables
  • 55. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Next steps • Add premium content and ISP’s to your skill • Consider adding additional analytics within your skill • Conduct a beta test (tweet me and I’ll be a beta tester for your skill) • Submit for certification • Monitor your skill’s performance • Iterate and enhance your skill https://alexa.design/isp-workshop
  • 56. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Related Sessions Thursday, November 29th Deep Dive into Three Critical Aspects of Alexa’s In-Skill Purchase API 11:30 am – 12:30 pm | Bellagio Wednesday, November 28th Build an Interactive Alexa Voice Experience for Multiple Screens 7:00 pm – 9:15 pm | Venetian
  • 57. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sampat Biswas @sampatbiswas Franklin Lobb @franklinlobb
  • 58. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.