- AWS LAMBDA
- AWS S3
- Amazon Developer Portal
- XML RSS 2.0 Specs
- Alexa Skill Metadata
- Alexa Built-in Intents
- Alexa Voice Service
- Alexa SDK Node Modules
- Tips for Skill Certification
This is the complete project of building flash briefing skill and a custom interactive skill for Alexa. The custom interactive skill is also linked to the Alexa mobile app which showing image cards.
- Quick start
- Folder Structure
- Flash Briefing
- Skill Architecture
- Custom Slot
- File Format
- Developer Note
- Creators
- Copyright and license
Amazon Developer Portal is the home of you Alexa skill. This is where you create the skill, manage skill information and information of your Lambda Function. In Alexa development, this service is called Skill Interface.
AWS Lambda is a service to implement your code or function without running on a server. In Alexa developement, this service is called Skill Service
AWS S3 Amazon requires all contents that used in Alexa skill is accessed by HTTPS so S3 is the best solution for the Alexa skill's content cloud storage
Alexa Voice Service (AVS) is Amazon’s intelligent voice recognition and natural language understanding service that allows you as a developer to voice-enable any connected device that has a microphone and speaker.
Adding package.json "npm init"
Adding alexa sdk into your package.json using "npm install --save alexa-sdk"
{
"name": "alexa-unh-dining-skill",
"version": "1.0.0",
"description": "hi there. this is an interactive skills for amazon alexa echo built on node.js 6.10, serviced by AWS Lambda and Amazon Developer Portal. [email protected]",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "yourrepo"
},
"keywords": [
"alexa"
],
"author": "huy le [email protected]",
"license": "ISC",
"dependencies": {
"alexa-sdk": "^1.0.11"
}
}
Running "npm install" to add node_modules
Alexa-Project/
├── skill/
│ ├── intentSchema/
│ │ └── intentSchema.JSON
│ ├── speechAssets/
│ │ ├── budgeting_Tips.txt
│ │ ├── investing_Tips.txt
│ │ └── utterances.txt
│ ├── src/
│ │ └──index.js
└── flash-briefing/
├── speechAssets/
│ └── audio.mp3
└── src/
├── content.json
└── my-audio-content.xml
A Flash Briefing provides a quick overview of news and other content such as comedy, interviews, and lists that a customer discovers and enables in the Skills section of the Alexa app
Alexa Flash Briefing Feeds can be built by XML RSS or JSON. The content of the feeds need to be stored on HTTPS. In this project, I store them on AWS S3.
For this skill, I use XML RSS to implement the news. The XML file need to follow the feed reference of Amazon and W3 XML RSS 2.0.
Amazon Flash Briefing Feed Reference
<item>
<link>https://www.quora.com/</link>
<guid isPermaLink="false">this_is_a_unique_string_when_isPermaLink_false_just_to_make_for_keep_track_of_the_content</guid>
<title>Developer news</title>
<description><p>Latest news for developers on Quora&nbsp;</p></description>
<pubDate>Mon, 17 Jul 2017 21:40:22 +0000</pubDate>
<category>general:products/aws-lambda,marketing:marchitecture/compute,general:products/amazon-cloudfront</category>
<author>[email protected]</author>
</item>
Alexa Skill Flow:
- New Session
- Launch Request (Invoke the skill without intent or data such as Alexa [Invocation Name], ex: Alexa, ask MyMoney)
- Intent Request (Calling the [Invocation Name] with the intent of doing something, ex: Alexa, ask MyMoney for budgeting tips)
- Session Ended Request (Exiting skill)
/speechAssets .txt .mp3
/src Node.js 6.10
/intentSchema JSON
/imageAssets .png .jpg
All content files are hosted on AWS S3 [email protected] in f4m bucket
flash briefing skill is on [email protected] Amazon Developer account, named: beta prototype
src node.js is hosted on AWS Lambda, huy's account.
flash-briefing note: prefer XML format over JSON
Huy Le
Huy Le 2018