Slack automation

From sickn33/agentic-awesome-skills · View interactive version

Slack automation is an AI agent skill from the GitHub repository sickn33/agentic-awesome-skills. Automate Slack workspace operations including messaging, search, channel management, and reaction workflows through Composio's Slack toolkit.

How to use this skill

Skill file

Slack Automation via Rube MCP

Automate Slack workspace operations including messaging, search, channel management, and reaction workflows through Composio's Slack toolkit.

Prerequisites

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. The target account must still authenticate through the returned connection flow and grant the required scopes.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit slack
  3. If connection is not ACTIVE, follow the returned auth link to complete Slack OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Workspace and communication boundaries

Resolve the exact workspace/channel/user and current discovered tool schema. Reading/searching does not authorize posts, DMs, mentions, reactions, edits or schedules; perform them only under the matching user instruction and visibility scope. Preview mass mentions and cross-workspace/shared-channel exposure. Keep timestamps as strings, paginate within a bounded window, redact private content and reconcile message history after uncertain sends before retrying. Wrapper-specific markdown_text support does not deprecate Slack's text/blocks; include accessible fallback text for block content. See chat.postMessage.

Core Workflows

1. Send Messages to Channels

When to use: User wants to post a message to a Slack channel or DM

Tool sequence:

  1. SLACK_FIND_CHANNELS - Resolve channel name to channel ID [Prerequisite]
  2. SLACK_LIST_ALL_CHANNELS - Fallback if FIND_CHANNELS returns empty/ambiguous results [Fallback]
  3. SLACK_FIND_USERS - Resolve user for DMs or @mentions [Optional]
  4. SLACK_OPEN_DM - Open/reuse a DM channel if messaging a user directly [Optional]
  5. SLACK_SEND_MESSAGE - Post the message with resolved channel ID [Required]
  6. SLACK_UPDATES_A_SLACK_MESSAGE - Edit the posted message if corrections needed [Optional]

Key parameters:

Pitfalls:

2. Search Messages and Conversations

When to use: User wants to find specific messages across the workspace

Tool sequence:

  1. SLACK_FIND_CHANNELS - Resolve channel for scoped search with in:#channel [Optional]
  2. SLACK_FIND_USERS - Resolve user for author filter with from:@user [Optional]
  3. SLACK_SEARCH_MESSAGES - Run keyword search across accessible conversations [Required]
  4. SLACK_FETCH_MESSAGE_THREAD_FROM_A_CONVERSATION - Expand threads for relevant hits [Required]

Key parameters:

Pitfalls:

3. Manage Channels and Users

When to use: User wants to list channels, users, or workspace info

Tool sequence:

  1. SLACK_FETCH_TEAM_INFO - Validate connectivity and get workspace identity [Required]
  2. SLACK_LIST_ALL_CHANNELS - Enumerate public channels [Required]
  3. SLACK_LIST_CONVERSATIONS - Include private channels and DMs [Optional]
  4. SLACK_LIST_ALL_USERS - List workspace members [Required]
  5. SLACK_RETRIEVE_CONVERSATION_INFORMATION - Get detailed channel metadata [Optional]
  6. SLACK_LIST_USER_GROUPS_FOR_TEAM_WITH_OPTIONS - List user groups [Optional]

Key parameters:

Pitfalls:

4. React to and Thread Messages

When to use: User wants to add reactions or manage threaded conversations

Tool sequence:

  1. SLACK_SEARCH_MESSAGES or SLACK_FETCH_CONVERSATION_HISTORY - Find the target message [Prerequisite]
  2. SLACK_ADD_REACTION_TO_AN_ITEM - Add an emoji reaction [Required]
  3. SLACK_FETCH_ITEM_REACTIONS - List reactions on a message [Optional]
  4. SLACK_REMOVE_REACTION_FROM_ITEM - Remove a reaction [Optional]
  5. SLACK_SEND_MESSAGE - Reply in thread using thread_ts [Optional]
  6. SLACK_FETCH_MESSAGE_THREAD_FROM_A_CONVERSATION - Read full thread [Optional]

Key parameters:

Pitfalls:

5. Schedule Messages

When to use: User wants to schedule a message for future delivery

Tool sequence:

  1. SLACK_FIND_CHANNELS - Resolve channel ID [Prerequisite]
  2. SLACK_SCHEDULE_MESSAGE - Schedule the message with post_at timestamp [Required]

Key parameters:

Pitfalls:

Common Patterns

ID Resolution

Always resolve display names to IDs before operations:

Pagination

Most list endpoints use cursor-based pagination:

Message Formatting

Known Pitfalls

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| Find channels | SLACK_FIND_CHANNELS | query |

| List all channels | SLACK_LIST_ALL_CHANNELS | limit, cursor, types |

| Send message | SLACK_SEND_MESSAGE | channel, markdown_text |

| Edit message | SLACK_UPDATES_A_SLACK_MESSAGE | channel, ts, markdown_text |

| Search messages | SLACK_SEARCH_MESSAGES | query, count, sort |

| Get thread | SLACK_FETCH_MESSAGE_THREAD_FROM_A_CONVERSATION | channel, ts |

| Add reaction | SLACK_ADD_REACTION_TO_AN_ITEM | channel, name, timestamp |

| Find users | SLACK_FIND_USERS | search_query or email |

| List users | SLACK_LIST_ALL_USERS | limit, cursor |

| Open DM | SLACK_OPEN_DM | user IDs |

| Schedule message | SLACK_SCHEDULE_MESSAGE | channel, post_at, text |

| Get channel info | SLACK_RETRIEVE_CONVERSATION_INFORMATION | channel ID |

| Channel history | SLACK_FETCH_CONVERSATION_HISTORY | channel, oldest, latest |

| Workspace info | SLACK_FETCH_TEAM_INFO | (none) |

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Example

User request:

Automate Slack workspace operations including messaging, search, channel management, and reaction workflows through Composio's Slack toolkit.

Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.