Cursusinhoud
Agentic AI for Automating Daily Office Tasks
Agentic AI for Automating Daily Office Tasks
2. Smarter Communication & Time Control
3. Document Drafting, Editing & Filing
Setting Up AI Slack Automation
Slack API Application Setup
Creating Your Slack App
- Access Slack API platform;
- Click "Get Started" button;
- Click "Go to Your Apps" button then;
- Click green "Create New App" button;
- Create new application "From Scratch" for custom configuration;
- Choose descriptive name (e.g., "AI Assistant" or personal identifier);
- Select target Slack workspace from dropdown menu.
Required Bot Token Scopes
- In the side menu, choose "OAuth & Permissions";
- To make the "Install to Workspace" button active, scroll down to the "Scope" section;
- In the "User Token Scopes" subsection, click "Add an Oauth Scope";
- One-by-one, add the following scopes:
channels:history
- read message history from public channels;channels:read
- access basic channel information;chat:write
- send messages to channels and users;reactions:read
- view emoji reactions on messages;reactions:write
- add emoji reactions to messages;users:read
- access basic user profile information.
- Scroll up and now click "Install to Workspace" button;
- In a new window, get acquainted with the requested permissions and allow them by clicking "Allow";
- Now, you have received an OAuth Token that starts with
xoxp-
. Don't close the window for future use.
Team ID Extraction
- Open the target Slack workspace in a browser;
- Or open the Slack Desktop window;
- Click the workspace name to access settings;
- Copy the workspace URL and paste it to the browser address bar or write it manually;
- Locate Team ID in the URL structure (appears after "T" prefix);
- Don't close this browser tab as well.
Automatic MCP Server Installation
Automatic Installation
For quick setup, use Smithery with the following command, run in Terminal or Command line:
npx -y @smithery/cli install @lars-hagen/slack-user-mcp2 --client claude
Claude Config File Updates
- Access Claude config via
Command/Ctrl + ,
; - Open Developer tab and select "Edit Config";
- Add Slack MCP configuration block after existing entries;
"slack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-user"
],
"env": {
"SLACK_TOKEN": "xoxp-your-user-token",
"SLACK_TEAM_ID": "T..."
}
}
- Insert required credentials:
- User OAuth Token
xoxp-...
(from Slack API); - Team ID
T...
(from workspace URL).
- User OAuth Token
- Save the file.
Manual Integration
GitHub Repository Cloning
- Open the Termianl (Mac) or Command Line (Windows);
- Navigate to the directory where you store AI agents repos by
cd
command, for example:
cd Documents/projects
- Download the Slack MCP server repository from GitHub to your local machine:
git clone https://github.com/lars-hagen/slack-user-mcp.git
- Enter the newly created repository directory:
cd slack-user-mcp
- Install all required dependencies and packages for the Slack MCP server:
npm install
- Compile the project and create the build files needed for execution:
npm run build
- If you experience some problems in command execution in Terminal, use
Command/Ctrl + C
for process termination.
Configuration File Updates
- Access Claude config via
Command/Ctrl + ,
; - Open Developer tab and select "Edit Config";
- Add Slack MCP configuration block after existing entries;
"slack": {
"command": "npm",
"args": [
"run",
"--prefix",
"/path/to/slack-user-mcp",
"start"
],
"env": {
"SLACK_TOKEN": "xoxp-...",
"SLACK_TEAM_ID": "T..."
}
}
- Insert required credentials:
- Repository path (from
pwd
command in the Terminal/Command line); - User OAuth Token
xoxp-...
(from Slack API); - Team ID
T...
(from workspace URL).
- Repository path (from
- Save the file.
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 4