Important: The Gadgets Skill API is in beta and is subject to change at any time without notice. We welcome your feedback.
This Alexa sample skill is a template for a trivia game which is played with Echo Buttons in multiplayer mode but can also be played without buttons in single player mode. Provided a list of interesting questions about a topic, Alexa will select a group of questions to ask the player(s), keep score throughout, and announce the winner at the end of the game.
This sample skill demonstrates how to discover Echo Buttons using roll call, how to receive Echo Button events, and how to animate the Echo Button lights.
You may use this sample game as a starting point to build your own 'Better with Buttons' trivia game. You can customize Alexa's voice responses, the question list, and some game options without making changes to the code. However, to provide a truely unique game experience code changes will likely be necessary.
This guide assumes you have your developer environment ready to go and that you have some familiarity with CLI (Command Line Interface) Tools, AWS, and the ASK Developer Portal.
- Node.js (> v8)
- Register for an AWS Account
- Register for an Amazon Developer Account
Or click here for instructions using the ASK CLI (command line interface).
- Amazon Developer Forums - Join the conversation!
- Hackster.io - See what others are building with Alexa.
- Voice Design Guide - A great resource for learning conversational and voice user interface design.
- Codecademy: Learn Alexa - Learn how to build an Alexa Skill from within your browser with this beginner friendly tutorial on Codecademy!
- Echo Buttons Color Changer Sample Skill - A simpler skill that shows how to do roll call and control light animations for Echo Buttons.
- Official Alexa Skills Kit Node.js SDK - The Official Node.js SDK Documentation
- Official Alexa Skills Kit Documentation - Official Alexa Skills Kit Documentation
- Official Alexa Gadgets Documentation - The Echo Buttons are the first Alexa Gadget