Skip to main content
Proton v5

Teams and Google Chat

Alerts and the end-of-batch notice can arrive as a card in a Microsoft Teams channel or in a Google Chat space, besides email. Everyone in the channel sees the card and gets the app notification, on the computer and on the phone.

Each channel is an integration in Settings > Integrations. Once registered, it shows up in the alert rules and in the If it fails step when you start a run.

Google Chat​

Before you start​

  • The Google Chat webhook is available in paid Google Workspace (Business or Enterprise). Personal Gmail accounts do not have it.
  • Your company's Google Workspace administrator must allow incoming webhooks in the Chat apps settings. Without it, the option to add a webhook does not show up in the space.
  • The webhook is created in the browser, at chat.google.com. The phone app cannot create it.
  • The card goes to a space. To notify a single person, use email.

Create the webhook in the space​

  1. In the browser, open the space that will receive the notices.
  2. From the space name, open Apps & integrations.
  3. Under Webhooks, add a webhook. Give it a name, such as Proton (the name shows as the author of the messages).
  4. Save and copy the URL. It starts with https://chat.googleapis.com/v1/spaces/.

:::warning The URL is a password Anyone with the URL can post in the space. Paste the URL only in Proton, never in an email or ticket. If it leaks, delete the webhook in the space, create another one and replace the integration's credential. :::

Register it in Proton​

  1. In Settings > Integrations, Add opens Create Integration.
  2. Choose Google Chat and give it a Name. The space name helps you find the channel in the rules.
  3. In Webhook URL, paste the URL. Proton only accepts the Google Chat webhook address and keeps only the key and the token from the URL.
  4. Test Connection sends a test card to the space. Check it in Chat and save.

Each integration is one space. To notify two spaces, register two integrations.

Microsoft Teams​

  1. In the Teams channel, create a Workflows flow from the template "Post to a channel when a webhook request is received" and copy the URL it generates.
  2. In Settings > Integrations, register a Teams integration and paste the URL in Webhook URL. The URL must start with https:// and point to a public address.
  3. Test Connection sends a test card to the channel. Save.

The flow URL is also a password: keep it like the Google Chat one.

In alert rules​

In Settings > Alerts and webhooks, on the Alert rules tab, New rule opens the editor. In the Who receives it step:

  • turn on Microsoft Teams or Google Chat and choose the channels or spaces. With only one registered, turning it on already picks it;
  • the Card language (Teams and Google Chat) applies to both. Email goes out in each person's language;
  • a rule can notify only through chat, without email.

The Name and repetition step shows how the card arrives. In the list, Send a test alert sends a test to each person and each channel of the rule.

The channel belongs to everyone in it. That is why the card for an automation only goes out if the person responsible for the rule (whoever changed it last, or created it) can see that automation, by the team rule. See Teams in Administration.

In the run notice​

In the If it fails step of the run window (and also in recurring runs and in the group default), the Notify block has a shortcut for the email of whoever starts the run plus the registered chat channels. Its name depends on what the company has: Me and Teams, Me and Google Chat or Me and the chat channels. In Custom, choose which channels and spaces receive it.

The run notice goes out once, when the batch ends, already with the result of the new attempts. It follows the team rule of whoever started the run.

How the card arrives​

The card has the title, the severity in color, the details (automation, dataset, group, environment, runner, duration and Correlation ID), the batch failures with a link to each one and the button to open it in Proton. It is the same text as the email. In Google Chat, the phone notification shows the title and the alert sentence.

In Google Chat, each new problem arrives as a new message, to notify everyone in the space. Only what continues the same problem goes into its thread:

  • the runner that came back, in the thread of the "offline" alert of the same outage;
  • the summary of repeated alerts, in the thread of the alert that started the repetition.

A reply in a thread only notifies those who follow the thread.

When delivery fails​

The History tab of Alerts and webhooks shows each delivery, with the channel, the status and the error. A delivery that fails goes back to the queue with a growing wait (30 seconds, 1 minute, 2 minutes, up to 1 hour), for up to 8 attempts, and can be resent from the history.

What you seeWhat to do
Error 429 in Google ChatChat accepts about one message per second per space. The delivery goes back to the queue on its own.
Error 400, 403 or 404The webhook was deleted, the Teams flow was turned off or the URL is wrong. The delivery fails for good: create the webhook again and replace the integration's credential with Update Credentials.
"Use the space's incoming webhook URL" when registeringThe pasted URL is not a Google Chat webhook. Copy it again from Apps & integrations > Webhooks.

Permissions​

Registering, editing and testing the channels are permissions of the Integration entity, on the Configuration tab of the profile. Creating and editing rules are alert permissions. See Profiles and permissions.