Slack
Learn how to build AI agents with Slack access using xpander.ai.
Learn how to build AI agents with Slack access using xpander.ai. This integration enables intelligent communication-aware AI assistants that can read, send, organize, and analyze messages, channels, and workflows to enhance team collaboration automatically.
Authentication Options
The simplest way to connect Slack is using xpander.ai’s built-in authentication:
- Go to the Apps section in xpander.ai dashboard
- Select Slack from available integrations.
- Click Sign in with Slack
- Select your Slack workspace, and then log in to your Slack user.
- Select on which channel you’d like the Xpander app to operate.
- Your connection is immediately active and ready to use.
The simplest way to connect Slack is using xpander.ai’s built-in authentication:
- Go to the Apps section in xpander.ai dashboard
- Select Slack from available integrations.
- Click Sign in with Slack
- Select your Slack workspace, and then log in to your Slack user.
- Select on which channel you’d like the Xpander app to operate.
- Your connection is immediately active and ready to use.
Slack API access configuration
For programmatic access and automation you will need a Slack Application.
If you don’t have a Slack Application, start from step 1.
If you have a Slack Application, but haven’t asked for scopes for the app, skip to step 6.
If you have a Slack Application, and asked for scopes for the app, skip to step 8.
-
Go to Your Apps and select Create New App.
-
Select From scratch.
-
Enter your App Name. For this example, enter “Grocery Reminders”.
-
Select the Workspace where you’ll be developing your app. For example, “xpandercommunity”. You’ll be able to distribute your app to other workspaces later if you choose.
-
Select Create App.
-
Under OAuth & Permissions, go to the Scopes Section, provide the relevant scopes to the Bot Token Scopes which you’d like to add to your app. If more info is needed, please continue the scopes creation process via the instructions in Slack’s quickguide.
-
Under OAuth Tokens, click Install to
<WORKSPACE>
, and follow the installation process. -
Once you have finished installing the app to your workspace, go back to the OAuth Tokens section, and copy the Bot User OAuth Token:
Let’s create the Xpander.ai Slack interface!
- Write your interface name.
- Select the interface access you’d like.
- Select the API key authentication method.
- Select the Integration user authentication scope.
- Select Bearer as the Auth type.
- Paste the token copied earlier in the API Key field using this template:
[YOUR_API_KEY]
, like so:
Note: Make sure to replace [YOUR_API_KEY]
with your actual Slack API key.
Then save the interface.
For more information about the Slack API, click here.