/social-media-alexa-skill

An Alexa skill for the Amazon Echo – it reads trending topics from Social Media.

Primary LanguageJavaScriptMIT LicenseMIT

Social Media Alexa Skill

An Alexa skill for the Amazon Echo – it reads trending topics from Social Media. Generated by generator-alexa-skill.

Example phrases

Alexa, ask Social Media what's trending
Alexa, ask Social Media what's trending on Twitter
Alexa, ask Social Media what's trending in San Francisco

See model/UTTERANCES for more example phrases.

Development

Setup

You must add a file config/twitter.config.js which exports an object containing your API keys for the Twitter API.

export default {
  consumerKey: '',
  consumerSecret: '',
  accessToken: '',
  accessTokenSecret: ''
}

Test

npm test

Package

npm run package

This creates build/package.zip containing the compiled skill - this can be uploaded directly to AWS Lambda. It exposes a single function index.hander. Skill utterances defined in the model directory are expanded and output to build/UTTERANCES.

Deploy

npm run deploy

If you configure the project with AWS credentials then you can build, test, package and deploy the project with a single command. You can check it out in the AWS console.