Slack

Slack_SendMessage

Send a message to a Channel, Direct Message (IM/DM), or Multi-Person (MPIM) conversation. Can send top-level messages or reply to an existing thread. Provide exactly one of: - channel_name; or - conversation_id; or - any combination of user_ids, usernames, and/or emails. In case multiple user_ids, usernames, and/or emails are provided, the tool will open a multi-person conversation with the specified people and send the message to it. To reply to a thread, also provide thread_ts (the 'ts' field of the parent message). Optionally set reply_broadcast to true to also post the reply to the main conversation.

Remote slack

Remote (network-hosted)

Other tools also called Slack_SendMessage? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "emails": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The emails of the people to message."
    },
    "message": {
      "type": "string",
      "description": "The content of the message to send."
    },
    "user_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Slack user IDs of the people to message."
    },
    "thread_ts": {
      "type": "string",
      "description": "The timestamp of the parent message to reply to in a thread. Use the 'ts' field from the parent message (the first message in the thread), not from a reply. If omitted, the message is sent as a new top-level message. Get this value from prior get_messages or get_thread_messages results."
    },
    "usernames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Slack usernames of the people to message. Prefer providing user_ids and/or emails, when available, since the performance is better."
    },
    "channel_name": {
      "type": "string",
      "description": "The channel name to send the message to. Prefer providing a conversation_id, when available, since the performance is better."
    },
    "conversation_id": {
      "type": "string",
      "description": "The conversation ID to send the message to."
    },
    "reply_broadcast": {
      "type": "boolean",
      "description": "When replying to a thread (thread_ts is set), set to true to also post the reply to the main conversation. Only valid when thread_ts is provided. Defaults to False"
    }
  }
}
          

Provider

Slack →