Skip to main content

Overview

Slack tools allow you to interact with the Slack messaging platform. It provides functionalities for sending messages, retrieving user profiles, broadcasting messages, and more.

Key Features

  • SLACK_POST_MESSAGE
    • Send messages to users or channels
  • SLACK_POST_BLOCKS_MESSAGE
    • Post rich messages to channels using the Block Kit format (sections, headers, images, dividers, actions, etc.)
  • SLACK_GET_CONVERSATION_REPLIES
    • Retrieve replies to a specific thread in a channel

Authentication

To use the Slack tools, you to create a Slack App and obtain a Bot User OAuth Access Token. You can create a Slack App and get the token from the Slack API website. Follow the instructions in the developer documentation to set up your app and get the token.
For detailed setup instructions on configuring Slack credentials, see the Slack Credentials page.
Treat API keys as sensitive information and never commit them to public repositories.

Example: Sending and Retrieving Messages

Example: Posting a Block Kit Message

SLACK_POST_BLOCKS_MESSAGE accepts a blocks array (up to 50 block objects, each with a type property), a fallback text shown in notifications and clients that do not support Block Kit, a channel, and an optional thread_ts to reply in a thread.