Skip to content

Google Chat


Google Workspace Chat webhooks provide a simple way for you to send messages to Google Chat rooms via HTTP requests.

For more details, refer to Build Google Chat apps with webhooks.

Note

This notification target is only applicable to international site workspaces that have bound an International Billing Center account.

Prerequisites

Ensure you have permission to add apps to the target chat space.

Register an Incoming Webhook

  1. Go to the chat room where you want to add the webhook.
  2. Click the "Expand" arrow next to the room title at the top.
  3. Click "Apps and integrations".
  4. Click "Add webhooks" (❗️ If you cannot click this button, it means your Google Workspace organization does not allow users to add or use webhooks. For details, refer to Allow users to install chat apps).
  5. Name this webhook. This name will later appear as the sender's name in Chat.
  6. Save.
  7. To copy the webhook URL, click "More" or "Copy link". The webhook URL contains two parameters: key (a common value shared among webhooks) and token (a unique value that must be kept confidential to ensure the webhook's security) (❗️ Do not share your webhook URL online (e.g., in public code repositories), as this compromises its security).

Configure on the TrueWatch Side

  1. Return to the page for configuring Google Chat as a notification target.
  2. Define the name for this notification target within TrueWatch, used for identification in the notification target list.
  3. Enter the webhook address obtained in the previous steps.
  4. Optionally test if the notification is sent (❗️ Send a test message to the group/channel corresponding to this webhook. Please check within the corresponding notification target to see if the test message was sent successfully).
  5. Configure Operation Permissions.
  6. Confirm.