slack

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Slack Actions

Slack 操作

Overview

概述

Use
slack
to react, manage pins, send/edit/delete messages, and fetch member info. The tool uses the bot token configured for OpenClaw.
使用
slack
可以执行添加表情反应、管理固定内容、发送/编辑/删除消息,以及获取成员信息等操作。该工具使用为OpenClaw配置的机器人令牌。

Inputs to collect

需要收集的输入参数

  • channelId
    and
    messageId
    (Slack message timestamp, e.g.
    1712023032.1234
    ).
  • For reactions, an
    emoji
    (Unicode or
    :name:
    ).
  • For message sends, a
    to
    target (
    channel:<id>
    or
    user:<id>
    ) and
    content
    .
Message context lines include
slack message id
and
channel
fields you can reuse directly.
  • channelId
    messageId
    (Slack消息时间戳,例如
    1712023032.1234
    )。
  • 若要添加表情反应,需提供
    emoji
    (Unicode格式或
    :名称:
    格式)。
  • 若要发送消息,需指定
    to
    目标(格式为
    channel:<id>
    user:<id>
    )和
    content
    内容。
消息上下文包含
slack message id
channel
字段,可直接复用。

Actions

操作说明

Action groups

操作分组

Action groupDefaultNotes
reactionsenabledReact + list reactions
messagesenabledRead/send/edit/delete
pinsenabledPin/unpin/list
memberInfoenabledMember info
emojiListenabledCustom 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.
  • 使用✅标记已完成的任务。
  • 固定关键决策或每周状态更新。