# Integrating Error Notifiers to Slack

In this document, we'll walk through the process of creating a Slack Notifier, after which it can be used in any number of deployments to send alerts to the configured Slack channel upon the occurrence of an Application Error and/or a Custom Log Event Error. For more on the different kinds of errors, see [Logging Errors](https://github.com/airkit/airkit-docs/blob/master/docs/v18-3/logging-errors.md). For more on tying Notifiers to a deployment, see [Publish and Manage Deployments](https://github.com/airkit/airkit-docs/blob/master/docs/v18-3/publish-and-manage-deployments.md).

## Pre-requisites:

Before starting the configuration, create an **#app-errors** channel in Slack to receive the error messages.

## Creating a Slack App

To post messages from apps into Slack, a Slack App must be created with an Incoming Webhook.&#x20;

1. Go to [https://api.slack.com/messaging/webhooks#getting\_started](https://api.slack.com/messaging/webhooks#getting_started), click on **Create your Slack app**, and then choose to create it from scratch. A modal will show up prompting you to name your app and then pick the workspace you’ll be using. Once you have done so, click on **Create App**:

![](https://3333962744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbnBffrSN2FHLC5cM89AM%2Fuploads%2Fgit-blob-822d6443924ed2f88b3016118752c30302acaa3d%2Fintegrating-error-notifications-to-slack-v183-0.png?alt=media)

2. Turn Incoming Webhooks on.

![organizing info](https://3333962744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbnBffrSN2FHLC5cM89AM%2Fuploads%2Fgit-blob-b07e88084e7b9975c284a6dd44d0b79c0f4987c9%2Fintegrating-error-notifications-to-slack-v183-1.png?alt=media)

3. Enter the Slack channel where notifications will be posted to.

![organizing info](https://3333962744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbnBffrSN2FHLC5cM89AM%2Fuploads%2Fgit-blob-9281edebf00a918d90372074f89defcc41a61e41%2Fintegrating-error-notifications-to-slack-v183-2.png?alt=media)

4. Copy the Slack app URL.&#x20;

![](https://3333962744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbnBffrSN2FHLC5cM89AM%2Fuploads%2Fgit-blob-f641084b5077af045ae3ea4c8d37392d7e481b8d%2Fintegrating-error-notifications-to-slack-v183-3.png?alt=media)

We recommend pasting the URL in the channel’s topic since it will be needed later on to create the App Notifier in the Console.

## Create a Slack Notifier in the Console

1. Go to \*\* [Console](../console/console) > [Settings](../console/console/console-settings) > Logs and Notifiers\*\*.

![organizing info](https://3333962744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbnBffrSN2FHLC5cM89AM%2Fuploads%2Fgit-blob-32e3ceb6fb191f2014a5f3643b0e56f009c00c7f%2Fintegrating-error-notifications-to-slack-v183-4.png?alt=media)

2. Scroll down to the **Notifiers** section and click on the associated **Create new** button.

![organizing info](https://3333962744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbnBffrSN2FHLC5cM89AM%2Fuploads%2Fgit-blob-67a130be2f25c527bbb1976e5b3457690e5ae60f%2Fintegrating-error-notifications-to-slack-v183-5.png?alt=media)

3. Clicking on this button will open the Inspector, which will contain the tools to define the details of the new notifier being created. Select **Slack** as the Destination. In the **URL** field, paste the Slack app URL you copied in the previous section. In the **Name** field, given your notifier a name. In the following example, the notifier is called "App Notifier". When all three fields are filled in, click on the "Create" button to the bottom right of the Inspector:

![](https://3333962744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbnBffrSN2FHLC5cM89AM%2Fuploads%2Fgit-blob-6ab55fd125e6cd7ba630efbdb13b39a84b2c2b60%2Fintegrating-error-notifications-to-slack-v183-6.png?alt=media)

A Send Test button will show up for you to click and receive a Test text on the #app-errors channel:&#x20;

![](https://3333962744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbnBffrSN2FHLC5cM89AM%2Fuploads%2Fgit-blob-7f59258a36159d4a44cb948a0cf52f3bd0e50f7b%2Fintegrating-error-notifications-to-slack-v183-7.png?alt=media)

You have now created a Slack Notifier! All apps within your [Organization](../administration/airkit-organizations) will have access to this notifier. It can be used by any app to send errors of either kind.
