Atonom
DocumentationAPI Reference
Integrations

Google Chat

Create a Google Chat bot in your own Google Cloud project and connect it to an Atonom Cloud Employee.

Connect a Google Chat bot to an Atonom Cloud Employee. You create the Chat app in your own Google Cloud project. Atonom does not publish a bot for you.

One Cloud Employee uses one Google Cloud project. A second bot needs a second project and a second key.

When a conversation closes, Atonom sends the external chat webhook. For Google Chat, provider is googlechat and workspace_id is the project number.


Create the Google Chat bot

  1. Sign in to the Google Cloud Console with a Google Workspace account.
  2. Create a project, or select the project you want to use.
  3. Open Google Chat API and click Enable.
  4. Open the Chat API Configuration page. Google's setup guide is Build a Google Chat app.
  5. Enter the app name, avatar, and description.
  6. Clear Build this Chat app as a Google Workspace add-on. If Google asks you to disable the add-on, confirm it.
  7. Set the connection to HTTP endpoint URL.
  8. Set the HTTP endpoint URL to:
https://app.getsignals.ai/api/chatinator/google-actions
  1. Set Authentication audience to Project number. That choice stays hidden while the add-on box is checked.
  2. Leave Make this Chat app available to specific people and groups unchecked. Leave the email list empty. Access comes from the private Marketplace app in the next sections.
  3. Set App status to Live.
  4. Click Save. Saving this page is required. A service-account key alone cannot send messages.

Create the service account key

Create the service account in the same project as the Chat app.

  1. Open Cloud Resource Manager API and click Enable.
  2. Open IAM & Admin → Service accounts.
  3. Click Create service account. Enter a name.
  4. On the role step, select Browser (roles/browser). Click Continue, then Done.
  5. Open the new service account. Go to Keys → Add key → Create new key.
  6. Choose JSON and download the file.

The JSON file contains 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.

Copy client_email from the JSON file. You assign the admin role to that email in a later section. Do not use the numeric client ID.


Do this once in the same Cloud project, before the Marketplace SDK page. If the project already has an OAuth consent screen, skip this section.

Add no scopes. People do not see a permission popup for this bot.

  1. Open Google Auth platform.
  2. If you see Get started, click it.
  3. Enter an app name and a user support email. Click Next.
  4. Set the audience to Internal. Click Next.
  5. Enter a contact email. Agree to the user data policy. Click Continue.
  6. Leave Data Access empty. Do not add a scope.

Publish the app to your organization

Publish the Chat app as a private Google Workspace Marketplace app. Private means only people in your Workspace can install it.

  1. Open Google Workspace Marketplace SDK and click Enable. Enable the SDK, not the Marketplace API.
  2. Open APIs & Services → Enabled APIs & services → Google Workspace Marketplace SDK → App Configuration.
  3. Set App visibility to Private.
  4. Set Installation to Individual + Admin Install.
  5. Under App integrations, select Chat app.
  6. Leave OAuth scopes empty.
  7. Enter the developer name, website, and email. Click Save Draft.
  8. Open the Store Listing tab. Enter the app name, short description, detailed description, and category.
  9. Add icons at 32×32 and 128×128 pixels, a card banner at 220×140 pixels, and one screenshot. Any image is fine. This app stays inside your organization, so do not spend time on the picture or its quality.
  10. Add URLs for the terms of service, privacy policy, and support page. Use your own pages. If you do not have one of those pages, use https://getsignals.ai/privacy-policy for that field. You can use that same URL for all three fields.
  11. Click Submit For Review. A private app is published right away. Google does not review it.

Install the app for everyone

A super admin installs the published app.

  1. Open the Google Admin console as a super admin.
  2. Go to Apps → Google Workspace Marketplace apps.
  3. Click Install app.
  4. Open Internal apps and select this Chat app.
  5. Click Admin install. Install it for everyone in the organization.

Let the service account read a user from an email

The service account reads a user's id from an email address and opens that user's direct message. Do this in the Google Admin console, not in the Google Cloud console. Do not turn on domain-wide delegation.

Create the custom role

  1. In the same Cloud project, open Admin SDK API and click Enable.
  2. Open the Google Admin console as a super admin.
  3. Go to Account → Admin roles.
  4. Click Create new role.
  5. Enter a name, such as Workspace user read-only. Click Continue.
  6. Open Admin API privileges. Select only these two:
    • Users → Read
    • Organizational units → Read
  7. Leave Create, Update, and Delete unchecked. Click Continue, then create the role.

Assign the role to the service account

  1. On Account → Admin roles, point to the new role and click Assign admin.
  2. Click Assign service accounts.
  3. Enter the service account email. This is client_email in the JSON key.
  4. Click Add, then Assign role.
  5. Leave the role on the whole organization. Do not limit it to one organizational unit.

If the organization uses multi-party approval, a second super admin must approve this assignment. The change usually applies within a few minutes. It can take up to 24 hours.


  1. In Atonom, open the Cloud Employee channel settings.
  2. Open the external chat channel.
  3. Choose Google Chat.
  4. Paste the full JSON key and save.

After the admin install, Google already has a direct message with each user. Atonom can send the first message there. To use the bot in a group space, add the bot to that space.

A direct message does not need an @mention. In a space, the bot receives a message when someone @mentions it. Other space messages are not sent to this endpoint.

To replace the key, paste the new JSON file and save again. The same Cloud Employee keeps one Google Chat connection. A key from a different project replaces the project number on that connection.

On this page