Alexa Blogs

Alexa Blogs

Want the latest?

alexa topics

Recent Posts

Archive

Showing posts tagged with Community Spotlight

June 10, 2016

Zoey Collier

Experienced Alexa developer Eric Olson (Galactoise in the Amazon developer forums) had a mission to determine whether or not you could really create a custom skill from scratch within 24 hours. Eric did it in less than 12—and did it well—on a weighted, random-number-generator skill called DiceBot that he developed using Alexa Skills Kit (ASK) and a Lambda proxy.

By day Eric is an engineer for Disney, but he and his friends at DERP Group also build things on their own for fun and profit. The dice-rolling DiceBot is their third Alexa skill, and Eric shares his experience about the process in this informative blog post. His vision was:

  • DiceBot would skew fairly evenly, instead of clustering on specific numbers.
  • The randomness would be based on subtle differences in speech patterns, so that players could roll the dice loaded or roll them fair without anyone being the wiser.

In DiceBot, you can invoke a different intent by changing the invocation phrase. For example, by prepending the word “me” to your dice-set description, you can tip DiceBot off to weight things a bit differently:

  • Fair: “Alexa, ask DiceBot to roll a 20-sided die.”
  • Weighted: “Alexa, ask DiceBot to roll me a 20-sided die.”

You can also append “for me” to the end of the dice set description to weight the rolls downward:

  • Fair: “Alexa, ask DiceBot to roll a 20-sided die.”
  • Weighted: “Alexa, ask DiceBot to roll a 20-sided die for me.”

Read more about Eric's experience building DiceBot and give it a try yourself. Simply enable the Dicebot skill in the Alexa app and say one of these:

  • “Alexa, launch DiceBot.”
  • “Alexa, tell DiceBot to roll me five dice.”
  • “Alexa, ask DiceBot to roll 3 d 20 for me.”

Share other innovative ways you’re using Alexa in your life. Tweet us @alexadevs with hashtag #AlexaDevStory.

Get Started with Alexa Skills Kit

Are you ready to build your first (or next) Alexa skill? Build a custom skill or use one of our easy tutorials to get started quickly.

Want the latest?

alexa topics

Recent Posts

Archive