Skip to main content
Google Chat is available only for organizations enabled by Serval. Message the Serval app directly, or mention it in a space. Direct messages do not require the optional space subscription described below. Google’s ordinary app message triggers include DMs and app mentions. Google message triggers

Connect your Workspace

Open Integrations → Google Chat → Connect in the Serval workspace you want to connect. Each workspace has its own Google Chat connection and can authorize a different Google Workspace, including a sandbox Workspace. You do not need to connect the separate Google Workspace integration first. New connections authenticate with a Google Cloud service account that has domain-wide delegation for read-only Directory access. The connection authorizes Directory identity and recipient checks. Chat messages still use the Serval Chat app and its operator-managed bot configuration; the service account doesn’t create or replace that Chat app.
  1. In your Google Cloud project, enable the Admin SDK API and create a service account with a JSON key. Keep that key private.
  2. As a Workspace super administrator, open Security → Access and data control → API controls → Manage domain-wide delegation in Google Admin. Authorize the service account’s numeric client ID for exactly these scopes:
    • https://www.googleapis.com/auth/admin.directory.customer.readonly
    • https://www.googleapis.com/auth/admin.directory.user.readonly
  3. In Serval, enter the Workspace’s primary domain, the primary email address of a delegated administrator with read access to customer information and users, and the JSON key.
  4. Select Connect. Serval verifies both the Workspace customer and the administrator’s Directory record before saving encrypted credentials to this workspace. No Google OAuth redirect URI is needed.
The service account doesn’t depend on anyone’s Google sign-in. Serval reads the Directory as the delegated administrator, so that account must stay active and keep read access to customer information and users. To use a different delegated administrator, disconnect and connect again. Reconnect keeps the same Workspace, service account and delegated administrator. Leave the key empty to retain it, or paste a replacement key for the same service account. Reconnect verifies the delegation again. These credentials don’t grant the Chat bot access: install the Serval Chat app in the Workspace separately. See Google’s domain-wide delegation guide.

Connections that use Google sign-in or your own OAuth app

Connections set up earlier with Sign in with Google or your own OAuth app keep working and reconnect with the same method.
  • Sign in with Google: reconnect signs in again as an administrator of the connected Workspace through Serval’s managed app registration. If Google reports redirect_uri_mismatch, contact Serval support and include the error details shown by Google. Changing the account you sign in with doesn’t correct a missing redirect URI.
  • Your own OAuth app: reconnect keeps the same Workspace and OAuth client. The client’s Authorized redirect URIs must still include the exact redirect URI shown in Serval. Leave the secret blank to keep its saved value, or provide a replacement secret for that same client. Secrets and tokens are stored with the connection’s encrypted credentials.

Change authentication methods

Reconnect preserves the connection’s existing authentication method. To move a connection that uses Google sign-in or your own OAuth app to a service account, disconnect the existing Google Chat connection, then connect again. Google Chat will be unavailable until the new connection is ready. Recheck connected spaces and explicitly opt in again for unmentioned messages after reconnecting.

Unmentioned space messages

An additional connection can deliver messages in a named, threaded space without an app mention. It requires Serval operator setup, Google Workspace administrator authorization, and a separate opt-in for each connected space. Availability does not mean a space is receiving messages; check its delivery status. In the Google Chat app’s help-desk settings, open Unmentioned messages on the connected space, then enable Receive unmentioned space messages. The selected response mode still applies. On demand requires a mention to start a request; a permitted unmentioned reply can continue its existing ticket. Until delivery is active, mention Serval in each space reply. DMs continue through their existing connection and do not receive space subscriptions. Turning the setting off stops that connection’s intake immediately; Google-side cleanup can finish afterward. Disconnecting or removing and re-adding the app requires a fresh space opt-in. Another workspace’s existing opt-in to the same space is preserved. Serval manages the Google app and Cloud infrastructure for the hosted deployment. Customers authorize the app in Workspace; this setup does not ask them to buy a Google add-on or attach their own Cloud billing account. Workspace Events requires a billed Cloud project, and Pub/Sub usage can incur infrastructure charges. This page does not define Serval commercial pricing or promise free delivery. Google setup prerequisites