SlideShare ist ein Scribd-Unternehmen logo
1 von 33
Downloaden Sie, um offline zu lesen
1
Dinah Barrett
AWS Partner Solutions Architect - UKI
2
Alexa Skills Workshop
3
What to Expect from the Session
1. Introduction: Amazon Alexa service and framework
2. Under the hood: How Alexa works
3. Hands-on: How to build an Amazon Alexa skill
4. What’s next: Ideas, tools, and resources
Alexa Skills Workshop
Agenda
4
What to Expect from the Session
Before we start, sign into:
1. developer.amazon.com
2. aws.amazon.com
3. You will need a text editor – such as Sublime, Atom, or any
other plain-text editor you wish to write this code with.
4. Browser testing of alexa Skill - https://echosim.io/
• (you will need an amazon account)
5. GitHub – source https://github.com/DDB001/alexa-
generalfacts.git
6. Amazon Alexa App – alexa.amazon.com
Alexa Skills Workshop
5
Alexa Skills Builder & Testing Tool (beta)
A new tool for creating Alexa skills
with natural interactive dialogs.
Easily gather beta feedback to improve
the quality of your Alexa skills.
6
Alexa Service
Alexa Skills
Kit
(ASK)
Alexa Voice
Services
(AVS)Lives In The Cloud
Automated Speech Recognition (ASR)
Natural Language Understanding (NLU)
Text to Speech (TTS)
Always Getting Smarter (AI)
Supported by two powerful frameworks that leverage open APIs
7
ASK is a collection of self-service APIs, tools, documentation, and code samples that make
it fast and easy for you to add skills to Alexa, including custom skills for your device.
You Pass Back a
Textual or Audio
Response
You Pass Back a
Graphical Response
Alexa Converts
Text-to-Speech
(TTS) & Renders
Graphical
Component
Respond to Intent
through Text &
Visual
User Makes
a Request
Alexa sends
Customer Intent
to Your Service
AWS Lambda
Amazon API
Gateway
Alexa Skills Kit (ASK)
Audio Stream is
sent to Alexa
Your
service
processes
request
8
Alexa Voice Service (AVS)
Natural voice control
Always getting smarter
Easy to integrate, free to use
AVS is Amazon’s cloud-based voice service that allows you as a developer to
voice-enable any connected product that has a microphone and speaker.
9
Cloud-Based Voice Service
Music Services Cloud-Based Intelligence
Smart Home Services
News and Information
Amazon Alexa App
Custom Skills
AVS is always getting smarter with an ever-expanding list of supported
features, services, and third-party skills.
10
Cards
Alexa Skills Kit: Utterances and Intents
Response
Your
service
Audio
Speech Recognition
Machine Learning
Natural Language Understanding
Text to Speech
Request
Intents
Utterances
11
ASR – Automatic Speech Recognition
fȯr tē tīmz
• Forty Times?
• For Tea Times?
• For Tee Times?
• Four Tee Times?
12
How to build an Alexa Skill
a) Amazon Developer Portal (ADP) is the place where we setup
our skill.
b) Create the the interaction model:
a) Intent Schema and Intents – a JSON definition of those intents
(the actions)
b) Utterances
c) Create Lambda endpoint
a) a Lambda function does the work for each Intent
d) Test with Alexa Echo
13
Alexa, ask Anime Facts for a fact
wake word utteranceskill namelaunch
Utterances and Intents
14
One more please
utterance
Alexa, ask Anime Facts for a fact
wake word utteranceskill namelaunch
Utterances and Intents
15
GetFactIntent
Intent
utterance slot value
Utterances and Intents
One more please
utterance
Alexa, ask Anime Facts for a fact
wake word utteranceskill namelaunch
16
Intents
• Intents (Intent Schema) –
• The Intent schema is
JSON that defines our
intents
• The actions that a user
can take within the skill
• Slots (our arguments
within a given intent)
{
"intents”: [
{
"intent": "GetNewFactIntent"
},
{
"intent": "AMAZON.HelpIntent"
},
{
"intent": "AMAZON.StopIntent"
},
{
"intent": "AMAZON.CancelIntent"
}
]
}
17
Utterances
• Utterances –
• Utterances are example
invocations of our skill.
• How the user will
interact with the skill.
GetNewFactIntent a fact
GetNewFactIntent a random fact
GetNewFactIntent tell me a fact
GetNewFactIntent tell me a random fact
GetNewFactIntent give me a fact
GetNewFactIntent give me a random fact
GetNewFactIntent tell me trivia
GetNewFactIntent tell me a trivia
GetNewFactIntent give me trivia
GetNewFactIntent give me a random trivia
GetNewFactIntent give me some information
GetNewFactIntent give me some random information
GetNewFactIntent tell me something
18
Slots
• Utterances –
• Utterances are example
invocations of our skill.
• How the user will
interact with the skill.
GetNewFactIntent a fact
GetNewFactIntent a random fact
GetNewFactIntent tell me a fact
GetNewFactIntent tell me a random fact
GetNewFactIntent give me a fact
GetNewFactIntent give me a random fact
GetNewFactIntent tell me trivia
GetNewFactIntent tell me a trivia
GetNewFactIntent give me trivia
GetNewFactIntent give me a random trivia
GetNewFactIntent give me some information
GetNewFactIntent give me some random information
GetNewFactIntent tell me something
19
Types of Alexa Skills
There are three types of Alexa skill you can develop:
1. Custom Skill
• These skills can handle just about any type of request. You define
the requests the skill can handle (intents) and the words users
say to invoke those requests (utterances)
2. Smart home skills
• Users can control cloud-enabled smart-home devices like lights
and thermostats.
3. Flash briefing skills
• Users say “Alexa Flash Briefing” to invoke the flash briefing or
news request (utterances)
20
21
22
Alexa Voice Service – how it works
Amazon
Alexa
service
Alexa skill
hosted on
Lambda
Application, intents, sample
data Developer Service URL
endPoint
Configured through portal
User intents and
arguments are sent
to the developer
service
GUI cards are rendered
in the Amazon Alexa
app
User audio is
streamed to the
service
Audio responses are
rendered on-device
Text response and/or
GUI card data is returned
Alexa skill
hosted on
Lambda
23
AWS Lambda
1. If you do not already have an account on AWS, go to Amazon Web
Services and create an account.
2. Log in to the AWS Management Console and navigate to AWS
Lambda.
3. Click the region drop-down in the upper-right corner of the
console and select EU (Ireland).
4. Click Configure triggers.
5. Click and drop down menu and and select Alexa Skills Kit.
6. Enter a Name and Description for the function.
7. Select the language you want to use for the Runtime (Node.js).
8. Select the Role for the function
9. On the Review page, make sure that the Triggers section
includes Alexa Skills Kit.
10. Click Create function to save your new function.
24
Select Blueprint > Blank Function
25
Configure Triggers > Alexa Skills Kit
26
Configure Lambda Function
27
Configure Function > Select Node.js 4.3
28
Lambda Function > Select upload a .Zip file
29
Lambda Function > Select Upload
30
AWS Lambda – Create role
1. Defining a New Role for the Function
1. The role specifies the AWS resources your function can access. To create a new
role while configuring your function:
2. For Role (under Lambda function handler and role),
3. Select Create new role from template(s).
4. Enter the Role Name.
5. From the Policy templates list, select Simple Microservice permissions
31
Configure Function > create role
32
Lambda Function created
33
Demo

