
Click the trash cans, and delete all of those prebaked responses. If you mouse over the responses that you see above, a little trash can will appear on the line. For instance, when the user says “Hey, Google, open the happy birthday mad lib,” the agent knows to kick off the default welcome intent, which introduces your game to the person speaking to the Google Home device.Ĭlick on “Default welcome intent,” scroll to the bottom, and you should see the screen below: The default welcome intent ( View large version) (For now, you can ignore the default fallback intent.) The default welcome intent is what fires when your action is invoked through the Google Home device. Let’s now focus on the default welcome intent. Our last step in this section is to create the final response - the mad lib! Step 3: Default Welcome Intent We will now create a welcome intent to introduce the Google action and an intent to gather the words in our mad lib. Working with intents ( View large version) You should see a screen like the one below. This is another area in which API.AI and Alexa’s skill-building forms differ greatly: API.AI has a tool specific to creating these intents, whereas Amazon requires you to load a raw intent schema.


Leave the agent type as “public,” add a description if you want, and click “Save.” A new HappyBirthdayMadLib agent ( View large version) IntentsĪn intent allows users to say what they want to do and lets the system figure out what activity matches what was said. You can’t have any spaces in the name, so let’s call the agent HappyBirthdayMadLib. For this tutorial, our agent represents a conversation to gather words for a happy-birthday mad lib. An API.AI agent represents a conversational interface for your application, device or bot. The first thing you need to do is name your agent. Click “Create agent,” and let’s get started! Home screen of API.AI ( View large version) Step 2: Name Your Agent Once signed in, you should see an interface similar to what’s below. Go to API.AI and click “Sign up free.” I signed in with Google because I always have Gmail open.

Note: If you have a Google Home, make sure the API.AI account is the same Google account logged into that device! Otherwise, you won’t be able to test it on the actual hardware. To start off, we will create an API.AI account, create a new agent (which will eventually be our Google Action) and give it a name.
HOME ACTIONS SOFTWARE
For this tutorial, we will primarily use this software to create a Google action. The other notable aspect is that you can do a lot more with API.AI outside of Google actions. It also has a lot more built-in power than Alexa’s development portal. There is a short learning curve with API.AI, and the interface takes a little getting used to, but it works pretty well. Google requires you to use this platform to create your action. Google, on the other hand, bought API.AI in September 2016, right before it released Home. Amazon has a barebones web form that it has built specific to Alexa skills. One notable difference between developing skills for Alexa and actions for Google Home is the software you use to set up the actual product.

Below, I’ve detailed steps to build a custom mad lib action, and I’ve explained why certain steps are important and ultimately how they fit into the voice services world.
HOME ACTIONS HOW TO
I’ll use this game to show you how to build your own action for Google Home. Mad Libs is a game in which one player prompts others for a list of words to substitute for blanks in a story, before reading the - often comical or nonsensical - story aloud. If you have a Google Home, you may have played with its prebuilt mad libs. I checked it out and found that creating and deploying a basic Google action is extremely simple. Now that Google Home is out in the market, Google has its own platform for you to build custom interactions, similar to skills, called “ actions”. I’ve really enjoyed learning how to build my own skills for Alexa. For the Amazon Echo, you can create what are called “skills”, which allow you to build custom interactions when speaking to the device. I already have the Amazon Echo, and as Director of Technology at thirteen23, I love tinkering with software for new products. If you don’t already know, Google Home is a voice-activated speaker powered by Google Assistant and is a competing product to Amazon’s line of Alexa products. For the holidays, the owner of (and my boss at) thirteen23 gave each employee a Google Home device.
