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 Actions Console 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.
Select the project you created previously from the menu near the top of the screen.
Select the Connected properties tab from the left navbar.
Select the DEVICE MODELS tab.
Click the REGISTER MODEL button.
Fill out all of the fields for your device.
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. 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. 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.
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.