Weitere ähnliche Inhalte

Was ist angesagt?

AWS Machine Learning Language Services (May 2018)
AWS Machine Learning Language Services (May 2018)AWS Machine Learning Language Services (May 2018)
AWS Machine Learning Language Services (May 2018)Julien SIMON
 
Introduction to Artificial Intelligence (AI)
Introduction to Artificial Intelligence (AI)Introduction to Artificial Intelligence (AI)
Introduction to Artificial Intelligence (AI)Amazon Web Services
 
Workshop: Build Deep Learning Applications with TensorFlow and SageMaker
Workshop: Build Deep Learning Applications with TensorFlow and SageMakerWorkshop: Build Deep Learning Applications with TensorFlow and SageMaker
Workshop: Build Deep Learning Applications with TensorFlow and SageMakerAmazon Web Services
 
AI & ML on AWS: State of the Union
AI & ML on AWS: State of the UnionAI & ML on AWS: State of the Union
AI & ML on AWS: State of the UnionJulien SIMON
 
An Overview of AI at AWS: Amazon Lex, Amazon Polly, Amazon Rekognition, Apach...
An Overview of AI at AWS: Amazon Lex, Amazon Polly, Amazon Rekognition, Apach...An Overview of AI at AWS: Amazon Lex, Amazon Polly, Amazon Rekognition, Apach...
An Overview of AI at AWS: Amazon Lex, Amazon Polly, Amazon Rekognition, Apach...Amazon Web Services
 
