See Introduction to the Google Assistant Library. It explains step by step how to run the Google Assistant on a Raspberry Pi.
Enable the required API
gcloud --project ${GCP_PROJECT} services enable embeddedassistant.googleapis.com
Requirements:
- Ansible is installed
- The client secret key was created and is stored in the home diretory of the pi user
ansible-playbook google-assistant-on-pi.yml