The Google Chat integration posts a message to a Google Chat space when an incident opens and when it resolves. It uses an incoming webhook registered in the space.
Before you start
Google documents incoming webhooks for Business or Enterprise Google Workspace accounts, and your organisation must allow users to add webhooks. You need Google Chat in a browser; webhooks can't be set up from the Chat mobile app. In LivePulser you need the owner, admin or member role.
Get a webhook URL from Google Chat
Google's steps at the time of writing (Google may change them):
- Open Google Chat in a browser and go to the space that should receive alerts.
- Next to the space title, open the menu and select Apps & integrations.
- Select Add webhooks. If you can't, your organisation doesn't allow webhooks; ask your Workspace administrator.
- Enter a Name such as LivePulser, optionally an Avatar URL, and select Save.
- Open the webhook's More menu and select Copy link.
The URL looks like https://chat.googleapis.com/v1/spaces/SPACE_ID/messages?key=KEY&token=TOKEN. Keep it private. Google's guide is Google Chat's incoming webhooks quickstart.
Connect it in LivePulser
- Open Integrations & API and select Google Chat, or select it under Connect a new service in a monitor's alert settings.
- Enter a Display name (up to 100 characters) and paste the whole URL into Webhook URL.
- Tick Validate with simple message before connecting and select Connect integration. LivePulser first posts "LivePulser Google Chat integration successfully connected to <your team>!"; if Google refuses it, nothing is saved.
Attach it to a monitor
On the monitor's page, select Alerts, select the Google Chat integration under Integrations, and select Save changes.
Check that it works
Select Send test notification on the monitor's page. A card for TEST: and your monitor appears in the space. The integration's own Test button posts a sample alert for example.com instead.
What the message contains
Alerts are cards titled Incident Alert or Incident Resolved (SSL/TLS Issue Detected and SSL/TLS Issue Resolved for SSL problems). They show Affected Monitor, the status, the detection or resolution time, Downtime on recovery, and a View Incident button. An unexpected cron run, or a domain or certificate expiry reminder, posts a short text message.
Common problems
| What you see | Cause and fix |
|---|---|
| Please enter a valid URL | The Webhook URL field doesn't contain a URL. Paste the complete link. |
| webhook_url must be a chat.googleapis.com URL or invalid Google Chat webhook path format | The URL isn't a Google Chat webhook. A link to the space itself (chat.google.com) isn't a webhook; use Copy link on the webhook. |
| google chat webhook URL must include 'key' and 'token' parameters | The end of the URL is missing. Copy the whole link again. |
| Validation failed: unable to send message to Google Chat webhook | Google refused the validation message. Check that the webhook still exists in the space and that your organisation allows webhooks. |
| Google Chat Alerts: google chat webhook returned status <code>: … | Shown after Send test notification, with your Display Name, Google's status code and its reply. The webhook was probably removed from the space. Add a new one and update the integration. |
| Alerts stopped arriving | If the webhook was removed from the space, the incident timeline shows Failed after retries. Add a new webhook and paste it into the integration. |