Introduction to Artificial Intelligence (AI) at Amazon
Introduction to Artificial Intelligence (AI) at Amazon Introduction to Artificial Intelligence (AI) at Amazon
Introduction to Artificial Intelligence (AI) at Amazon Amanda Mackay (she/her)
 
Amazon Alexa Voice Interfaces Meetup Berlin August 2016
Amazon Alexa Voice Interfaces Meetup Berlin August 2016Amazon Alexa Voice Interfaces Meetup Berlin August 2016
Amazon Alexa Voice Interfaces Meetup Berlin August 2016Tilmann Böhme
 
Building AI-powered Apps on AWS
Building AI-powered Apps on AWSBuilding AI-powered Apps on AWS
Building AI-powered Apps on AWSAdrian Hornsby
 
New AI/ML services at AWS re:Invent 2017
New AI/ML services at AWS re:Invent 2017New AI/ML services at AWS re:Invent 2017
New AI/ML services at AWS re:Invent 2017Julien SIMON
 
ALX326_Applying Alexa’s Natural Language to Your Challenges
ALX326_Applying Alexa’s Natural Language to Your ChallengesALX326_Applying Alexa’s Natural Language to Your Challenges
ALX326_Applying Alexa’s Natural Language to Your ChallengesAmazon Web Services
 
ALX315_Test Automation for Alexa Skills
ALX315_Test Automation for Alexa SkillsALX315_Test Automation for Alexa Skills
ALX315_Test Automation for Alexa SkillsAmazon Web Services
 
AI & Deep Learning At Amazon - April 2017 AWS Online Tech Talks
AI & Deep Learning At Amazon - April 2017 AWS Online Tech TalksAI & Deep Learning At Amazon - April 2017 AWS Online Tech Talks
AI & Deep Learning At Amazon - April 2017 AWS Online Tech TalksAmazon Web Services
 
WKS403 Build an Alexa Skill using AWS Lambda
WKS403   Build an Alexa Skill using AWS LambdaWKS403   Build an Alexa Skill using AWS Lambda
WKS403 Build an Alexa Skill using AWS LambdaAmazon Web Services
 
AWS와 Alexa 음성 인식 플랫폼을 통한 비즈니스 기회::윤석찬::AWS Summit Seoul 2018
AWS와 Alexa 음성 인식 플랫폼을 통한 비즈니스 기회::윤석찬::AWS Summit Seoul 2018 AWS와 Alexa 음성 인식 플랫폼을 통한 비즈니스 기회::윤석찬::AWS Summit Seoul 2018
AWS와 Alexa 음성 인식 플랫폼을 통한 비즈니스 기회::윤석찬::AWS Summit Seoul 2018 Amazon Web Services Korea
 
AI / ML Services - re:Invent Comes to London 2.0
AI / ML Services - re:Invent Comes to London 2.0AI / ML Services - re:Invent Comes to London 2.0
AI / ML Services - re:Invent Comes to London 2.0Amazon Web Services
 
Designing Far-Field Speech Processing Systems with Intel and Amazon Alexa Voi...
Designing Far-Field Speech Processing Systems with Intel and Amazon Alexa Voi...Designing Far-Field Speech Processing Systems with Intel and Amazon Alexa Voi...
Designing Far-Field Speech Processing Systems with Intel and Amazon Alexa Voi...Amazon Web Services
 
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...Adrian Hornsby
 
AWS Machine Learning Week SF: Build an Image-Based Automatic Alert System wit...
AWS Machine Learning Week SF: Build an Image-Based Automatic Alert System wit...AWS Machine Learning Week SF: Build an Image-Based Automatic Alert System wit...
AWS Machine Learning Week SF: Build an Image-Based Automatic Alert System wit...Amazon Web Services
 

Was ist angesagt? (20)

AWS Machine Learning Language Services (May 2018)
AWS Machine Learning Language Services (May 2018)AWS Machine Learning Language Services (May 2018)
AWS Machine Learning Language Services (May 2018)
 
