Inspiration
Alexa loves to play tag!
What it does
To start playing, just say "Alexa, Tag! You're It!" ... no tag backs!
How I built it
The "Tag! You're It!" skill is a fun way for everyone to interact with Alexa using a phrase from a very popular playground game. The purpose of the skill is to engage new users with a well known and easy to remember phrase, so they can get comfortable exploring and interacting with Alexa in a very simple, fun, and engaging manner.
The skill was updated for the Alexa Kids Challenge to incorporate a dynamic range of new features called interjections. Every time a user says "Alexa, Tag! You're It!", she responds with a random interjection from an array. Each response is unique and demonstrates to the user a broad range of Alexa's personality and emotion.
<say-as interpret-as="interjection">cowabunga</say-as><break time=\"0.2s\"/> you\'re it!
Similar to the playground rules, the game ends when you say "no tag backs"!
Accomplishments that I'm proud of
The skill was also updated to return an image card to the Alexa app or the screen of an Echo Show. To add the image card, I updated the code to include the following variables with the text to be displayed.
var cardContent = 'Just say, TAG, or, NO TAG BACKS!';
var cardTitle = 'You\'ve Been Tagged!!';
For the images, two different sized PNG files are required. I used S3 to store these files and configured the bucket so it could be accessible by the skill.
var imageObj = { smallImageUrl: 'https://s3.amazonaws.com/bucket-name/image-small.png', largeImageUrl: 'https://s3.amazonaws.com/bucket-name/image-large.png' };
Once the variables were defined and images stored properly in S3, the output was updated to include the information to include on the image card.
const speechOutput = this.t('GET_MESSAGE') + randomInterjection;
this.emit(':tellWithCard', speechOutput, cardTitle, cardContent, imageObj);
What's next for Tag! You're It?
The next steps for "Tag! You're It" is to leverage the notifications API and "tag" your friend's Alexa. When you "tag" another user's Alexa, they would see an indicator that they're "it".
Built With
- alexa-skills-kit
- amazon-web-services
- aws-lambda
- ssml

Log in or sign up for Devpost to join the conversation.