We will need to configure a new Google project and set up everything before we move over the the Raspberry Pi.

Project Creation

First, you'll need to configure a new Actions Console project.

Start by going to https://console.actions.google.com/ and clicking New Project

Enter a Project name such as Google Assistant BrainCraft and click on Create Project

At the bottom of the page, click on the link to go to Device Registration.

Device Registration

If you have accidentally closed the window, you can get to Device Registration by going back to the Actions Console and Selecting your project. After that, click on the Develop tab, the 3-Bar Menu in the upper left, and the Device registration menu item.

At the device registration, click the Register Model button.

Take note of your Model ID in this next step. You will need this in a later step.

Fill in the fields with the requested information. For device type, choose Speaker. Make note of your Model ID and save it in a safe place. Click the Register Model Button.

If you forgot to copy your Model ID, don't worry. This guide will show you how to retrieve it when you need it.

Click Download OAuth 2.0 Credentials and save the JSON file and put it in a safe place such as your Desktop. Save the file as client-secret.json. You will upload this to your Raspberry Pi in a later step. Click Next.

Under Traits, click All 7 traits and then click Save Traits

Google Assistant API Setup

Go to the Google Developers Console to enable the API at https://console.developers.google.com/apis/api/embeddedassistant.googleapis.com/overview

Before clicking the button, we need to select the project we created in the first step. By default, the incorrect project is selected.

Click on the project selector at the top.

This opens a dialog box of projects. If the project you created in the first step is not listed here, click inside the search box at the top.

Start typing the name of the project in the search box and click on the result that comes up. Click Open.

Now that the correct project is selected, we want to enable the Google API for this project. Click on the Enable button.

Once it is enabled, you will be taken to the Overview Screen. Click on the Credentials tab on the left and then click the Configure Consent Screen button on the right.

For User Type, select External and Click Create

Enter an Application Name. This is the name that will appear on the permissions screen.

Select a Support Email. This is the email that will appear when you click on the Application name on the permissions screen.

You may need to add another Email Address under Developer contact information near the bottom of the form.

Scroll to the bottom and Click Save and Continue

Add Test Users

Next you'll need to add yourself as a test user to your app or you will get an Access Denied error when you try to authorize your credentials.

Type in the email addresses of any of your Google Accounts that you will be using to authorize the app. Then click Save.

Enabling Permissions

Go to Activity Controls at https://myaccount.google.com/activitycontrols

Make sure Web & App Activity is on.

Also make sure to select the Include Chrome history and activity from sites, apps, and devices that use Google services checkbox.

An additional dialog may pop up asking you to confirm. Click the Turn on button.

You may want to turn on Location History and YouTube History as well.

This guide was first published on Oct 21, 2020. It was last updated on Oct 21, 2020.

This page (Google Setup) was last updated on Oct 12, 2020.

Text editor powered by tinymce.