Slack Writer
Send messages to Slack channels and users through the Slack API.
Quick Start
- Create a Slack App and install it to your workspace
- Copy your Bot User OAuth Token (starts with
xoxb-
)
- Add the Slack Writer node to your workflow
- Paste your token and specify a channel (e.g.,
#general
)
- Send a test message
Setup Guide
1. Create a Slack App
- Go to Slack API Apps page
- Click "Create New App" → "From scratch"
- Name your app and select your workspace
- Navigate to "OAuth & Permissions"
- Add these Bot Token Scopes:
chat:write
- Send messages
chat:write.customize
- Customize bot name/icon
channels:read
- View channels
groups:read
- View private channels
- Click "Install to Workspace" and authorize
- Copy the "Bot User OAuth Token"
- In Slack, invite bot to channels with
/invite @YourBotName
Basic Usage
Simple Message
{
"channel": "#general",
"message": "Hello team! Important meeting at 2 PM."
}
Thread Reply
{
"channel": "#general",
"message": "Here are the meeting notes.",
"thread_timestamp": "1680123456.789000"
}
Rich Message with Block Kit
[
{
"type": "header",
"text": {
"type": "plain_text",
"text": "🚨 System Alert",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Database Backup Complete*\nAll systems operating normally."
}
}
]
Configuration
Field |
Description |
Type |
Example |
Slack Token |
Bot User OAuth Token |
Password |
xoxb-1234567890-abcdefg-hijklmnop |
Channel |
Channel or user to message |
String |
#general or @username |
Message |
Text content (if not using Block Kit) |
String |
Hello team! |
Field |
Description |
Type |
Example |
Block Kit JSON |
Rich message formatting |
JSON |
See examples below |
Icon Emoji |
Bot icon emoji |
String |
:robot: |
Icon URL |
Bot icon image URL |
String |
https://example.com/icon.png |
Thread Timestamp |
Reply to thread |
String |
1680123456.789000 |
Outputs
Field |
Description |
Example |
Status |
API call status |
ok |
Thread Timestamp |
Message timestamp |
1680123456.789000 |
Response |
Full API response |
See below |
Best Practices
Message Design
- Keep messages concise and well-structured
- Use Block Kit for complex layouts
- Include clear call-to-actions
Threading
- Use threads to organize conversations
- Save timestamps for follow-ups
- Avoid deep nesting
- Store tokens securely
- Batch messages when possible
- Monitor rate limits
Troubleshooting
Common Issues
- Message Not Sent: Check token and channel permissions
- Invalid Token: Ensure token starts with
xoxb-
- Channel Not Found: Verify channel exists and bot is invited
Need Help?