返回顶部
s

slackSlack自动化

Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include "check my Slack", "what channels have unreads", "send a message to", "search Slack for", "extract from Slack", "find who said", or any task requiring programmatic Slack interaction.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
73
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

slack

Slack Automation

Interact with Slack workspaces to check messages, extract data, and automate common tasks.

Quick Start

Connect to an existing Slack browser session or open Slack:

CODEBLOCK0

Then take a snapshot to see what's available:

CODEBLOCK1

Core Workflow

  1. 1. Connect/Navigate: Open or connect to Slack
  2. Snapshot: Get interactive elements with refs (@e1, @e2, etc.)
  3. Navigate: Click tabs, expand sections, or navigate to specific channels
  4. Extract/Interact: Read data or perform actions
  5. Screenshot: Capture evidence of findings

CODEBLOCK2

Common Tasks

Checking Unread Messages

CODEBLOCK3

Navigating to a Channel

CODEBLOCK4

Finding Messages/Threads

CODEBLOCK5

Extracting Channel Information

CODEBLOCK6

Checking Channel Details

CODEBLOCK7

Taking Notes/Capturing State

When you need to document findings from Slack:

CODEBLOCK8

Sidebar Structure

Understanding Slack's sidebar helps you navigate efficiently:

CODEBLOCK9

Key refs to look for:

  • - @e12 - Home tab (usually)
  • INLINECODE3 - DMs tab
  • INLINECODE4 - Activity tab
  • INLINECODE5 - Search button
  • INLINECODE6 - More unreads button (varies by session)

Tabs in Slack

After clicking on a channel, you'll see tabs:

  • - Messages - Channel conversation
  • Files - Shared files
  • Pins - Pinned messages
  • Add canvas - Collaborative canvas
  • Other tabs depending on workspace setup

Click tab refs to switch views and get different information.

Extracting Data from Slack

Get Text Content

CODEBLOCK10

Parse Accessibility Tree

CODEBLOCK11

Count Unreads

CODEBLOCK12

Best Practices

  • - Connect to existing sessions: Use agent-browser connect 9222 if Slack is already open. This is faster than opening a new browser.
  • Take snapshots before clicking: Always snapshot -i to identify refs before clicking buttons.
  • Re-snapshot after navigation: After navigating to a new channel or section, take a fresh snapshot to find new refs.
  • Use JSON snapshots for parsing: When you need to extract structured data, use snapshot --json for machine-readable output.
  • Pace interactions: Add sleep 1 between rapid interactions to let the UI update.
  • Check accessibility tree: The accessibility tree shows what screen readers (and your automation) can see. If an element isn't in the snapshot, it may be hidden or require scrolling.
  • Scroll in sidebar: Use agent-browser scroll down 300 --selector ".p-sidebar" to scroll within the Slack sidebar if channel list is long.

Limitations

  • - Cannot access Slack API: This uses browser automation, not the Slack API. No OAuth, webhooks, or bot tokens needed.
  • Session-specific: Screenshots and snapshots are tied to the current browser session.
  • Rate limiting: Slack may rate-limit rapid interactions. Add delays between commands if needed.
  • Workspace-specific: You interact with your own workspace -- no cross-workspace automation.

Debugging

Check console for errors

CODEBLOCK13

View raw HTML of an element

CODEBLOCK14

Get current page state

CODEBLOCK15

Example: Full Unread Check

CODEBLOCK16

References

  • - Slack docs: https://slack.com/help
  • Web experience: https://app.slack.com
  • Keyboard shortcuts: Type ? in Slack for shortcut list

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 daxiang-slack-1775909462 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 daxiang-slack-1775909462 技能

通过命令行安装

skillhub install daxiang-slack-1775909462

下载

⬇ 下载 slack v1.0.0(免费)

文件大小: 8.21 KB | 发布时间: 2026-4-12 09:41

v1.0.0 最新 2026-4-12 09:41
Initial release of Slack automation skill using browser automation.

- Interact with Slack via browser (no API, tokens, or OAuth needed)
- Check unread channels, navigate sections, send messages, and automate common Slack tasks
- Use Bash commands with `agent-browser` to connect, snapshot, extract, click, and screenshot
- Includes detailed command examples and best practices for snapshots, navigation, and data extraction
- Suitable for tasks like finding unreads, searching conversations, extracting channel info, and documenting findings via screenshots

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部