← 返回
沟通协作 中文

Slack (Socket Mode)

Use when you need to control Slack from OpenClaw via the message tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
通过消息工具在OpenClaw中控制Slack,包括对消息做出反应或在Slack频道和DM中固定/取消固定项目。
ailven
沟通协作 clawhub v1.0.1 1 版本 99886.7 Key: 无需
★ 0
Stars
📥 882
下载
💾 7
安装
1
版本
#latest

概述

Slack Actions

Overview

Use the message tool with these actions to control Slack: send, react, reactions, read, edit, delete, download-file, pin, unpin, list-pins, member-info, emoji-list. The tool uses the bot token configured for OpenClaw.

Inputs to collect

  • channelId (e.g. C123) and messageId (Slack message timestamp, e.g. 1712023032.1234).
  • For reactions, an emoji (Unicode or :name:).
  • For message sends, a to target (channel: like C123 or user mention <@U123>).

Message context lines include slack message id and channel fields you can reuse directly.


Actions

Action groups | Default | Notes

Action groupDefaultNotes
-----------------------------------------------
reactionsenabledReact + list reactions
messagesenabledRead/send/edit/delete
pinsenabledPin/unpin/list
memberInfoenabledMember info
emojiListenabledCustom emoji list

Common Patterns

Send a message to a channel

/message
action: send
channel: slack
to: C123
message: Hello @everyone!

Send a message to a specific user

/message
action: send
channel: slack
to: <@U123>
message: Hi there!

React to a message

/message
action: react
channelId: C123
messageId: 1712023032.1234
emoji: ✅

List reactions on a message

/message
action: reactions
channelId: C123
messageId: 1712023032.1234

Edit a message

/message
action: edit
channelId: C123
messageId: 1712023032.1234
message: Updated text

Delete a message

/message
action: delete
channelId: C123
messageId: 1712023032.1234

Read recent messages from a channel

/message
action: read
channelId: C123
limit: 20

Pin a message

/message
action: pin
channelId: C123
messageId: 1712023032.1234

Unpin a message

/message
action: unpin
channelId: C123
messageId: 1712023032.1234

List pinned messages in a channel

/message
action: list-pins
channelId: C123

Get member info by user ID

/message
action: member-info
userId: U123

Returns: real_name, display_name, email, avatar URLs, timezone, profile status, etc.

List custom emojis

/message
action: emoji-list

Tips & Gotchas

  1. Mention format: Use <@U...> instead of @Name to ensure Slack parses the mention correctly.
  2. Member lookup: If you don't know a user's ID, check recent message context or project board assignee fields. You can also use member-info once you have any guessable ID.
  3. DM policy: Direct messages require im:write scope and may need explicit pairing if your channel config is restrictive.
  4. Socket Mode vs Bot API: OpenClaw uses Socket Mode for real-time events; all write operations go through bot token scopes.

Ideas to try

  • React with ✅ to mark completed tasks.
  • Pin key decisions or weekly status updates.
  • Introduce yourself using <@UserID> to trigger notifications.
  • Monitor channel activity with periodic read calls.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 20:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Gmail

byungkyu
Gmail API 集成,托管 OAuth,支持读取、发送和管理邮件、线程、标签及草稿,适用于需要与 Gmail 交互的场景。
★ 72 📥 37,750
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,470
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,748