Amazon Alexa is Amazon’s cloud-based voice service and the brain behind tens of millions of devices enabling new customer experiences across many devices at home, work, in the car, and on the go. As a developer, you can build capabilities, or skills, that make Alexa smarter and make everyday tasks faster, easier, and more delightful for customers to fundamentally improve the way people will interact with technology.
In this workshop you will learn how to build your first voice skill with Amazon Alexa. We will cover how to build an Alexa skill, utilise AWS services such as AWS Lambda and Amazon DynamoDB, mimic human behaviour with your Alexa skill, and test and publish a skill. You’ll also walk out of the workshop with tips on how to make your Alexa skill more engaging to customers with voice user design best practices.
This workshop requires a laptop and administrative access to your own AWS account.
62. Set and get persistent attributes for long term memory
MyColourIntent
• colour : blue
“I heard you like blue!”
{colour: ”blue”}
AMAZON
.StopIntent
{colour: ”blue”}
“Goodbye”
{colour: ”blue”}
WhatIsMyColour
Intent
“Your colour is blue”
{colour: ”blue”}
81. Fresh content
“Alexa, Stop”
Boring:
“Good bye.”
Add Variety:
“Catch you next time”
“See you on the flip
side”
"AMAZON.StopIntent": function () {
var speechText = getRandomGoodbyeMessage();
this.response.speak(speechText);
this.emit(":responseReady");
},
function getRandomGoodbyeMessage()
{
var messages = ["Goodbye!",
"Buh bye!",
"See you on the flip side!",
"Have fun storming the castle!",
"See you later alligator!",
"Catch you next time!",
"After while, crocodile!"];
var random = getRandom(0, messages.length-1);
return messages[random];
}