# Slack

## Slack notifications in Eliona

The notification provider **Slack** in Eliona enables the configuration and management of notifications that are delivered directly to a Slack channel or a Slack 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/JbqWOjF3JGevmw2S2xnU/image.png" alt=""><figcaption></figcaption></figure>

* **Note:**\
  Enter a note or description that is relevant for the configuration. This can be, for example, the name of the Slack channel.
* **Token:**\
  Enter the token required for authentication with Slack. This token must be generated in the Slack administration area.
* **Save:**\
  Click on **"Save"**, to apply the configuration.

***

## **Combining alarms**

As with other notification providers, alarms can also be grouped here. This makes it possible to combine several alarms and send them in a single message.

{% 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 %}

***

## **Slack templates**

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

{% 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 %}

Eliona offers the option to customize individual templates for Slack notifications. These templates determine what the text style, structure, and content of the notification look like.

* **Customize template:**\
  Navigate to your Slack template and click the edit icon.
* **Override default:**\
  Activate the option **"Override default"**, to make individual changes to the template.\
  Once this option is active, you can edit the notification text.
* **Edit format & style:**\
  The Slack text can be customized to make the desired message clear and easy to understand.

  **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 %}
  ```
* **Save:**\
  Click on **"Save"**, to apply the changes. All future notifications will then use the customized template.
