Slack
A BDK Book containing automation procedures for Slack.
Last updated
Was this helpful?
A BDK Book containing automation procedures for Slack.
Last updated
Was this helpful?
The Slack BDK Book provides a set of automation procedures designed to interact with the Slack messaging platform. Adding this Book to a Kognitos agent enables it to perform operations such as reading messages, sending messages, and retrieving information about specific channels and users.
Connecting to the Slack Book requires an OAuth Token that your application will use to make API calls and receive events.
The primary token you'll need is a Bot User OAuth Token. To obtain one:
Create a Slack App: If you haven't already, you'll need to create a Slack App in your workspace.
Go to the and click "Create New App."
Choose to build it "From scratch" or use a manifest.
Add Scopes: Navigate to "OAuth & Permissions" in your app's settings. Under "Bot Token Scopes", add the following permissions (scopes) for this Book:
channels:history
channels:join
channels:read
chat:write
chat:write.public
conversations.connect:read
conversations.connect:write
files:write
groups:read
groups:write
im:history
im:read
im:write
im:write.topic
mpim:history
mpim:read
mpim:write
mpim:write.topic
users.profile:read
users:read
users:read.email
users:write
Install to Workspace: Install (or reinstall if you changed scopes) your app to your development workspace. This will generate the Bot User OAuth Token.
Copy Your Token: Once installed, you'll find the xoxb-
token on the "OAuth & Permissions" page. Copy this token and add it to Kognitos when learning the Book.
The following procedures are available in the Slack BDK Book:
For more detailed steps on app creation and token generation, refer to the official .
: Reads messages from either a slack user or channel.
: Fetches information about a Slack channel.
: Fetches information about a specific user in Slack.
: Sends a message to a channel or user in Slack.
Before using the Book’s procedures in an automation, you must learn the Book by adding it to your agent. Follow the steps below to get started.
In the left navigation bar, click on Books.
Click on + New Book.
Search for the Book's name. Click on the version tagged with bdk.
Note: If the Book requires connectivity, you will be prompted to provide configuration details.
Click Add to finish adding your Book.
After learning a Book, publish your agent and create a new Playground. Previously created Playgrounds will not be able to recognize the new Book.