Slack node

Use the Slack node to automate work in Slack, and integrate Slack with other applications. Automated Workflows has built-in support for a wide range of Slack features, including creating, archiving, and closing channels, getting users and files, as well as deleting messages.

On this page, you'll find a list of operations the Slack node supports and links to more resources.

Credentials

Refer to Slack credentials for guidance on setting up authentication.

Operations

  • Channel
    • Archive a channel.
    • Close a direct message or multi-person direct message.
    • Create a public or private channel-based conversation.
    • Get information about a channel.
    • Get Many : Get a list of channels in Slack.
    • History : Get a channel's history of messages and events.
    • Invite a user to a channel.
    • Join an existing channel.
    • Kick : Remove a user from a channel.
    • Leave a channel.
    • Member : List the members of a channel.
    • Open or resume a direct message or multi-person direct message.
    • Rename a channel.
    • Replies : Get a thread of messages posted to a channel.
    • Sets purpose of a channel.
    • Sets topic of a channel.
    • Unarchive a channel.
  • File
    • Get a file.
    • Get Many : Get and filter team files.
    • Upload : Create or upload an existing file.
  • Message
    • Delete a message
    • Get permalink : Get a message's permalink.
    • Search for messages
    • Send a message
    • Send and Wait for Approval : Send a message and wait for approval from the recipient before continuing.
    • Update a message
  • Reaction
    • Add a reaction to a message.
    • Get a message's reactions.
    • Remove a reaction from a message.
  • Star
    • Add a star to an item.
    • Delete a star from an item.
    • Get Many : Get a list of an authenticated user's stars.
  • User
    • Get information about a user.
    • Get Many : Get a list of users.
    • Get User's Profile .
    • Get User's Status .
    • Update User's Profile .
  • User Group
    • Create a user group.
    • Disable a user group.
    • Enable a user group.
    • Get Many : Get a list of user groups.
    • Update a user group.

Related resources

Refer to Slack's documentation{:target=_blank .external-link} for more information about the service.

Required scopes

Once you create a Slack app for your Slack credentials, you must add the appropriate scopes to your Slack app for this node to work. Start with the scopes listed in the Scopes | Slack credentials page.

If those aren't enough, use the table below to look up the resource and operation you want to use, then follow the link to Slack's API documentation to find the correct scopes.

Resource Operation Slack API method
Channel Archive conversations.archive{:target=blank .external-link}
Channel Close conversations.close{:target=blank .external-link}
Channel Create conversations.create{:target=blank .external-link}
Channel Get conversations.info{:target=blank .external-link}
Channel Get Many conversations.list{:target=blank .external-link}
Channel History conversations.history{:target=blank .external-link}
Channel Invite conversations.invite{:target=blank .external-link}
Channel Join conversations.join{:target=blank .external-link}
Channel Kick conversations.kick{:target=blank .external-link}
Channel Leave conversations.leave{:target=blank .external-link}
Channel Member conversations.members{:target=blank .external-link}
Channel Open conversations.open{:target=blank .external-link}
Channel Rename conversations.rename{:target=blank .external-link}
Channel Replies conversations.replies{:target=blank .external-link}
Channel Set Purpose conversations.setPurpose{:target=blank .external-link}
Channel Set Topic conversations.setTopic{:target=blank .external-link}
Channel Unarchive conversations.unarchive{:target=blank .external-link}
File Get files.info{:target=blank .external-link}
File Get Many files.list{:target=blank .external-link}
File Upload files.upload{:target=blank .external-link}
Message Delete chat.delete{:target=blank .external-link}
Message Get Permalink chat.getPermalink{:target=blank .external-link}
Message Search search.messages{:target=blank .external-link}
Message Send chat.postMessage{:target=blank .external-link}
Message Send and Wait for Approval chat.postMessage{:target=blank .external-link}
Message Update chat.update{:target=blank .external-link}
Reaction Add reactions.add{:target=blank .external-link}
Reaction Get reactions.get{:target=blank .external-link}
Reaction Remove reactions.remove{:target=blank .external-link}
Star Add stars.add{:target=blank .external-link}
Star Delete stars.remove{:target=blank .external-link}
Star Get Many stars.list{:target=blank .external-link}
User Get users.info{:target=blank .external-link}
User Get Many users.list{:target=blank .external-link}
User Get User's Profile users.profile.get{:target=blank .external-link}
User Get User's Status users.getPresence{:target=blank .external-link}
User Update User's Profile users.profile.set{:target=blank .external-link}
User Group Create usergroups.create{:target=blank .external-link}
User Group Disable usergroups.disable{:target=blank .external-link}
User Group Enable usergroups.enable{:target=blank .external-link}
User Group Get Many usergroups.list{:target=blank .external-link}
User Group Update usergroups.update{:target=blank .external-link}

What to do if your operation isn't supported

If this node doesn't support the operation you want to do, you can use the HTTP Request node to call the service's API.

You can use the credential you created for this service in the HTTP Request node:

  1. In the HTTP Request node, select Authentication > Predefined Credential Type .
  2. Select the service you want to connect to.
  3. Select your credential.