Introduction to Artificial Intelligence (AI)
Introduction to Artificial Intelligence (AI)Introduction to Artificial Intelligence (AI)
Introduction to Artificial Intelligence (AI)
 
Workshop: Build Deep Learning Applications with TensorFlow and SageMaker
Workshop: Build Deep Learning Applications with TensorFlow and SageMakerWorkshop: Build Deep Learning Applications with TensorFlow and SageMaker
Workshop: Build Deep Learning Applications with TensorFlow and SageMaker
 
AI & ML on AWS: State of the Union
AI & ML on AWS: State of the UnionAI & ML on AWS: State of the Union
AI & ML on AWS: State of the Union
 
An Overview of AI at AWS: Amazon Lex, Amazon Polly, Amazon Rekognition, Apach...
An Overview of AI at AWS: Amazon Lex, Amazon Polly, Amazon Rekognition, Apach...An Overview of AI at AWS: Amazon Lex, Amazon Polly, Amazon Rekognition, Apach...
An Overview of AI at AWS: Amazon Lex, Amazon Polly, Amazon Rekognition, Apach...
 
Introduction to Artificial Intelligence (AI) at Amazon
Introduction to Artificial Intelligence (AI) at Amazon Introduction to Artificial Intelligence (AI) at Amazon
Introduction to Artificial Intelligence (AI) at Amazon
 
Amazon Alexa Voice Interfaces Meetup Berlin August 2016
Amazon Alexa Voice Interfaces Meetup Berlin August 2016Amazon Alexa Voice Interfaces Meetup Berlin August 2016
Amazon Alexa Voice Interfaces Meetup Berlin August 2016
 
Building AI-powered Apps on AWS
Building AI-powered Apps on AWSBuilding AI-powered Apps on AWS
Building AI-powered Apps on AWS
 
New AI/ML services at AWS re:Invent 2017
New AI/ML services at AWS re:Invent 2017New AI/ML services at AWS re:Invent 2017
New AI/ML services at AWS re:Invent 2017
 
ALX326_Applying Alexa’s Natural Language to Your Challenges
ALX326_Applying Alexa’s Natural Language to Your ChallengesALX326_Applying Alexa’s Natural Language to Your Challenges
ALX326_Applying Alexa’s Natural Language to Your Challenges
 
AI for developers
AI for developersAI for developers
AI for developers
 
ALX315_Test Automation for Alexa Skills
ALX315_Test Automation for Alexa SkillsALX315_Test Automation for Alexa Skills
ALX315_Test Automation for Alexa Skills
 
AI & Deep Learning At Amazon - April 2017 AWS Online Tech Talks
AI & Deep Learning At Amazon - April 2017 AWS Online Tech TalksAI & Deep Learning At Amazon - April 2017 AWS Online Tech Talks
AI & Deep Learning At Amazon - April 2017 AWS Online Tech Talks
 
WKS403 Build an Alexa Skill using AWS Lambda
WKS403   Build an Alexa Skill using AWS LambdaWKS403   Build an Alexa Skill using AWS Lambda
WKS403 Build an Alexa Skill using AWS Lambda
 
AWS와 Alexa 음성 인식 플랫폼을 통한 비즈니스 기회::윤석찬::AWS Summit Seoul 2018
AWS와 Alexa 음성 인식 플랫폼을 통한 비즈니스 기회::윤석찬::AWS Summit Seoul 2018 AWS와 Alexa 음성 인식 플랫폼을 통한 비즈니스 기회::윤석찬::AWS Summit Seoul 2018
AWS와 Alexa 음성 인식 플랫폼을 통한 비즈니스 기회::윤석찬::AWS Summit Seoul 2018
 
AI / ML Services - re:Invent Comes to London 2.0
AI / ML Services - re:Invent Comes to London 2.0AI / ML Services - re:Invent Comes to London 2.0
AI / ML Services - re:Invent Comes to London 2.0
 
Designing Far-Field Speech Processing Systems with Intel and Amazon Alexa Voi...
Designing Far-Field Speech Processing Systems with Intel and Amazon Alexa Voi...Designing Far-Field Speech Processing Systems with Intel and Amazon Alexa Voi...
Designing Far-Field Speech Processing Systems with Intel and Amazon Alexa Voi...
 
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...
 
Alexa, nice to meet you!
Alexa, nice to meet you! Alexa, nice to meet you!
Alexa, nice to meet you!
 
