In this lab you will learn how to customize an Assistant template by building a flash card application with Cloud Storage and the Cloud Translation API.


Google Assistant is a personal voice assistant that offers a host of actions and integrations. From sending texts and setting reminders, to ordering coffee and playing music, the 1 million+ actions available suit a wide range of voice command needs. Google Assistant is offered on Android and iOS, but it can even be integrated with other devices like smartwatches, Google Homes, and Android TVs.
Actions templates allow you to build Google Assistant applications like trivia games or flashcard generators without writing a single line of code. You can integrate Speech Synthesis Markup Language (SSML) to give your application more character and make responses seem more life-like. Google Assistant has also added multilingual capabilities, which allows you to expand your application to a much a wider audience.
In this lab, you will build a trivia Assistant application from an Actions template that utilizes SSML responses and multilingual capabilities. This will give your Assistant application unique sound effects and an option to be used in another language. You will add these features by leveraging GCP services like Cloud Storage and the Cloud Translation API and by the end you will have built a robust Assistant application.

What you will Learn

In this lab, you will learn how to:
  • Build an Assistant application with the flash cards template.
  • Host custom MP3 files in Google Cloud Storage and integrate them with your Assistant application.
  • Generate flash card questions and answers in different languages with the Cloud Translation API and add them to your template.
  • Test your application and the features you added with the Actions simulator.


This is a fundamental level lab. Familiarity with the Actions Console and the Qwiklabs platform is expected. Experience with Cloud Storage and the Cloud Translation API may be helpful, but is not required. If you need to get up to speed with the lab's requirements, please complete one of the following Qwiklabs:
Since this lab works with MP3 files, having a pair of headphones or turning the volume up on your computer is recommended. Once you're ready, scroll down and follow the steps below to get your lab environment set up.


Google Cloud Platform Console
How to start your lab and sign in to the Console

  1. Click the Start Lab button. If you need to pay for the lab, a pop-up opens for you to select your payment method. On the left is a panel populated with the temporary credentials that you must use for this lab.

  1. Copy the username, and then click Open Google Console. The lab spins up resources, and then opens another tab that shows the Choose an account page.
  1. Tip: Open the tabs in separate windows, side-by-side.
  1. On the Choose an account page, click Use Another Account

  1. The Sign in page opens. Paste the username that you copied from the Connection Details panel. Then copy and paste the password.
  1. Important: You must use the credentials from the Connection Details panel. Do not use your Qwiklabs credentials. If you have your own GCP account, do not use it for this lab (avoids incurring charges).
  1. Click through the subsequent pages:
  • Accept the terms and conditions.
  • Do not add recovery options or two-factor authentication (because this is a temporary account).
  • Do not sign up for free trials.
After a few moments, the GCP console opens in this tab.

Create an Actions project

Regardless of the Assistant application you're building, you will always have to create an Actions project so your app has an underlying organizational unit.
Open a new tab in your browser and go to the Actions on Google Developer Console. Then sign in with your Qwiklabs credentials if prompted. Once you are signed in, you should be looking at a clean Actions console, which should resemble the following: