This is a dynamic Alexa skill using ruby on lambda.
(This part expects you to have written a skill before. When I have time I will update with full instructions.)
- Setup a new Alexa Skill, Ruby Lambda, and connect them.
- In the lambda change the
rss_urlinsideSiteRssParserclass to the feed you want. - Update
@application_id_checkinside thelambda_handlerwith your skill id. - Add your intents
- If you create a
nextintent in the Alexa developer portal, you need to create anon_nextmethod in your lambda.
- If you create a
- End this on_ method with a
response.- In this lambda I only used speak_text, so I not sure if the other methods work.
response.speak_text("see ya!")will have Alexa say "see ya!" and end the skill.response.speak_text("keep going?", false)will have Alexa say "keep going?" and keep the skill open.response.speak_text("see ya!", false, {'step': 5})will have Alexa act the same as the previous and add 'step': 5 to the session attribute- You can retrieve this attribute by using
@session_attributes['step']
- You can retrieve this attribute by using
This is adapted code, check out the original by Ryan Cunningham at https://github.com/rcunning/lambda.rb.
There is a beautiful hello-world-alexa example which will show you how to chain response methods.
- Condensed it into one file and updated the lambda handler.
- Updated the Amazon intents. There are a few necessary intents and now those are included with simple phrases.
- Gave 'speak_text' method 2 optional parameters. First is end session and second is session attribute object. These will be explained in use section.
- Edited class variables
- Added and RSS Parser
This wouldn't have been possible without Ryan's code!