Ron Swanson is an example of a quote skill for the Amazon Alexa service. I began the project using npm
, yo
, and generator-alexa-skill
:
$ npm install -g yo generator-alexa-skill
$ mkdir ron-swanson-alexa-skill
$ cd !$
$ yo alexa-skill
This generates a skeleton Alexa skill, with npm scripts for running tests, packaging and deploying to AWS Lambda.
I call James Sean Wright's Ron Swanson Quote API to retrieve a single quote, sprinkle in a bit of conversation using inline SSML markup and finally return it to Alexa.
To deploy the skill to AWS Lambda, I simply:
$ npm run deploy
Thanks to James Sean Wright.
Comments