Slack

This guide provides step-by-step instructions for creating a Slack bot that allows you to talk to your Network Copilot from Slack. The bot can respond to queries about generating Compliance reports, Audit reports, and general chat about your network.

Enhance efficiency and streamline communication within your Slack channels.

Procedure:

Setting up the Slack Bot

  1. Create a Slack APP

    • Visit Slack API and log in with your organization ID

    • Click on "Create New App" and choose "From Scratch"

    • Name your app and select the target workspace from the dropdown menu

    • Click on "Create App"

  2. Setup permissions

    • In the left navigation bar, go to Features → OAuth & Permissions → Bot Token Scopes

    • Click on "Add an OAuth Scope"

    • Add the following permissions: chat:write, app_mentions:read, files:write, incoming-webhook, users:read

  3. Configure Event Subscriptions

    • Go to Features → Event Subscriptions and enable the feature

    • Enter your API endpoint URL (ex. -> https://<server-public-ip>:9001/api/v1/slack-events/questions)

    • Scroll down and subscribe to the following bot events: app_mentions:read

    • Click Save Changes

  4. Install the APP

    • Go back to OAuth & Permissions and click Install App to Workspace

    • Select the Channel for NCP-bot to post on

    • Click on Allow

Add the OAuth Slack token to NCP

  1. Obtain the OAuth token from Slack

    • Navigate to Slack API -> Your APPs -> Select the NCP-App -> Features -> OAuth & Permissions -> Bot User OAuth Token

    • In the features section, select 'Bot User OAuth Token' and copy the token

  2. Configure the NCP with the Slack token

    • Login to the NCP GUI

    • Go to Settings → Data Connectors → Messaging section

    • Click on Add Channel

    • Enter the 'Channel Name' and the 'Bot User OAuth Token'

    • Click Save

Add the NCP-bot to your Workspace

  1. Adding the NCP-Bot

    • Go to the settings of the desired channel or group

    • Navigate to Integrations → Apps -> Add an App

    • Select your app from the dropdown menu

  2. Interacting with the NCP-Bot

    • Begin a conversation with the bot by typing @your_bot_name followed by your query

Audit Report through Slack
Audit Report through Slack
Audit Report through Slack
General Chat through NCP

Last updated

Was this helpful?