In order for the Google Assistant to respond to commands appropriate to your device and the given context, the Assistant needs information about your particular device. You provide this information, which includes fields like device type and manufacturer, as a device model. You can think of this model as a general class of device - like a light, speaker, or toy robot.
This information is then accessible to the Google Assistant and is associated with your Google Cloud Platform project. No other projects have access to your model and device information.
Use the registration UI
Use the registration UI in the Actions Console to register a device model.
Open the Actions Console. You may already have this tab open from the previous step.
Select the Device registration tab (under ADVANCED OPTIONS) from the left navbar for your project.
Click the REGISTER MODEL button.
Fill out all of the fields for your device. Select any device type, such as Light.
See the device model JSON reference for more information on these fields.
When you are finished, click REGISTER MODEL.
Download credentials file
credentials.json file must be located on the device. This file contains
a client ID and client secret, but no access token. Later, you will run an
authorization tool and reference this file in order to authorize the Google
Assistant SDK sample to make Google Assistant queries (see the OAuth 2.0
documentation for more information). Do not rename this file.
Download this file and transfer it to the device. Click NEXT.
For the Raspberry Pi only:
Make sure this file is located in
/home/pi. If you want to upload the file
to the device, do the following:
Open a new terminal window. Run the following command in this new terminal:
scp ~/Downloads/credentials.json pi@raspberry-pi-ip-address:/home/pi/
Close this terminal window.
Later, you will specify the different abilities that your device supports on this screen. But for now, click the SKIP button.
Edit the model
If you need to edit the model, click its row in the list. Make sure to click SAVE after any edits.
If you need to download the credentials file again, click the ellipses. You can delete the model from this menu as well.
Alternative ways to register
You must be an Owner or Editor of a given Actions Console project to register models for it. Add these roles for other users in the Cloud Platform Console—see the IAM documentation.