provider is googlechat and workspace_id is the project number.
Create the Google Chat bot
- Sign in to the Google Cloud Console with a Google Workspace account.
- Create a project, or select the project you want to use.
- Open Google Chat API and click Enable.
- Open the Chat API Configuration page. Google’s setup guide is Build a Google Chat app.
- Enter the app name, avatar, and description.
- Clear Build this Chat app as a Google Workspace add-on. If Google asks you to disable the add-on, confirm it.
- Set the connection to HTTP endpoint URL.
- Set the HTTP endpoint URL to:
- Set Authentication audience to Project number. That choice stays hidden while the add-on box is checked.
- Set visibility to the people who should install and use the bot. Google allows up to five individual email addresses, or one or more Google Groups.
- Click Save. Saving this page is required. A service-account key alone cannot send messages.
Use the same URL for every Cloud Employee. Atonom tells tenants apart by the project number in Google’s request, which is why the audience must be Project number.
Optional: add more than five people
Google allows five individual email addresses on the visibility list. To include more people, create one Google Group and add that group’s email. The five-person limit does not apply to members of the group. Create the group in the Admin console. A group created only at groups.google.com cannot be used for Chat visibility.- Open the Google Admin console as a Groups admin.
- Go to Directory → Groups.
- Click Create group.
- Enter a name and a group email, such as
chat-bot@yourdomain.com. Click Next. - Leave Security unchecked. Click Next.
- Choose an access type, such as Team. Click Next, then Create group.
- Open the group, click Add members, and add the people who should use the bot. They must be in the same Workspace.
- On the Chat API Configuration page, paste that group email into Visibility and click Save.
Create the service account key
Create the service account in the same project as the Chat app.- Open Cloud Resource Manager API and click Enable.
- Open IAM & Admin → Service accounts.
- Click Create service account. Enter a name.
- On the role step, select Browser (
roles/browser). Click Continue, then Done. - Open the new service account. Go to Keys → Add key → Create new key.
- Choose JSON and download the file.
project_id, private_key, and client_email. It does not contain the project number. Atonom uses the Browser role to read that number when you save the key. The bot does not need any other project role to send messages.
Link the bot to a Cloud Employee
- In Atonom, open the Cloud Employee channel settings.
- Open the external chat channel.
- Choose Google Chat.
- Paste the full JSON key and save.

