# Mattermost Integration

The [Mattermost](https://mattermost.com/) integration allows ilert to automatically post updates about alerts or incidents to your Mattermost channels. This ensures your teams stay aligned during outages or escalations, facilitating faster communication and real-time incident collaboration.

{% hint style="warning" %}
To set up this integration, you must have admin rights in ilert.
{% endhint %}

## In Mattermost: Create an incoming webhook <a href="#add-to-channel" id="add-to-channel"></a>

1. Go to the main menu and click **Integrations**

![](/files/-MSx9q9xEwwNHRJ_EMTr)

2. Click on **Incoming Webhooks**

![](/files/-MSxA6n4DtODinR_xOSz)

3. On the next page click on the **Add incoming Webhook** button

![](/files/-MSxATmsDtu3NA9a8Oh4)

4. On the next page, name the webhook e.g. **iLert**, choose **a channel** and click on the **Save** button.

![](/files/-MSxB0j8uLJrcRTNOlFH)

5. Your webhook has now been set up. You will need the URL in the next step.

## In ilert: Create the Mattermost Connector and link it to your alert source <a href="#create-alarm-source" id="create-alarm-source"></a>

1. Click on the gear icon and navigate to → **Connectors**

![](/files/-Mkn3b39jQN6o8j4nVNJ)

2. Click on **Add Connector**

![](/files/-Ma8BCbPt5h67tGsMFBF)

3. Select **Mattermost** as **Type**. Assign a name for the connector, enter the URL from above and save it.

![](/files/-MSxBn4dHbHw2FaqnU9P)

4. **Go to** the alert sources tab and open the alert source whose alerts you want to publish to Mattermost. Click **Alert actions → Create alert action**.

![](/files/-Mkn3ka7m65J5wG7_1PK)

5. Select **Mattermost** as the **type**, select the connector created in step 3 and give your connection a name.

![](/files/-Ma80jrjGjSI2qQ4eBND)

6. Finished! You can now test the connection by clicking on the **Test this connection** button. A test message will be posted in the Mattermost channel.

![](/files/-Ma810RmlK6-iltwwzbJ)

## FAQ <a href="#faq" id="faq"></a>

**Can I link multiple Mattermost Spaces to an ilert account?**

Yes.

**Are updates to an alert published in the Mattermost channel?**

Yes, the following updates to an alert are currently being published:

* **Escalations** : An alert is assigned to another user through an automatic escalation.
* **Manual Assignments** : An alert is manually assigned to someone.
* **Actions** : An alert is accepted or resolved.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ilert.com/integrations/outbound-integrations/mattermost.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
