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
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.
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.
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.
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.
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
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.
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.
You may want to turn on Location History and YouTube History as well.
Text editor powered by tinymce.