Receive Alert Notifications via Google Chat
Setup Google Chat integration and receive alert notifications from Last9.
Getting started
Last9 can send alert notifications and resolutions to Google Chat spaces. This document provides step-by-step instructions on how to set up Google Chat integration with Last9 and start receiving alert notifications.
Setting up an Incoming Webhook in Google Chat
-
Open Google Chat and navigate to the space where you want to receive alerts
-
Click on the space name at the top to open the dropdown menu
-
Select Apps & integrations (or Manage webhooks in older versions)
-
Click Add webhooks
-
Configure your webhook:
- Enter a Name for the webhook (e.g., “Last9 Alerts”)
- Optionally, add an Avatar URL for the webhook icon
-
Click Save
-
Copy the generated webhook URL. It will look like:
https://chat.googleapis.com/v1/spaces/SPACE_ID/messages?key=KEY&token=TOKEN
Setting up a notification channel in Last9
-
In Notification Channels, click Add to create a new channel

-
Provide the following details:
- Channel Name: A descriptive name to easily identify the channel (e.g., “Google Chat Production Alerts”)
- Channel: Select Webhook from the dropdown
- Webhook URL: Paste the Google Chat webhook URL copied from the previous step
- Send Resolved: Enable this option if you want to be notified when an alert has been resolved

-
Click Save to enable the channel
Assigning a notification channel to an alert group
-
Navigate to your Alert Group in Alert Studio
-
Click on the notification channel icon to configure notifications
-
Select your Google Chat channel from the dropdown
Google Chat Notification Format
Last9 sends notifications to Google Chat using the Cards v2 API, which provides rich formatting. Each notification card includes:
| Section | Description |
|---|---|
| Header | Alert summary with subtitle showing severity, class, and timestamp |
| Sections | Organized alert details with decorated text widgets |
| Button | ”Inspect in Last9” link to view the alert directly |
Severity Indicators
| Severity | Icon | Description |
|---|---|---|
| Breach | Red circle | Critical alerts requiring immediate attention |
| Threat | Orange circle | Warning alerts indicating potential issues |
Using Terraform
You can also create the Google Chat notification channel using the Last9 Terraform Provider:
resource "last9_notification_channel" "google_chat" { name = "google-chat-production-alerts" type = "webhook" destination = "https://chat.googleapis.com/v1/spaces/SPACE_ID/messages?key=KEY&token=TOKEN" send_resolved = true}Troubleshooting
Notifications not appearing in Google Chat
- Verify the webhook URL is correct and starts with
https://chat.googleapis.com/ - Check that the webhook is still active in your Google Chat space settings
- Ensure the space where the webhook was created still exists
Messages are not formatted correctly
Last9 auto-detects Google Chat webhooks based on the URL pattern. Ensure your webhook URL contains chat.googleapis.com.
Rate limiting
Google Chat has rate limits for incoming webhooks. If you’re sending a high volume of alerts, some messages may be delayed or dropped. Consider consolidating alerts or using alert grouping in Last9.
Please get in touch with us on Discord or Email if you have any questions.