Integration with Slack
Last updated
Last updated
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.
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"
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
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
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
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
Configure the NCP with the Slack token
Login to the NCP GUI
Go to the Integrations section
Click on Add Channel
Enter the 'Channel Name' and the 'Bot User OAuth Token'
Click Save
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
Interacting with the NCP-Bot
Begin a conversation with the bot by typing @your_bot_name
followed by your query