slack
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSlack Actions
Slack 操作
Overview
概述
Use to react, manage pins, send/edit/delete messages, and fetch member info. The tool uses the bot token configured for OpenClaw.
slack使用可以执行添加表情反应、管理固定内容、发送/编辑/删除消息,以及获取成员信息等操作。该工具使用为OpenClaw配置的机器人令牌。
slackInputs to collect
需要收集的输入参数
- and
channelId(Slack message timestamp, e.g.messageId).1712023032.1234 - For reactions, an (Unicode or
emoji).:name: - For message sends, a target (
toorchannel:<id>) anduser:<id>.content
Message context lines include and fields you can reuse directly.
slack message idchannel- 和
channelId(Slack消息时间戳,例如messageId)。1712023032.1234 - 若要添加表情反应,需提供(Unicode格式或
emoji格式)。:名称: - 若要发送消息,需指定目标(格式为
to或channel:<id>)和user:<id>内容。content
消息上下文包含和字段,可直接复用。
slack message idchannelActions
操作说明
Action groups
操作分组
| Action group | Default | Notes |
|---|---|---|
| reactions | enabled | React + list reactions |
| messages | enabled | Read/send/edit/delete |
| pins | enabled | Pin/unpin/list |
| memberInfo | enabled | Member info |
| emojiList | enabled | Custom emoji list |
| 操作分组 | 默认状态 | 说明 |
|---|---|---|
| reactions | 启用 | 添加反应 + 列出所有反应 |
| messages | 启用 | 读取/发送/编辑/删除消息 |
| pins | 启用 | 固定/取消固定/列出固定内容 |
| memberInfo | 启用 | 获取成员信息 |
| emojiList | 启用 | 获取自定义表情列表 |
React to a message
对消息添加表情反应
json
{
"action": "react",
"channelId": "C123",
"messageId": "1712023032.1234",
"emoji": "✅"
}json
{
"action": "react",
"channelId": "C123",
"messageId": "1712023032.1234",
"emoji": "✅"
}List reactions
列出消息的所有反应
json
{
"action": "reactions",
"channelId": "C123",
"messageId": "1712023032.1234"
}json
{
"action": "reactions",
"channelId": "C123",
"messageId": "1712023032.1234"
}Send a message
发送消息
json
{
"action": "sendMessage",
"to": "channel:C123",
"content": "Hello from OpenClaw"
}json
{
"action": "sendMessage",
"to": "channel:C123",
"content": "Hello from OpenClaw"
}Edit a message
编辑消息
json
{
"action": "editMessage",
"channelId": "C123",
"messageId": "1712023032.1234",
"content": "Updated text"
}json
{
"action": "editMessage",
"channelId": "C123",
"messageId": "1712023032.1234",
"content": "Updated text"
}Delete a message
删除消息
json
{
"action": "deleteMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}json
{
"action": "deleteMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}Read recent messages
读取近期消息
json
{
"action": "readMessages",
"channelId": "C123",
"limit": 20
}json
{
"action": "readMessages",
"channelId": "C123",
"limit": 20
}Pin a message
固定消息
json
{
"action": "pinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}json
{
"action": "pinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}Unpin a message
取消固定消息
json
{
"action": "unpinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}json
{
"action": "unpinMessage",
"channelId": "C123",
"messageId": "1712023032.1234"
}List pinned items
列出固定内容
json
{
"action": "listPins",
"channelId": "C123"
}json
{
"action": "listPins",
"channelId": "C123"
}Member info
获取成员信息
json
{
"action": "memberInfo",
"userId": "U123"
}json
{
"action": "memberInfo",
"userId": "U123"
}Emoji list
获取表情列表
json
{
"action": "emojiList"
}json
{
"action": "emojiList"
}Ideas to try
可尝试的使用场景
- React with ✅ to mark completed tasks.
- Pin key decisions or weekly status updates.
- 使用✅标记已完成的任务。
- 固定关键决策或每周状态更新。