AWS Machine Learning Week SF: Build an Image-Based Automatic Alert System wit...
AWS Machine Learning Week SF: Build an Image-Based Automatic Alert System wit...AWS Machine Learning Week SF: Build an Image-Based Automatic Alert System wit...
AWS Machine Learning Week SF: Build an Image-Based Automatic Alert System wit...
 

Ähnlich wie Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop

Alexa101 course slides
Alexa101 course slidesAlexa101 course slides
Alexa101 course slidesDan Bloy
 
Get Started Developing with Alexa and Drupal
Get Started Developing with Alexa and DrupalGet Started Developing with Alexa and Drupal
Get Started Developing with Alexa and DrupalAmber Matz
 
Start building for voice with alexa
Start building for voice with alexaStart building for voice with alexa
Start building for voice with alexaEitan Sela
 
Design and Develop Alexa Skills - Codemotion Rome 2019
Design and Develop Alexa Skills - Codemotion Rome 2019Design and Develop Alexa Skills - Codemotion Rome 2019
Design and Develop Alexa Skills - Codemotion Rome 2019Aleanan
 
Amazon alexa - building custom skills
Amazon alexa - building custom skillsAmazon alexa - building custom skills
Amazon alexa - building custom skillsAniruddha Chakrabarti
 
IT Camp 2019: How to build your first Alexa skill in under one hour
IT Camp 2019: How to build your first Alexa skill in under one hourIT Camp 2019: How to build your first Alexa skill in under one hour
IT Camp 2019: How to build your first Alexa skill in under one hourIonut Balan
 
Maximising the Customer Experience with Amazon Connect and AI Services
Maximising the Customer Experience with Amazon Connect and AI ServicesMaximising the Customer Experience with Amazon Connect and AI Services
Maximising the Customer Experience with Amazon Connect and AI ServicesAmazon Web Services
 
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...Amazon Web Services
 
WIN205-Building a Better .NET Bot with AWS Services
WIN205-Building a Better .NET Bot with AWS ServicesWIN205-Building a Better .NET Bot with AWS Services
WIN205-Building a Better .NET Bot with AWS ServicesAmazon Web Services
 
Building a Better .NET Bot with AWS Services - WIN205 - re:Invent 2017
Building a Better .NET Bot with AWS Services - WIN205 - re:Invent 2017Building a Better .NET Bot with AWS Services - WIN205 - re:Invent 2017
Building a Better .NET Bot with AWS Services - WIN205 - re:Invent 2017Amazon Web Services
 
Marcel Pociot "Alexa, let's build a voice-powered app"
Marcel Pociot "Alexa, let's build a voice-powered app"Marcel Pociot "Alexa, let's build a voice-powered app"
Marcel Pociot "Alexa, let's build a voice-powered app"Fwdays
 
Amazon Alexa Development Overview
Amazon Alexa Development OverviewAmazon Alexa Development Overview
Amazon Alexa Development OverviewJohn Brady
 
Build a Game for Echo Buttons - an Alexa Gadget! (ALX405-R2) - AWS re:Invent ...
Build a Game for Echo Buttons - an Alexa Gadget! (ALX405-R2) - AWS re:Invent ...Build a Game for Echo Buttons - an Alexa Gadget! (ALX405-R2) - AWS re:Invent ...
Build a Game for Echo Buttons - an Alexa Gadget! (ALX405-R2) - AWS re:Invent ...Amazon Web Services
 
Guest Lecture _ Python Basics _ Alexa Skill Dev _ by Shivam Dutt Sharma
Guest Lecture _ Python Basics _ Alexa Skill Dev _ by Shivam Dutt SharmaGuest Lecture _ Python Basics _ Alexa Skill Dev _ by Shivam Dutt Sharma
Guest Lecture _ Python Basics _ Alexa Skill Dev _ by Shivam Dutt SharmaShivamDuttSharma
 
Alexa Smart Home Skill
Alexa Smart Home SkillAlexa Smart Home Skill
Alexa Smart Home SkillJun Ichikawa
 
An Overview of AI at AWS - Amazon Lex, Amazon Polly, Amazon Rekognition - Dev...
An Overview of AI at AWS - Amazon Lex, Amazon Polly, Amazon Rekognition - Dev...An Overview of AI at AWS - Amazon Lex, Amazon Polly, Amazon Rekognition - Dev...
An Overview of AI at AWS - Amazon Lex, Amazon Polly, Amazon Rekognition - Dev...Amazon Web Services
 
