# Google Chat

## Google Chat notifications in Eliona

The notification provider **Google Chat** in Eliona enables the configuration and management of notifications that are delivered directly in a Google Chat room or chat group. This is especially helpful for forwarding alarms and other important information to teams in real time.

***

## **Configuration**

<figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/B8IWctfaKOXmNQ58toHL/image.png" alt=""><figcaption></figcaption></figure>

1. **Note:**\
   Enter a note or description that is relevant for the configuration. This can, for example, be the name of the Google Chat room.
2. **Customer email:**\
   Enter the customer's email address that is used for the Google Chat notifications.
3. **Private key:**\
   Enter the private key required for authentication with Google Chat. This key must be in JSON format and provided by your Google Workspace administrator.
4. **Save:**\
   Click on **"Save"**, to apply the configuration.

***

## Combining alarms

Alarms can also be grouped here, just like with other notification providers.&#x20;

{% content-ref url="../group-escalations" %}
[group-escalations](https://docs.buildings.ability.abb/collection/english-v14/documentation/alarms-rules-and-escalations/escalations/group-escalations)
{% endcontent-ref %}

***

## **Google Chat templates**

<figure><img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/yOiLcruTk5VAuex3Uj7H/image.png" alt=""><figcaption></figcaption></figure>

Eliona offers the ability to customize individual templates for Google Chat notifications. These templates define what the text style, structure, and content of the notification look like.

{% content-ref url="../../../../academy/twig-templating-in-eliona" %}
[twig-templating-in-eliona](https://docs.buildings.ability.abb/collection/english-v14/academy/twig-templating-in-eliona)
{% endcontent-ref %}

1. **Customize template:**\
   Navigate to your Google Chat template and click on <img src="https://content.gitbook.com/content/Nyvwhz1kEMXcHf4HLuZ8/blobs/0qj8DSfTIz8wqWar3AUy/image.png" alt="" data-size="line">.
2. **Override default:**
   * Activate the option **"Override default"**, to make individual changes to the template.
   * As soon as this option is active, you can edit the notification text.
3. **Edit format & style:**\
   The Google Chat text can be customized to make the desired message clear and understandable.\
   **Example of an alarm text:**

   ```csharp
   Eliona Alarm: {{asset.name}} ({{asset.gai}}) - {{alarm.msg}} 
   {% if alarm.gone_ts is null %}https://{{domain_name}}/alarms?alarm_id={{alarm.alarm_id}}
   {% else %}https://{{domain_name}}/alarms/history{% endif %}
   ```
4. **Save:**\
   Click on **"Save"**, to apply the changes. All future notifications will then use the customized template.
