> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allquiet.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Mattermost

> Connect Your Mattermost Server with All Quiet to Manage Incidents from Mattermost

<Info>Setup time: 10 Min</Info>

Integrate your Mattermost Server with All Quiet for efficient incident management right from within Mattermost.

<Tip> The first part of this documentation focuses on creating the integration. The second explains how to send All Quiet incidents to your Mattermost channels (Outbound).
Want to create new incidents from your Mattermost channels (Inbound)? Follow the [third part](/integrations/outbound/mattermost#create-incidents-from-mattermost) of this guideline.</Tip>

## Create Outbound Integration

1. Click on the `Outbound Integrations` tab.
2. Click on `+ Create`.

<img className="Mattermost_Create" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/01.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=ac0ad5f93d5838ed96853fe693aaebe1" width="2674" height="642" data-path="images/mattermost/01.png" />

1. Enter a `Display Name` for your integration, e.g. "Mattermost".
2. Select a `Team`. <Note>For Organizations with Pro and Enterprise plan: This is going to be the root team of your integration. You will be able to add additional teams in the next step.</Note>
3. Select `Mattermost` as the integration's type.
4. Forwarding settings:
   1. **Default:** `Always` will automatically forward all incidents to your Mattermost Server, unless excluded by [advanced routing rules](/advanced/routing).
   2. **Alternative**: `Always After Forwarding` - Messages will only be sent if users [manually forward specific incidents](/essentials/incident#forwarding) or if you set up [advanced routing rules](/advanced/routing) that automatically forward incidents in specific scenarios. After the initial Forwarding, all updates will automatically be sent.
      <Tip>You can change your selection anytime.</Tip>
5. Click `Create Outbound Integration`.

<img className="Mattermost_Create2" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/02.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=6c09b49f348d2a3f4c432c567e5dd29a" width="2158" height="1798" data-path="images/mattermost/02.png" />

## Send All Quiet Incidents to Mattermost

Once you've successfully created your new outbound integration, you'll automatically be redirected to its `Settings` page.

1. Observe that the installation status is still pending.
2. To activate the outbound integration, enable the toggle `Send incidents to Mattermost` and follow the next steps in this guide.
3. To activate the inbound integratoin, enable the toggle `Create incidents from Mattermost` and follow [this part of the setup guide](/integrations/outbound/mattermost#create-incidents-from-mattermost).

<Info> In the `Edit` tab, you can change general settings like the integration's [Forwarding settings](/integrations/outbound/slack#create-outbound-integration).</Info>
<Note>**Only for Pro and Enterprise plan** - Manage your `Team Connections`: The root team is pre-selected, and you can add the integration to further teams within the root team's organization. *Team Administrators* can add / remove those teams they are an Administrator in, *Organization Administrators* & *Organization Owners* can manage the connections to all teams of the organization. </Note>

<img className="Mattermost_Add" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/03.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=b914ebbf4a9039e15efada446fe68d75" width="2164" height="1410" data-path="images/mattermost/03.png" />

After enabling `Send incidents to Mattermost` to send All Quiet incidents to Mattermost, you add a bit more information.

1. Add the URL of your Mattermost server.
2. Click `Save`.

To activate the integration, we need to create a Bot on Mattermost in the next step and paste the Bot's access token into our integration settings in All Quiet.

<img className="Mattermost_addServerURL" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/04.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=f72be74f0c8af4a82244e570bd651f3c" width="2162" height="1802" data-path="images/mattermost/04.png" />

In Mattermost

1. Open the menu in the top left corner.
2. In the menu, select `Integrations`.

<img className="Mattermost_integrations_bot" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/05.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=75423c69a07b9f868dc24e57ae565712" width="2180" height="1294" data-path="images/mattermost/05.png" />

Next, select `Bot Accounts` as integration type.

<img className="Mattermost_integrations_bot_select" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/06.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=f78ec9d914495c4259bef00699a9a0fe" width="2322" height="1358" data-path="images/mattermost/06.png" />

Click `Add Bot Account`.

<img className="Mattermost_integrations_bot_add" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/07.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=5483202549f7513e4eda9abe0e86a408" width="2356" height="756" data-path="images/mattermost/07.png" />

1. Give your Bot a descriptive `Username`, like "all\_quiet".
2. You may want to add our Logo as `Bot Icon`.
3. Optionally, you can add a descriptive `Display Name` that adds more information than the `Username`, like "All Quiet Incidents" or "Incident from All Quiet".
4. "Member" `Role` is sufficient.
5. We recommend to enable `post:all` to enable the Bot to post into a maximum number of channels.
6. Finish the setup by clicking `Create Bot Account`.

<img className="Mattermost_integrations_bot_create" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/08.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=6ff31345572a5e16a36f1f4cf92e2ba1" width="2133" height="2124" data-path="images/mattermost/08.png" />

Copy the genererated access `Token`. You will need it in the next step to activate the connection in All Quiet.

<img className="Mattermost_integrations_bot_token" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/09.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=b688b0a55e308d8f46672ff12eb5eef0" width="2164" height="888" data-path="images/mattermost/09.png" />

Back in your Mattermost Integration setting in All Quiet,

1. paste the `Token` into the `Bot Access Token` field.
2. `Save` your settings.

Now, before we can add the integration to your Mattermost channels, we need to add the Bot to your Mattermost team(s).

<img className="Mattermost_add_bot_token_to_all_quiet" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/10.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=6daf1e019e68f113ba3d99d8424bfdb7" width="2172" height="1768" data-path="images/mattermost/10.png" />

To add the Bot to your Mattermost teams, go back to Mattermost.

1. Open the menu in the top left corner.
2. In the menu, select `System Console`.

<img className="Mattermost_system_console" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/11.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=f97db169aadc7897cbee0c705039cdfa" width="2718" height="1088" data-path="images/mattermost/11.png" />

In the sidebar, select `User Management` > `Teams` (1).

<img className="Mattermost_system_console_teams" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/12.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=c8e0e8d82ecd222f0cca932ec3373499" width="1150" height="1430" data-path="images/mattermost/12.png" />

Select the team you want to add the Bot to and click `Edit`.

<img className="Mattermost_system_console_teams_edit" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/13.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=19ab989ccc10531305b1c4dc340443ed" width="1876" height="952" data-path="images/mattermost/13.png" />

On the `Team Configuration` page, scroll down to the `Members` section. Click `Add Members`.

<img className="Mattermost_system_console_teams_add_bot_1" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/14.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=f76decacfa3458dbbbb1558e42d812b2" width="1856" height="1696" data-path="images/mattermost/14.png" />

1. Select the Bot from the list.
2. Click `Add`.

<img className="Mattermost_system_console_teams_add_bot_2" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/15.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=ec2c9eec1897464d8b51435ce080e893" width="1218" height="560" data-path="images/mattermost/15.png" />

`Save` your team configuration with your newly added member.

<img className="Mattermost_system_console_teams_add_bot_3" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/16.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=1ccc2ab4ddfcb0eb3e57e413b96b819e" width="1850" height="1124" data-path="images/mattermost/16.png" />

Now, open the your Mattermost Integration settings in All Quiet.
<Tip> You might need to refresh the screen to see the new options </Tip>

1. As you can see, we successfully added the Bot to your Mattermost `Team` in the last step. Select the Mattermost Team you want to connect and send incidents to.
2. Now it's time to select the Mattermost `Channels` you want to sent incidents to. You can decide to either
   * Send all incidents to the same channels.
   * Select different channels based on incident severity.
3. Select the `Channels`.
   <Note> You need to invite the Bot to the desired Mattermost channels first. After that, the channels will appear in All Quiet, and you can select them. This works for both public and private channels.</Note>
4. You can change your integration settings to “**Read Only**”. In this mode, we will not send any action buttons to Mattermost, meaning users cannot interact with the messages. This is ideal if you want to use the integration for internal stakeholder management.
5. Save your integration `Settings`.

<img className="Mattermost_system_console_teams_add_bot_3" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/17.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=15c280b21f36df82ebe37fef7883e50d" width="2163" height="2198" data-path="images/mattermost/17.png" />

<Check>Your outbound integration is now fully set up. Now it's time to send incidents to your Mattermost channels.</Check>

### Engage with Incidents Directly in Mattermost

<Note> Only Teams that are connected with the integration in All Quiet will send their incidents to Mattermost. You can always change the current settings via the [`Team Connections` page](/integrations/outbound/mattermost#create-outbound-integration).</Note>

After finishing the setup, our integration sends an interactive message to your designated Mattermost channels. This allows you to manage incidents seamlessly, mirroring the experience on our iOS, Android, and Web Apps, all without leaving Mattermost.

<Info> If incident grouping is enabled, All Quiet will only include the <b>grouping attributes</b> in the Mattermost messages we send (the same fields used to group events into an incident). Learn more in our [Inbound Integrations docs](/essentials/inbound#optional-additional-attribute-keys).</Info>

<Info> For compliance reasons, only Users with rights in the All Quiet team(s) connected to the incident can interact with the Message. Additionally, if users create incidents manually they can alway interact with the specific incident no matter which team(s) are assigned.</Info>

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/18.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=ce5fb6b43a21cf5eb146facb720ff2ed" width="3344" height="762" data-path="images/mattermost/18.png" />

<Check>Mattermost is now integrated with All Quiet, simplifying incident management by consolidating notifications and actions in one place.</Check>

## Create Incidents from Mattermost

You can create All Quiet incidents from Mattermost using custom slash commands.

To create `All Quiet incidents from Mattermost`,

1. enable the respective toggle in your Mattermost integration settings in All Quiet.
2. Note that we need to genererate a `Slash command secret token` and past it here. We will generate the token in the next steps.
3. Copy the `Slash command URL` by clicking on it. You will need it to connect the Mattermost slash command with All Quiet.

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/19.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=bf0b30fb8b3c68dadde23add4ed69094" width="1936" height="1080" data-path="images/mattermost/19.png" />

Back in Mattermost

1. Open the menu in the top left corner.
2. In the menu, select `Integrations`.

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/20.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=a305a98f84f2f1ff0cab9c18de11389f" width="1688" height="1082" data-path="images/mattermost/20.png" />

This time, select `Slash Commands` as integration type.

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/21.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=df6a081e6e815bf9257ce7480b2dbced" width="2146" height="1338" data-path="images/mattermost/21.png" />

Click `Add Slash Command`.

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/22.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=35e7630004c08c37a4949fe0cc7f62b8" width="2152" height="698" data-path="images/mattermost/22.png" />

1. Add a `Title` for the slash command, like `Create All Quiet Incident`.
2. You may add a `Description`.
3. Define the `Command Trigger Word`. Select something that is easy to remember and descriptive enough for you users to understand what the command does, e.g. `allquiet_incident`.
   <Tip> If you add more than one Mattermost integration to your All Quiet Organization, you will need to add different slash commands for each integration. Use descriptive commands, e.g. include the connected All Quiet Teams in the command.</Tip>
4. Paste in the `Request URL`. This is the `Slash command URL` you copied on All Quiet.
5. As request method, select `Post`.
6. We recommend activating `Autocomplete`. When activated, your users will see the full command after typing "/". You can even add `Autocomplete Hints`or `Autocomplete Descriptions` to clarify what the slash command does.
7. `Save` the slash command.

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/23.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=2e086aca1c336a86ede5a03c1f69a926" width="1648" height="2146" data-path="images/mattermost/23.png" />

Copy the genererated `Token`. You will need it in the next step to connect the command with All Quiet.

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/24.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=e33a804205a516bbff12761a14e281ab" width="1690" height="624" data-path="images/mattermost/24.png" />

Back in All Quiet,

1. paste the `Slash command secret token` into your Mattermost integration settings.
2. Save your settings.

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/25.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=ed32ace2e0478e75d2cbc284fd926c59" width="1936" height="1064" data-path="images/mattermost/25.png" />

<Check> Now, your users can create All Quiet incidents from your Mattermost channels. </Check>

Here's how it works:

1. Once typing "/" into the input field,
2. the autocomplete function shows the newly created slash command. Select it and click enter.

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/26.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=ddf2e84393c0da3f2d830bf2ba28b86a" width="1708" height="1112" data-path="images/mattermost/26.png" />

The command opens a pop-up window in which you can create the incident.

1. Choose the team you want to create the incident in.
   <Info> For compliance reasons, Users will only be able to select from the All Quiet teams they have roles in and that are connected to the Mattermost integration.</Info>
2. Select the severity of the incident.
3. Add the Incident Title.
4. Optional and recommended: Add a `Description` to give context.
5. Click `Creat Incident` to create the incident in All Quiet.

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/l1TPX4riyFdvOSp9/images/mattermost/27.png?fit=max&auto=format&n=l1TPX4riyFdvOSp9&q=85&s=0b86f6846ba80eae5369320375153045" width="1310" height="1562" data-path="images/mattermost/27.png" />

<Check> The incident is successfully created in the selected All Quiet team and triggers it's escalations. </Check>

<img className="Mattermost_All_Quiet_Incident_Sent_to_Mattermost" src="https://mintcdn.com/allquiet/i9E85mXt4-PVGl8R/images/mattermost/28.png?fit=max&auto=format&n=i9E85mXt4-PVGl8R&q=85&s=d3f4ae334d0c2b9b564762a32d533d09" width="3982" height="447" data-path="images/mattermost/28.png" />

## Hints and Troubleshooting

* Deactivating the Toggles to `Send incidents to Mattermost` / `Create Incidents from Mattermost` does not delete saved settings or tokens but simply pauses outbound / inbound functionality.
* If you set up > 1 Mattermost outbound integration and two bots are in the channel, there will only be one incident message (sent by the first bot who was triggered) that users of both bots can interact with.