Overview of Artificial Intelligence at AWS - DevDay Los Angeles 2017
Overview of Artificial Intelligence at AWS - DevDay Los Angeles 2017Overview of Artificial Intelligence at AWS - DevDay Los Angeles 2017
Overview of Artificial Intelligence at AWS - DevDay Los Angeles 2017Amazon Web Services
 
Getting Started with Amazon Alexa on the Raspberry Pi
Getting Started with Amazon Alexa on the Raspberry PiGetting Started with Amazon Alexa on the Raspberry Pi
Getting Started with Amazon Alexa on the Raspberry PiAyumi Kobukata
 
Hackster DFW - Amazon Echo Workshop
Hackster DFW - Amazon Echo WorkshopHackster DFW - Amazon Echo Workshop
Hackster DFW - Amazon Echo WorkshopRon Dagdag
 

Ähnlich wie Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop (20)

Alexa101 course slides
Alexa101 course slidesAlexa101 course slides
Alexa101 course slides
 
Get Started Developing with Alexa and Drupal
Get Started Developing with Alexa and DrupalGet Started Developing with Alexa and Drupal
Get Started Developing with Alexa and Drupal
 
Start building for voice with alexa
Start building for voice with alexaStart building for voice with alexa
Start building for voice with alexa
 
Design and Develop Alexa Skills - Codemotion Rome 2019
Design and Develop Alexa Skills - Codemotion Rome 2019Design and Develop Alexa Skills - Codemotion Rome 2019
Design and Develop Alexa Skills - Codemotion Rome 2019
 
Amazon alexa - building custom skills
Amazon alexa - building custom skillsAmazon alexa - building custom skills
Amazon alexa - building custom skills
 
IT Camp 2019: How to build your first Alexa skill in under one hour
IT Camp 2019: How to build your first Alexa skill in under one hourIT Camp 2019: How to build your first Alexa skill in under one hour
IT Camp 2019: How to build your first Alexa skill in under one hour
 
Maximising the Customer Experience with Amazon Connect and AI Services
Maximising the Customer Experience with Amazon Connect and AI ServicesMaximising the Customer Experience with Amazon Connect and AI Services
Maximising the Customer Experience with Amazon Connect and AI Services
 
Building a chatbot – step by step
Building a chatbot – step by stepBuilding a chatbot – step by step
Building a chatbot – step by step
 
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
 
WIN205-Building a Better .NET Bot with AWS Services
WIN205-Building a Better .NET Bot with AWS ServicesWIN205-Building a Better .NET Bot with AWS Services
WIN205-Building a Better .NET Bot with AWS Services
 
Building a Better .NET Bot with AWS Services - WIN205 - re:Invent 2017
Building a Better .NET Bot with AWS Services - WIN205 - re:Invent 2017Building a Better .NET Bot with AWS Services - WIN205 - re:Invent 2017
Building a Better .NET Bot with AWS Services - WIN205 - re:Invent 2017
 
Marcel Pociot "Alexa, let's build a voice-powered app"
Marcel Pociot "Alexa, let's build a voice-powered app"Marcel Pociot "Alexa, let's build a voice-powered app"
Marcel Pociot "Alexa, let's build a voice-powered app"
 
Amazon Alexa Development Overview
Amazon Alexa Development OverviewAmazon Alexa Development Overview
Amazon Alexa Development Overview
 
Build a Game for Echo Buttons - an Alexa Gadget! (ALX405-R2) - AWS re:Invent ...
Build a Game for Echo Buttons - an Alexa Gadget! (ALX405-R2) - AWS re:Invent ...Build a Game for Echo Buttons - an Alexa Gadget! (ALX405-R2) - AWS re:Invent ...
Build a Game for Echo Buttons - an Alexa Gadget! (ALX405-R2) - AWS re:Invent ...
 
Guest Lecture _ Python Basics _ Alexa Skill Dev _ by Shivam Dutt Sharma
Guest Lecture _ Python Basics _ Alexa Skill Dev _ by Shivam Dutt SharmaGuest Lecture _ Python Basics _ Alexa Skill Dev _ by Shivam Dutt Sharma
Guest Lecture _ Python Basics _ Alexa Skill Dev _ by Shivam Dutt Sharma
 
