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_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

- id: get_conversation_replies
  tool: SLACK_GET_CONVERSATION_REPLIES
  config:
    - name: token
      value: "{{secrets.SLACK_BOT_TOKEN}}"
  input:
    - name: channel
      value: "#jinba-dev-tmp"
    - name: thread_ts
      value: "1738331888.564969"
- id: send_message
  tool: SLACK_POST_MESSAGE
  config:
    - name: token
      value: "{{secrets.SLACK_BOT_TOKEN}}"
  input:
    - name: text
      value: Hello, world!
    - name: channel
      value: "#900_tl_yuta"