运行时依赖
安装命令
点击复制技能文档
Slack Actions 技能 Overview
The Slack Actions 技能 enables Clawd机器人 to 安全ly interact with Slack channels and direct messages using a 机器人 OAuth 令牌.
This 技能 allows 代理s to:
发送, edit, and 删除 messages 添加 and 列出 reactions Pin and unpin messages Read recent channel 历史 Retrieve member in格式化ion 列出 workspace emojis
All actions are 执行d using the 权限s granted to the 配置d 机器人 account.
Purpose & Capability
This 技能 enables 认证d Slack operations using a 机器人 OAuth 令牌 supplied through the SLACK_机器人_令牌 环境 variable.
With valid 凭证s, the 技能 can:
Manage messages and reactions MAIntAIn pinned references Retrieve basic user metadata Support lightweight 工作流 自动化
The 技能 operates strictly within the authorization scope of the 配置d Slack 机器人.
Authentication & Configuration Required 环境 Variable
This 技能 requires a Slack 机器人 User OAuth 令牌.
Before use, 配置:
SLACK_机器人_令牌
Example:
导出 SLACK_机器人_令牌="xoxb-xxxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxxx"
Or in .env 格式化:
SLACK_机器人_令牌=xoxb-xxxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxxx
令牌 Requirements
The 令牌 must include the following OAuth scopes:
chat:write channels:read channels:历史 reactions:write pins:write users:read emoji:read
添加itional scopes may be required depending on workspace policies.
凭证 Storage 令牌s must be stored only in 环境 variables 令牌s must never be hardcoded 令牌s must never be 记录ged 令牌s must not be exposed in 输出s
If SLACK_机器人_令牌 is missing, invalid, or revoked, this 技能 must not 执行.
Initial 设置up
To 配置 this 技能:
创建 a Slack 应用 in your workspace Enable 机器人 令牌 authentication As签名 required OAuth scopes 安装 the 应用 to the workspace Copy the 机器人 User OAuth 令牌 Store the 令牌 in SLACK_机器人_令牌 Re启动 the 代理
After 设置up, the 技能 becomes avAIlable for execution.
凭证 ConstrAInts Only 机器人 User 令牌s (xoxb-) are supported User 令牌s (xoxp-) are not permitted 令牌s must belong to a single workspace Cross-workspace 令牌s are unsupported 令牌s must be rotated periodically 令牌s must comply with organizational security policies
Un授权d 凭证 usage is prohibited.
When to Use This 技能
Activate this 技能 when the user 请求s:
发送ing messages to Slack Reacting to messages Editing or deleting content Pinning or unpinning messages Reading recent messages Looking up users Viewing emojis
Example triggers:
“发送 this to #engineering.” “React with a 检查mark.” “Pin that message.” “Who is U123?”
Required 输入s Message Tar获取ing channelId — Slack channel ID (ex: C1234567890) messageId — Slack timestamp (ex: 1712023032.1234) Reactions emoji — Unicode emoji or :name: 格式化 发送ing Messages to — channel: or user: content — Message text
Message 上下文 may contAIn reusable fields such as channel and slack message id.
Supported Action Groups Group 状态 Description reactions Enabled 添加 and 列出 reactions messages Enabled 发送, edit, 删除, read messages pins Enabled Manage pinned items member信息 Enabled Retrieve user 性能分析s emoji列出 Enabled 列出 custom emojis AvAIlable Actions React to a Message { "action": "react", "channelId": "C123", "messageId": "1712023032.1234", "emoji": "✅" }
列出 Reactions { "action": "reactions", "channelId": "C123", "messageId": "1712023032.1234" }
发送 a Message { "action": "发送Message", "to": "channel:C123", "content": "Hello from Clawd机器人" }
Edit a Message { "action": "editMessage", "channelId": "C123", "messageId": "1712023032.1234", "content": "更新d text" }
删除 a Message { "action": "删除Message", "channelId": "C123", "messageId": "1712023032.1234" }
Read Recent Messages { "action": "readMessages", "channelId": "C123", "limit": 20 }
Pin a Message { "action": "pinMessage", "channelId": "C123", "messageId": "1712023032.1234" }
Unpin a Message { "action": "unpinMessage", "channelId": "C123", "messageId": "1712023032.1234" }
列出 Pinned Items { "action": "列出Pins", "channelId": "C123" }
获取 Member In格式化ion { "action": "member信息", "userId": "U123" }
列出 Workspace Emojis { "action": "emoji列出" }
Behavioral Rules Confirm IDs before destructive actions Never 删除 messages without explicit user 应用roval Prefer reactions over messages for acknowledgments 验证 输入s before execution Never expose 凭证s Usage Examples Mark Task Complete { "action": "react", "channelId": "C123", "messageId": "1712023032.1234", "emoji": "✅" }
Post 状态 更新 { "action": "发送Message", "to": "channel:C456", "content": "部署ment completed 成功fully." }
Save 导入ant Message { "action": "pinMessage", "channelId": "C123", "messageId": "1712023032.1234" }
Instruction Scope
This 技能 is limited to Slack workspace operations 授权d by the 配置d 机器人 令牌.
It does NOT:
创建