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.

If you still have the window open, click the Register Model button

Fill in the fields with the requested information. For device type, choose Speaker. Click the Register Model Button.

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.

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 Nov 06, 2020.