Alexa Smart Home Skill
Alexa Smart Home SkillAlexa Smart Home Skill
Alexa Smart Home Skill
 
An Overview of AI at AWS - Amazon Lex, Amazon Polly, Amazon Rekognition - Dev...
An Overview of AI at AWS - Amazon Lex, Amazon Polly, Amazon Rekognition - Dev...An Overview of AI at AWS - Amazon Lex, Amazon Polly, Amazon Rekognition - Dev...
An Overview of AI at AWS - Amazon Lex, Amazon Polly, Amazon Rekognition - Dev...
 
Overview of Artificial Intelligence at AWS - DevDay Los Angeles 2017
Overview of Artificial Intelligence at AWS - DevDay Los Angeles 2017Overview of Artificial Intelligence at AWS - DevDay Los Angeles 2017
Overview of Artificial Intelligence at AWS - DevDay Los Angeles 2017
 
Getting Started with Amazon Alexa on the Raspberry Pi
Getting Started with Amazon Alexa on the Raspberry PiGetting Started with Amazon Alexa on the Raspberry Pi
Getting Started with Amazon Alexa on the Raspberry Pi
 
Hackster DFW - Amazon Echo Workshop
Hackster DFW - Amazon Echo WorkshopHackster DFW - Amazon Echo Workshop
Hackster DFW - Amazon Echo Workshop
 

Kürzlich hochgeladen

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 

