Slack

Send messages, manage channels, find users, and upload files with a Slack bot.

v1.0.1Source

Install

Send and change messages, manage channels, find users, add reactions, and upload files with a Slack bot, and start a workflow on a Slack event, such as a new message or a mention. Use it for team notifications and chat bots.

Slack@zerodot/slackInstall
  1. Open System, then Nodes.
  2. Find Slack and click Install.
  3. Use the new nodes at once. You do not restart.

How it works

Slack (slack.api) is an action node in the Slack package (@zerodot/slack): Send messages, manage channels, find users, and upload files with a Slack bot.

  • Message: send, update, delete, get the permalink
  • Channel: list, get, create, archive, join, invite users
  • User: get, list, get by email
  • Reaction: add, remove
  • File: upload binary data or text, and share it in a channel or a thread

Messages can have Block Kit blocks as JSON. When Slack answers with ok: false, the node fails with the error code of Slack and a short help text. A rate limit (HTTP 429) gives the time to wait from Retry-After.

Logins it can use

Slack bot (slack.bot): accessToken is the Bot User OAuth Token (xoxb-…). signingSecret is from Basic Information > App Credentials, and only the trigger needs it. Both are secret. The Test button calls auth.test.

Scopes for the node: chat:write, channels:read, groups:read, im:read, mpim:read, channels:manage, groups:write, channels:join, users:read, users:read.email, reactions:write, files:write. Give only the scopes of the operations that you use.

Guides and related hubs