---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Set up notifications for a custom Slack app

# Set up notifications for a custom Slack app {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Send ServiceNow notifications to users via your own Slack bot.

## Before you begin

* [Request Integration Hub](https://www.servicenow.com/docs/access?context=request-ih-overview&version=xanadu&pubname=xanadu-integrate-applications&ft:locale=en-US)
* [Request the Messaging Notification plugin](https://servicenow-prod.fluidtopics.net/3I~UI0VO3M0N489ENK9_8g "To activate this feature, request the Messaging Notification plugin (com.glide.notification.messaging) through the HI Customer Service system. This plugin activates related plugins if they are not already active.")
* Create a custom application for Slack
{#configure-notif-custom-Slack-app__ul_sjf_lnk_lkb}

Role required: admin or messaging_admin

## Procedure

1. Create a JSON for your custom Slack application.  
   Ensure that your JSON matches the following example format:

       {
       "bot_user_id" : "U9TLFR6TA",
       "scope" : "bot,channels:read",
       "client_id" : "294380102274.335446283495",
       "client_secret" : "ed0da5fe1f844fdac15a9e1ac1b0b831",
       "verification_token" : "YXSNsRhioCeU8h9Fm2k4ACuO",
       "app_id" : "A9VD48BEK",
       "access_token" : "xoxp-294380102274-295238228534-335452648487-2fac31f923dadd7ff30f2bc8c852809d",
       "bot_access_token" : "xoxp-333695856928-6pNwnO3Y6vNSGI7KCAIPwv6V",
       "team_id" : "T8NB63082",
       "team_name" : "sn-notif-ext-test",
       "user_id" : "U8P706QFQ",
       "bot_username": "empdmyers1snnotifext"
       }

   To get the Bot User ID, copy the member ID of the bot user in the Slack app.

   The Scope is always `bot,channels:read`.

   To get the Client ID, Client Secret, and Verification Token, see the Basic
   Information page in your Slack workspace.

   To get the App ID, copy the 9-character identifier from the app URL in your
   Slack workspace.

   To get the Access Token and Bot Access Token, see the OAuth \& Permissions
   page in your Slack workspace.

   To get the Team ID, view the HTML source code for your Slack
   workspace page.

   The Team Name is the same as your subdomain in your Slack
   workspace.

   To get the User ID, copy the member ID for your own account in the Slack app.

   The Bot Username is the name that you assigned to the bot user in Slack.
   {#configure-notif-custom-Slack-app__create-json}
{#configure-notif-custom-Slack-app__create-json}
2. In your ServiceNow instance, navigate to System NotificationMessagingMessaging Integration Configuration.
3. Next to the Slack listing, click Install.
4. On the JSON Configuration window, paste the JSON that you created in Step [1](https://servicenow-prod.fluidtopics.net/3In50Izqrw6rY76LhuSeSw#configure-notif-custom-Slack-app__create-json).  
5. Click Submit.
6. On the confirmation window, click Skip.  

## Result

The system creates a notification channel for your custom Slack app automatically.

## What to do next

* Link ServiceNow user accounts to your custom Slack app so that users can take action on notifications that are delivered by your Slack bot.
* For each user account that you link, enable the notification channel using the system settings.
* Create notifications for your custom Slack app by following the steps in [Create a messaging notification](https://servicenow-prod.fluidtopics.net/8ZlWdjCSGeZHH0awBl~EjA "Notifications define when a message is sent, who it is sent to, and what it contains. To send a notification to Slack or Teams, add a messaging content record to the notification and configure the notification messaging channel. Notifications that require action must be sent to individual users instead of groups.") and [Configure message content](https://servicenow-prod.fluidtopics.net/vHSWI~1GY8GmFZ2WXiWVWw "Create a message in the Message Contents [messaging_content] table that you can use in multiple notifications. Messages can be informative, or they can request action from an individual Slack or Teams user. For example, the Approval Request message includes Approve and Reject buttons to take the associated action in ServiceNow.").
{#configure-notif-custom-Slack-app__ul_k4q_x1l_lkb}
**Related topics**   

* [Slack API documentation](https://api.slack.com/)

*[\>]: and then


