Create Your First Google Action For Google Home And Google Assistant

In this article, we are going to create a Google Action. If you are familiar with Amazon Echo, Alexa, or you’ve heard about Amazon Skills, this is kind of similar to the technology developed by Google. The virtual assistants are powered by Google Home or Google Mini, as well as, the Google Assistant App.

As a third party developer, we can add the functionality to these devices by creating a Google Action which is similar to Alexa Skills or apps on the App Store.

How Google Action Works
 
Google Action is a platform using which developers can create apps or software to broaden the functionality of the Google Assistant, that works with your phones, TVs, smart speakers, and cars etc.
Google Action
 
As explained in the above figure, when a user requests something to Google Home, it takes that dialog as a command and invokes the best app from Google Action and responds back to the Google Home or Google Assistant.
 
Let's create a Flash Card action using templates to build a Scrum Quiz game and test it using Google Assistant and Google Home.
 
Prerequisites
  • A Google account or developer account.
  • Google Assistant App
  • Google Home Device (Optional for testing) 
Step 1
 
Go to Google and search for Action on Google.

Create Your First Google Action For Your Google Home And Google Assistant

Once you find the developers.google.com/actions, (Register if you don't have an account,) go ahead and click on "Go to Action Console". 

Create Your First Google Action For Your Google Home And Google Assistant 

Step 2

From the console dashboard, click on "Add/Import project" to create a new project.
 
Create Your First Google Action For Your Google Home And Google Assistant
 
Step 3
 
From the popup window, enter the project name, select the language you want the action to support, and click on "Create Project".
 
Create Your First Google Action For Your Google Home And Google Assistant 
 
Step 4
 
From the "More Options", select Templates.
 
Create Your First Google Action For Your Google Home And Google Assistant
Create Your First Google Action For Your Google Home And Google Assistant 
 
Step 5
 
From the Templates selection, select Flash Cards. It will take you on the "Setup & Overview" page where you can enter the action information.
 
Create Your First Google Action For Your Google Home And Google Assistant

Step 6 

From the Quick Setup, click on "Decide how your action is invoked".
 
Create Your First Google Action For Your Google Home And Google Assistant
 
 Create Your First Google Action For Your Google Home And Google Assistant
 
Set up the display name, select the voice for your Google Assistant.
 
Create Your First Google Action For Your Google Home And Google Assistant
 
From the Personality selection, select one of the available voice personalities.
 
Create Your First Google Action For Your Google Home And Google Assistant
 
From the Content selection, click on the "bulk upload" option.
 
Create Your First Google Action For Your Google Home And Google Assistant 
 
You can see the prompt to upload the Google Sheets data.
 
Create Your First Google Action For Your Google Home And Google Assistant 
Click on "Make a copy of the pre-filled Google Sheet for editing" link, then click on "Make a copy".
 
Create Your First Google Action For Your Google Home And Google Assistant 
 
In the given Google Sheet, update your questions and answers with the Hint and Follow-ups fields that give the user extra information about the correct answer.
 
Here, I have added Agile Scrum related basic questions and answers followed by hints and follow-ups.
 
Create Your First Google Action For Your Google Home And Google Assistant
 
From the 2nd tab in the Google Sheet, you can configure the key and value, like Title, No. of Questions, Question Title etc.
 
Create Your First Google Action For Your Google Home And Google Assistant 
 
Once you are done filling the sheet, go ahead and copy paste the Google Sheet link, and click on Upload.
 
Create Your First Google Action For Your Google Home And Google Assistant
 
Once your upload has been done, click on "Create App".
 
Create Your First Google Action For Your Google Home And Google Assistant
Create Your First Google Action For Your Google Home And Google Assistant
 
That's it. Now, you can create your application by clicking on "Test Action".
 
Create Your First Google Action For Your Google Home And Google Assistant 
 
You can invoke your action by asking the Trigger Phrase 'Ok Google' or 'Hey Google' talk to' 'App Name' as per the picture below.
 
Google Action 
 
From the simulator, you can test your app. Here, I have asked 'Ok Google, talk to Mr. Scrum'.
 
Create Your First Google Action For Your Google Home And Google Assistant
 
It invokes the action we have created and randomly asks the questions which we have uploaded from the Google Sheet.
 
Create Your First Google Action For Your Google Home And Google Assistant 
 
Create Your First Google Action For Your Google Home And Google Assistant
 
Once you give the answer, it will check the answer and give you feedback about whether it's correct or not, and do you want a hint.
 
Create Your First Google Action For Your Google Home And Google Assistant 
 
That's it. Google Assistant is now in Hindi also. You can activate it from the Google Assistant App Settings tab, as shown in the below screen.
 
 Create Your First Google Action For Your Google Home And Google Assistant
 
I hope you like this article, please leave a comment & feedback in the comment box.


Similar Articles