Skip to main content

Slack Adapter

A Transform Custom node that posts the message reaching it into a Slack channel.

Part of the Linkiir Adapters package — see requesting the package.

What it does

When a message arrives, the node posts its content to the configured channel as your Slack app. It can prefix the post with a mention, resolved from an email address, so the right person is notified.

upstream node → Slack Adapter → Slack channel

Common uses: alerting a support channel when a feed errors, and announcing that a batch finished.

Before you start

In your Slack workspace:

  1. Create a Slack app, or use an existing one.
  2. Under OAuth & Permissions, add the scopes the app needs to post messages, and to look up users by email if you plan to use mentions.
  3. Install the app to the workspace and copy the Bot User OAuth Token.
  4. Invite the app to the target channel. A bot that is not in the channel cannot post to it.
  5. Copy the channel ID from the channel's URL.
Treat the bot token as a credential

Enter the token in the API Token field, which is masked and encrypted in the project. Anyone holding it can post as your app. Rotate it in Slack if it is ever exposed.

Set it up

  1. Open the Slack node in the Workflow Builder and click Edit.

  2. Fill in the fields:

    FieldValue
    API TokenThe Bot User OAuth Token
    Channel IDThe target channel's ID
    Mention EmailOptional. The email of a workspace member to mention
  3. Set Live Mode off, then Save.

  4. Send one message through and check the log — it shows the post that would have been made.

  5. Turn Live Mode on and send another. The message appears in the channel.

Configuration reference

FieldTypeDefaultPurpose
API Tokenpassword(empty)Slack Bot User OAuth Token
Channel IDstring(empty)Target channel identifier
Mention Emailstring(empty)Email resolved to a user mention on the post. Leave empty for no mention
Live ModebooltrueWhen off, nothing is sent to Slack
Verify TLSbooltrueVerify Slack's TLS certificate

Verify it worked

  • With Live Mode on, the message appears in the channel within a second or two.
  • With Mention Email set, the post begins with that person's mention.
  • The node log records the outcome for each attempt.

If it didn't work

Symptom in the logCauseFix
SLACK_ERROR: invalid_authThe token is wrong or has been revokedRegenerate the Bot Token in the Slack app settings and re-enter it
SLACK_ERROR: channel_not_foundThe channel ID is wrongCopy the ID again from the channel's URL
SLACK_ERROR: not_in_channelThe app was never invited to that channelInvite it, then retry
SLACK_ERROR: missing_scopeThe app lacks a scope the call needsAdd the scope under OAuth & Permissions and reinstall the app
USER_NOT_FOUNDMention Email is not a member of the workspaceUse a member's email, or clear the field
REQUEST_FAILED or a timeoutThe server cannot reach SlackCheck outbound network access and DNS
Posts arrive emptyThe upstream node is sending nothingCheck the source or transform produces content
Nothing is posted, no errorLive Mode is offTurn Live Mode on

Next