In this lab you will learn the fundamentals of Google Assistant by building a quote generator application with Actions and Dialogflow.
is a personal voice assistant that offers a host of actions and integrations. From sending texts and setting reminders, to ordering coffee and playing your favorite songs, 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.
As you will soon find out, is the central platform for developing Google Assistant applications. Actions work with a number of human-computer interaction suites, which simplifies conversational app development. Out of all the platforms, the most popular is , which uses an underlying machine learning (ML) and natural language understanding (NLU) schema to build rich Assistant applications.
In this lab you will get hands-on practice with Actions and Dialogflow by building an Assistant application that generates quotes when prompted by a user. You will gain practical knowledge of computer-human interaction suites and by the end of this lab, you will have successfully built a fully-fledged Google Assistant application.
What you will Learn
In this lab, you will learn how to:
- Differentiate between the basic components and services that make up an Assistant application.
- Create an Actions project.
- Integrate Dialogflow with an Actions project.
- Build a Dialogflow intent that handles quotation responses.
- Update your Google permission settings.
- Test your application with the Actions simulator.
This is an introductory level lab. This assumes little to no prior experience developing Google Assistant applications. However, basic knowledge of the GCP Console and the Qwiklabs platform is expected. If you are a new GCP or Qwiklabs user, please take the following lab before attempting this one:
Once you're ready, scroll down to get your Actions project set up.
Create an Actions project
Before we start building our quotation generator, let's review the following terms one more time.
Google Assistant is the virtual assistant that's found on smartphones, homes, and a host of other devices. It's the application that takes in voice commands and completes tasks based on user input.
Actions on Google is the developer platform that allows you to build applications for Google Assistant. This is going to be the central console for conversational application development.
Let's take our first step by building an Actions project.
Open a new tab in your browser and go to the . Then sign in with your Qwiklabs credentials. Once you are signed in, you should be looking at a clean Actions console, which should resemble the following:
Click Add/import project and agree to Actions on Google's terms of service when prompted. Then click into the project field and select your Qwiklabs GCP project ID. Then click IMPORT PROJECT:
Soon after you will be presented with a welcome page that resembles the following:
Now click on Actions on Google in the top left corner to return to the homepage. Then click on the project you just created (title has your GCP Project ID as the name.)
Set up Dialogflow
From the left-hand menu click Build > Actions > ADD YOUR FIRST ACTION. Then select Custom Intent > BUILD:
This will take you to the Dialogflow console.
Select your Qwiklabs account and click Allow when Dialogflow prompts you for permission to access your Google Account.
When you land on the Dialogflow page, check the box next to Yes, I have read and accept the agreement and click Accept:
You will then be brought to the Dialogflow agent page. Click CREATE in the top right corner.
In the last few steps you were introduced to some new terms. Let's take a moment to review them: