[2024]Digital Global Overview Report 2024 Meltwater.pdf
How to Create a Custom Skill
1. Create a Custom Skill
on the Amazon Echo
Emily Lam, DeveloperWeek 2/13/2017
2. About Me
u Emily Lam
u UCLA: Linguistics and specialization in Computing
u Currently: Frontend developer at Lieberman Software
u Skills published: 4
u Hackathons won using Alexa: 3
u Money 20/20 WorldPay
u 2nd Mojio Connected Car
u 1st GA + IBM Watson Workspace
Twitter: @hongily
https://liebsoft.com
3. Agenda
u 1. Walk you through how to create a basic trivia skill
u 2. Discuss In-depth Topics
u Built-in and Custom slots
u Account linking
u SSML Tags
4. Sign into https://developer.amazon.com/
This is the same account that you use to sign into www.amazon.com. Don’t have an Amazon account? You can create one
after you click “Sign In”.
https://developer.amazon.com/
9. Skills Information
u Skill Type
u Custom Interaction Model: Gives you the most control over the user’s experience
and is the most flexible kind of skill you can build.
u Smart Home Skill API: Great for building a skill with smart home devices
u Flash Briefing Skill API: Easy for creating flash briefings/RSS feed
u Language
u You can choose English (U.S.), English (U.K.), or German
https://developer.amazon.com/
10. Skills Information
u Name
u Appears as the title in the Alexa app. Ex. Morning Dose App Name
u Must be between 2-50 characters.
u Invocation Name
u The name you use to tell Alexa to open the skill. Ex. Morning Dose. See
Invocation Guidelines.
u Global Fields
u Audio Player for music related skills ie. Spotify
https://developer.amazon.com/
11. Interaction Model
u Intent Schema: A JSON structure which declares the set of intents your service
can accept and process.
https://developer.amazon.com/
12. Interaction Model
u Intent Schema: A JSON structure which declares the set of intents your service
can accept and process.
https://developer.amazon.com/
u https://github.com/alexa/skill-sample-nodejs-trivia/tree/master/
speechAssets
13. Interaction Model
u Custom Slots: Custom slot types to be referenced by the Intent Schema and
Sample Utterances
u Sample Utterances: What you say to Alexa to trigger an intent
https://developer.amazon.com/
16. Sign In or Create an AWS Account
https://aws.amazon.com/
17. Select US East (N. Virginia) for US skills and EU (Ireland) for UK/DE skills
These are the only two regions currently supported for Alexa skill development on AWS Lambda
https://aws.amazon.com/
18. Type in Lambda and select the Lambda option
https://aws.amazon.com/
44. Built-in Slots and Custom Slots
Slots are arguments for intents.
A built-in slot type such as AMAZON.NUMBER converts numeric words (“five”) into
digits (such as “5”).
You can view all the built-in slots at:
https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/
built-in-intent-ref/slot-type-reference
A custom slot type is used for items that are not covered by Amazon’s built-in set
of types.
45. Built-in Slots and Custom Slots
"intents": [
{
"intent": "ReportIntent",
"slots": [
{
"name": "Incident",
"type": "LIST_OF_INCIDENTS"
}]
}
You define the slot type in the Intent Schema.
55. Account linking
A privacy policy is required for account linking. You also have to
disclose if you are collect users' personal information (ie email,
password, etc)
56. SSML Tags
Speech Synthesis Markup Language provides additional control over how Alexa
generates the speech text in your response.
Examples:
<say-as interpret-as="cardinal">12345</say-as> sounds like twelve thousand
three hundred forty five
<say-as interpret-as=”ordinal">12345</say-as> sounds like twelve thousand
three hundred forty fifth
<say-as interpret-as="spell-out">12345</say-as> sounds like one two three
four five
Reference:
https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/
speech-synthesis-markup-language-ssml-reference#supported-ssml-tags
57. SSML Tags
Speech Synthesis Markup Language provides additional control over how Alexa
generates the speech text in your response.
Examples:
<say-as interpret-as="cardinal">12345</say-as> sounds like twelve thousand
three hundred forty five
<say-as interpret-as=”ordinal">12345</say-as> sounds like twelve thousand
three hundred forty fifth
<say-as interpret-as="spell-out">12345</say-as> sounds like one two three
four five
Reference:
https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/
speech-synthesis-markup-language-ssml-reference#supported-ssml-tags