Kürzlich hochgeladen (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Digital Muse “Girl Tech Fest - AWS Alexa Skills Coding Workshop

  • 1. 1 Dinah Barrett AWS Partner Solutions Architect - UKI
  • 3. 3 What to Expect from the Session 1. Introduction: Amazon Alexa service and framework 2. Under the hood: How Alexa works 3. Hands-on: How to build an Amazon Alexa skill 4. What’s next: Ideas, tools, and resources Alexa Skills Workshop Agenda
  • 4. 4 What to Expect from the Session Before we start, sign into: 1. developer.amazon.com 2. aws.amazon.com 3. You will need a text editor – such as Sublime, Atom, or any other plain-text editor you wish to write this code with. 4. Browser testing of alexa Skill - https://echosim.io/ • (you will need an amazon account) 5. GitHub – source https://github.com/DDB001/alexa- generalfacts.git 6. Amazon Alexa App – alexa.amazon.com Alexa Skills Workshop
  • 5. 5 Alexa Skills Builder & Testing Tool (beta) A new tool for creating Alexa skills with natural interactive dialogs. Easily gather beta feedback to improve the quality of your Alexa skills.
  • 6. 6 Alexa Service Alexa Skills Kit (ASK) Alexa Voice Services (AVS)Lives In The Cloud Automated Speech Recognition (ASR) Natural Language Understanding (NLU) Text to Speech (TTS) Always Getting Smarter (AI) Supported by two powerful frameworks that leverage open APIs
  • 7. 7 ASK is a collection of self-service APIs, tools, documentation, and code samples that make it fast and easy for you to add skills to Alexa, including custom skills for your device. You Pass Back a Textual or Audio Response You Pass Back a Graphical Response Alexa Converts Text-to-Speech (TTS) & Renders Graphical Component Respond to Intent through Text & Visual User Makes a Request Alexa sends Customer Intent to Your Service AWS Lambda Amazon API Gateway Alexa Skills Kit (ASK) Audio Stream is sent to Alexa Your service processes request
  • 8. 8 Alexa Voice Service (AVS) Natural voice control Always getting smarter Easy to integrate, free to use AVS is Amazon’s cloud-based voice service that allows you as a developer to voice-enable any connected product that has a microphone and speaker.
  • 9. 9 Cloud-Based Voice Service Music Services Cloud-Based Intelligence Smart Home Services News and Information Amazon Alexa App Custom Skills AVS is always getting smarter with an ever-expanding list of supported features, services, and third-party skills.
  • 10. 10 Cards Alexa Skills Kit: Utterances and Intents Response Your service Audio Speech Recognition Machine Learning Natural Language Understanding Text to Speech Request Intents Utterances
  • 11. 11 ASR – Automatic Speech Recognition fȯr tē tīmz • Forty Times? • For Tea Times? • For Tee Times? • Four Tee Times?
  • 12. 12 How to build an Alexa Skill a) Amazon Developer Portal (ADP) is the place where we setup our skill. b) Create the the interaction model: a) Intent Schema and Intents – a JSON definition of those intents (the actions) b) Utterances c) Create Lambda endpoint a) a Lambda function does the work for each Intent d) Test with Alexa Echo
  • 13. 13 Alexa, ask Anime Facts for a fact wake word utteranceskill namelaunch Utterances and Intents
  • 14. 14 One more please utterance Alexa, ask Anime Facts for a fact wake word utteranceskill namelaunch Utterances and Intents
  • 15. 15 GetFactIntent Intent utterance slot value Utterances and Intents One more please utterance Alexa, ask Anime Facts for a fact wake word utteranceskill namelaunch
  • 16. 16 Intents • Intents (Intent Schema) – • The Intent schema is JSON that defines our intents • The actions that a user can take within the skill • Slots (our arguments within a given intent) { "intents”: [ { "intent": "GetNewFactIntent" }, { "intent": "AMAZON.HelpIntent" }, { "intent": "AMAZON.StopIntent" }, { "intent": "AMAZON.CancelIntent" } ] }
  • 17. 17 Utterances • Utterances – • Utterances are example invocations of our skill. • How the user will interact with the skill. GetNewFactIntent a fact GetNewFactIntent a random fact GetNewFactIntent tell me a fact GetNewFactIntent tell me a random fact GetNewFactIntent give me a fact GetNewFactIntent give me a random fact GetNewFactIntent tell me trivia GetNewFactIntent tell me a trivia GetNewFactIntent give me trivia GetNewFactIntent give me a random trivia GetNewFactIntent give me some information GetNewFactIntent give me some random information GetNewFactIntent tell me something
  • 18. 18 Slots • Utterances – • Utterances are example invocations of our skill. • How the user will interact with the skill. GetNewFactIntent a fact GetNewFactIntent a random fact GetNewFactIntent tell me a fact GetNewFactIntent tell me a random fact GetNewFactIntent give me a fact GetNewFactIntent give me a random fact GetNewFactIntent tell me trivia GetNewFactIntent tell me a trivia GetNewFactIntent give me trivia GetNewFactIntent give me a random trivia GetNewFactIntent give me some information GetNewFactIntent give me some random information GetNewFactIntent tell me something
  • 19. 19 Types of Alexa Skills There are three types of Alexa skill you can develop: 1. Custom Skill • These skills can handle just about any type of request. You define the requests the skill can handle (intents) and the words users say to invoke those requests (utterances) 2. Smart home skills • Users can control cloud-enabled smart-home devices like lights and thermostats. 3. Flash briefing skills • Users say “Alexa Flash Briefing” to invoke the flash briefing or news request (utterances)
  • 20. 20
  • 21. 21
  • 22. 22 Alexa Voice Service – how it works Amazon Alexa service Alexa skill hosted on Lambda Application, intents, sample data Developer Service URL endPoint Configured through portal User intents and arguments are sent to the developer service GUI cards are rendered in the Amazon Alexa app User audio is streamed to the service Audio responses are rendered on-device Text response and/or GUI card data is returned Alexa skill hosted on Lambda
  • 23. 23 AWS Lambda 1. If you do not already have an account on AWS, go to Amazon Web Services and create an account. 2. Log in to the AWS Management Console and navigate to AWS Lambda. 3. Click the region drop-down in the upper-right corner of the console and select EU (Ireland). 4. Click Configure triggers. 5. Click and drop down menu and and select Alexa Skills Kit. 6. Enter a Name and Description for the function. 7. Select the language you want to use for the Runtime (Node.js). 8. Select the Role for the function 9. On the Review page, make sure that the Triggers section includes Alexa Skills Kit. 10. Click Create function to save your new function.
  • 24. 24 Select Blueprint > Blank Function
  • 25. 25 Configure Triggers > Alexa Skills Kit
  • 27. 27 Configure Function > Select Node.js 4.3
  • 28. 28 Lambda Function > Select upload a .Zip file
  • 29. 29 Lambda Function > Select Upload
  • 30. 30 AWS Lambda – Create role 1. Defining a New Role for the Function 1. The role specifies the AWS resources your function can access. To create a new role while configuring your function: 2. For Role (under Lambda function handler and role), 3. Select Create new role from template(s). 4. Enter the Role Name. 5. From the Policy templates list, select Simple Microservice permissions
  • 31. 31 Configure Function > create role