We are excited to announce that the Alexa Web API for Games (Web API) is now generally available worldwide. With the Web API, you can create visually impressive, animated, multimodal Alexa games using HTML5, Web Audio, CSS, and Javascript. You can even create 3D experiences with WebGL. The Web API is supported on all Echo Show devices and select Fire TVs*. To build experiences for all Alexa devices with screens, you can use Alexa Presentation Language (APL) to create your visuals. Get started today and read our technical documentation for the Alexa Web API for Games or check out our Github sample, My Cactus, a cactus raising simulation game using the Alexa Web API for Games with WebGL to display 3D visuals and animations.
Voice games give customers an entirely new way to play, and with the Alexa Web API for Games, you can build visually rich and interactive experiences to delight players even more. The Web API augments the capabilities of Alexa with the power of the web to help you create rich and satisfying gaming experiences.
Check out the following games built with the Web API to see the experiences in action:
Ryan Jordan, head of LC Publishing and creator of the skill Chess Maven, said, “Alexa offers accessibility like no other voice service can. Being able to expand upon the voice interface by adding a draggable chess board and dynamic visuals enhances and underscores the immersive experience I want to build for customers. With the Alexa Web API for Games, I was able to leverage modern front-end design and WebSockets to create an adaptive and rich experience that allows users to control the chess board however they choose.”
Jess Thornhill, Head of UX at Volley, said, “We are really excited to be using HTML5 to relaunch Song Quiz, because we think it's going to completely change the visual experience for users. We noticed more and more users were interacting with Song Quiz on devices with screens, and we want the visual experience to be as engaging and lively as the audio experience. HTML5 is making that possible. We can use a combination of Adobe Photoshop, After Effects, and Alexa SDK to completely transform the visual experience. We are excited to use HTML5 for all our games.”
You should use the Web API if you want to build web-based games that users can play on Alexa devices and utilize features that are not available in APL.
Using the Web API, you can connect your Alexa skill to a web application that provides the HTML, CSS and JavaScript for the game. To get started, follow the steps below.
To see the backend Alexa skill and the frontend web application logic together, you can check out our sample code on Github.
Get started today and learn more here. We can’t wait to see what types of games you build! Please reach out to the Product Manager, Arun, @aruntalkstech, or myself @JoeMoCode on Twitter if you have any questions.
*The Alexa Web API for Games is supported on Fire TV Stick 4K, Fire TV with 4K Ultra HD and Alexa Voice Remote, and Fire TV Cube.