# Send alerts to Google Chat

Get downtime alerts in a Google Chat space. Create a webhook in the space, paste its URL into StatusCheck, and send a test card.

Connect a Google Chat space to get a card there when a monitor goes down, when it recovers, and when you post a status update. Everyone in the space can follow an outage without a StatusCheck seat.

You create a webhook URL in Google Chat, a private web address that lets StatusCheck post into one space, and paste it into StatusCheck. Google Chat is available on every plan. A workspace has one Google Chat connection, which posts to one space.

**Before you start**

- You need the **Owner**, **Admin** or **Editor** role in the StatusCheck workspace.
- Webhooks in Google Chat need a Google Workspace account, the kind your company or school manages. Personal Gmail accounts do not have them, and your Google Workspace admin can turn them off.
- Create the space first, for example a space named Production alerts. Webhooks post to spaces, not to direct messages.

## Create a webhook URL in Google Chat

These steps use Google Chat in a web browser, at `chat.google.com` or inside Gmail.

1. In Google Chat, open the space.

2. Select the space name at the top of the conversation. A menu opens.

3. Choose **Apps & integrations**.

4. Select **Add webhooks**.

5. Enter a name such as StatusCheck, and leave the avatar field empty.

6. Select **Save**.

7. Copy the new webhook's whole URL. Look for a copy button next to the webhook, or a menu next to it with a copy option.

The URL is long and contains a `key` and a `token`. Keep it private: anyone with it can post to the space.

If your Google Chat looks different:

- **The option reads Manage webhooks.** The space already has webhooks. Open **Manage webhooks** and add another.
- **You cannot find Apps & integrations or the webhooks option.** Use Google Chat in a web browser rather than the phone app.
- **The option is still missing.** Your account cannot create webhooks. Ask your Google Workspace admin to allow them, or to create the webhook for you.

## Paste the URL into StatusCheck

1. In StatusCheck, open **Integrations** in the sidebar and choose **Google Chat**.

   ![The Google Chat integration page in StatusCheck, with three setup steps, the Google Chat webhook URL field and the Connect button, and a Details card.](https://www.statuscheck.io/_astro/integration-google-chat.BXmeEnZW.png)

2. Paste the URL into **Google Chat webhook URL**. It starts with `https://chat.googleapis.com/`.

3. Select **Connect**. The status reads **Connected**.

4. Select **Send test alert**. A test card appears in the Google Chat space within a few seconds. If it does not, see [Troubleshooting](#troubleshooting).

StatusCheck encrypts the URL and does not show it again. To post to a different space, select **Disconnect** and connect again with that space's webhook URL.

## Choose which events the space receives

A new connection receives all three events. To change that, open the integration's page in StatusCheck, clear the events you do not want under **Events**, and select **Save events**.

| Event | When it is sent |
| --- | --- |
| **Monitor down** | A failure has been confirmed from a second location and an incident has opened. Reminders follow if the monitor's **Resend while down** is set. |
| **Monitor recovered** | The recovery has been confirmed. Includes the outage duration. |
| **Status updates** | Someone posts an update to a status page, including the one that resolves it. |

## Send a monitor's alerts to the space

Connecting Google Chat does not change any monitor. A monitor's alerts go only to the channels you select on it.

1. In StatusCheck, open **Monitors** in the sidebar and select the monitor.

2. Open the **Notifications** tab.

3. Under **Channels**, select the Google Chat connection.

4. Select **Save changes**. The monitor's next down alert goes to the space.

Status updates go to the connection whenever **Status updates** is selected, whatever monitors it is attached to.

## What the Google Chat card contains

- A header that names the monitor and what happened.
- One line each for the location that detected the failure, the status code (the number your server answered with, such as `503`) and failure reason, when it started, and for a recovery when it ended and how long it lasted.
- The monitor's URL, if **Show URL in notifications** is on for that monitor.
- A **View incident** button that opens the incident in StatusCheck.

Times are in UTC.

## Troubleshooting

**There is no webhooks option in the space menu.** Your Google Workspace admin has turned off incoming webhooks, or you are using a personal Google account. Ask your admin to allow them.

**The test alert fails right after connecting.** The copy probably cut the URL short. Copy it again with the copy button in Google Chat, then disconnect and connect with the full URL.

**Messages stopped arriving.** Someone may have deleted the webhook from the space. The connection's status changes to **Failing** and the error appears under **Last event** in the **Details** card. Create a new webhook, disconnect, and connect again.

## Related

- [How alerts work](/docs/alerts/) explains delays, reminders and muting.
- [Respond to an incident](/docs/incidents/) covers acknowledging and resolving.
- [Post a status update](/docs/status-pages/status-updates/) explains the updates this space can receive.
- [Slack](/docs/alerts/slack/), [Microsoft Teams](/docs/alerts/microsoft-teams/), [Discord](/docs/alerts/discord/) and [Telegram](/docs/alerts/telegram/) connect the same way. [Webhooks](/docs/alerts/webhooks/) reach any other tool.
