Slack

Version Latest

This is the documentation of the new Slack app.
Here is the documentation of the legacy Slack (legacy) app.

Getting Started with Slack

Prerequisites

  • A Slack account

To use Slack with Integromat, you must have a Slack account. If you do not have one, you can create a Slack account at slack.com/get-started.

The terminology explanation:
DMDirect Message
IMInstant Message
Private Channelformerly Group
Direct Messageformerly IM
Channel= Conversation in the API documentation, channel in the Slack app.

Connecting Slack to Integromat

To connect Slack to Integromat you must connect your Slack account to Integromat. To do so, follow the general instructions for Connecting to services.

After you click the Continue button, Integromat will redirect you to the Slack website where you will be prompted to grant Integromat access to your account.

2019-02-19_12_05_58-Window.png

Some modules may require additional permissions extension. In that case, you will be asked to authorize the required permissions.

Messages

New Message

Retrieves message details when a new message is posted to a selected public channel, private channel, direct message channel, or to a multiparty direct message channel.

Webhook nameEnter the name for the webhook. E.g. New private channel message.
Event typeSelect the event that triggers the module. The event can be posted to a selected channel, private channel, direct message channel, or to a multiparty direct message channel.
ConnectionEstablish a connection to your Slack account.
ChannelSelect the particular channel you want to watch for new messages.

Watch Public Channel Messages

Retrieves message details when a new message is posted to a public channel.

ConnectionEstablish a connection to your Slack account.
ChannelSelect the public channel you want to watch for new messages.
LimitSet the maximum number of messages Integromat will return during one execution cycle.

Watch Private Channel Messages

Retrieves message details when a new message is posted to a private channel (formerly Group).

ConnectionEstablish a connection to your Slack account.
ChannelSelect the private channel you want to watch for new messages.
LimitSet the maximum number of messages Integromat will return during one execution cycle.

Watch Direct Messages

Retrieves message details when a new direct message from a specified user is received.

ConnectionEstablish a connection to your Slack account.
IM ChannelSelect the user you want to watch for new direct messages.
LimitSet the maximum number of messages Integromat will return during one execution cycle.

Watch MP Direct Messages

Triggers when a new message is posted to a multiparty direct message channel.

ConnectionEstablish a connection to your Slack account.

Search for Message

Searches the Slack workspace for the entered search term.

ConnectionEstablish a connection to your Slack account.
Query
Enter the search term you want to search the workspace for.
See Search in Slack for a list of Search modifiers.
LimitSet the maximum number of results Integromat will return during one execution cycle.

Get a Message

Retrieves the details of a message from a selected channel.

ConnectionEstablish a connection to your Slack account.
Channel ID

Enter (map) the Channel ID.

The ID can be retrieved using the Search for Message module.
Message IDEnter (map) the message timestamp of the message you want to retrieve information about.
The timestamp can be retrieved using the Search for Message module.

Create a Message

Creates a new message.

ConnectionEstablish a connection to your Slack account.
Channel ID

Enter (map) the Channel ID of the channel you want to post the message to.

The ID can be retrieved, for example, using the Search for Message module.
Text

Enter the text content of the message you want to create.

For detailed information about text formatting, please refer to the Slack documentation.
As user

If the Yes option is selected, the message is created as the authenticated user instead of as a bot.

Attachments

Add an attachment. Required when the field Text is left empty.

For more details about attachments please refer to the Attaching content and links to messages Slack documentation.

Icon emoji

Enter the emoji you want to use for the posted message. The emoji cheat sheet

Overrides Icon url (below). The As user option (above) must be disabled, otherwise this field is ignored. 

Icon URL

Enter the URL to an image you want to use as the icon for this message. The As user option (above) must be disabled, otherwise this field is ignored.  

Link names

Names and channels will not be linkified in the @username or #channel format, unless you enable this option. For more information, refer to the formatting spec.

Parse message text

Defines how messages are treated.

Use markdown

Disable Slack markup parsing by selecting the No option.

Unfurl primarily text-based content

Enable this option to enable unfurling of primarily text-based content. For detailed information about unfurling in Slack, please refer to the Unfurling links in messages article.

Unfurl media content

Disable this option to to disable unfurling of media content. For detailed information about unfurling in Slack, please refer to the Unfurling links in messages article.

User name

Enter the name of your bot. The As user option (above) must be disabled, otherwise this field is ignored. 

Update a Message

Allows you to edit an existing message.

ConnectionEstablish a connection to your Slack account.
Channel ID

Enter (map) the Channel ID.

The ID can be retrieved using the Search for Message module.
Message IDEnter (map) the message timestamp of the message you want to update.
The timestamp can be retrieved using the Search for Message module.
Text

Enter the new text content of the message you want to update.

For detailed information about text formatting, please refer to the Slack documentation.
As user

If the Yes option is selected, the message is updated as the authenticated user instead of as a bot.

Attachments

Add an attachment. Required when the field Text is left empty.

For more details about attachments please refer to the Attaching content and links to messages Slack documentation.

Link names

Names and channels will not be linkified in the @username or #channel format, unless you enable this option. For more information, refer to the formatting spec.

If you used Link names or Parse message text options in the original message, you should specify them when running the Update a Message module as well.
Parse message text

Change how messages are treated.

If you used Link names or Parse message text options in the original message, you should specify them when running the Update a Message module as well.

2019-06-05_13_55_52-Empty_integration___Integromat.png

Delete a Message

Deletes a specified message.

ConnectionEstablish a connection to your Slack account.
Channel ID

Enter (map) the Channel ID.

The ID can be retrieved using the Search for Message module.
Message IDEnter (map) the message timestamp of the message you want to delete.
The timestamp can be retrieved using the Search for Message module.

Conversations

List Channels

Returns channels in a workspace.

ConnectionEstablish a connection to your Slack account.
Exclude archived
Enable this option to exclude archived channels in results.
TypeSelect the type of channels you want to retrieve.
LimitSet the maximum number of channels Integromat will return during one execution cycle.

List Members in Channel

Returns users in the selected Channel.

ConnectionEstablish a connection to your Slack account.
Channel
Select the channel you want to get the list of members from.
LimitSet the maximum number of members Integromat will return during one execution cycle.

Archive a Channel

Archives a channel

ConnectionEstablish a connection to your Slack account.
Channel ID
Enter (map) the channel ID of the channel you want to archive.

Unarchive a Channel

Unarchives a channel

ConnectionEstablish a connection to your Slack account.
Channel ID
Enter (map) the channel ID of the channel you want to unarchive.

Set the Topic of a Channel

Sets the channel purpose.

ConnectionEstablish a connection to your Slack account.
Channel
Select or map the channel which purpose you want to set.
PurposeEnter the purpose. Does not support formatting or linkification.

Join a Channel

Joins the user to a channel.

ConnectionEstablish a connection to your Slack account.
Channel
Select or map the channel you want to join.

Leave a Channel

Removes the authenticated user from a channel.

ConnectionEstablish a connection to your Slack account.
Channel
Select or map the channel you want to leave.

Watch Files

Retrieves file details when a new file is added to a channel.

ConnectionEstablish a connection to your Slack account.
TypeSelect the file type you want to watch for.
Channel
Select or map the channel to filter the files from.
Created by
Filter files to those created by the selected user.
LimitSet the maximum number of files Integromat will return during one execution cycle.

List Files

Lists all files based on the specified filter.

ConnectionEstablish a connection to your Slack account.
TypeSelect the file types you want to retrieve.
Channel
Select or map the channel to filter the files from.
Created byFilter files created by the selected user.
Date fromSet the start date you want to list files from. List of supported date formats.
Date toSet the end date you want to list files until. List of supported date formats.
LimitSet the maximum number of files Integromat will return during one execution cycle.

Get a File

Retrieves information about a file in your workspace.

ConnectionEstablish a connection to your Slack account.
File IDEnter (map) the ID of the file you want to retrieve details about.

Download a File

Gets a file from a URL.

ConnectionEstablish a connection to your Slack account.
URL private downloadEnter (map) the Url Private download value from the Get a File module.

4MN3j0nKws.gif

Upload a File

Uploads a file to a selected channel.

ConnectionEstablish a connection to your Slack account.
ChannelSelect the channel where you want to upload the file.
Source fileMap the file from the previous module (e.g. Dropbox > Get a File) or enter (map) the file name and file data into respective fields.
TitleEnter the title of file.
Initial commentThe message text introducing the file in the specified channel.

Create a Text File

Creates and uploads a text file to a channel.

ConnectionEstablish a connection to your Slack account.
ChannelSelect the channel where you want to upload the created file.
File nameEnter the name of the file.
ContentEnter the text content of the file.
TitleEnter the title of the file.
Initial commentThe message text introducing the file in the specified channel.

Delete a File

Deletes a file.

ConnectionEstablish a connection to your Slack account.
File ID
Enter (map) the ID of the file you want to delete.

Users

Watch Users

Retrieves user details when a new user is added to the workspace.

ConnectionEstablish a connection to your Slack account.
LimitSet the maximum number of users Integromat will return during one execution cycle.

List Users

Returns users and their details in the workspace.

ConnectionEstablish a connection to your Slack account.
LimitSet the maximum number of users Integromat will return during one cycle.

Search for User

Returns a user searched by the email address.

ConnectionEstablish a connection to your Slack account.
EmailEnter the email address of the user you want to search for.

Get a User

Retrieves user details of the user within a workspace.

ConnectionEstablish a connection to your Slack account.
User IDEnter (map) the User ID of the user you want to retrieve information about.

Set Status

Allows you to set a user's profile information.

ConnectionEstablish a connection to your Slack account.
Status textEnter the status text. You can enter up to 100 characters.
Status emojiEnter the status emoji. E.g. :smile:. The list of possible emojis can be found in the Slack Emoji Cheat Sheet.
Status expirationEnter the date and time when you want the status to expire. The List of available date and time formats.

Invite Users

Allows you to invite a user to a channel that you are a member of.

ConnectionEstablish a connection to your Slack account.
ChannelSelect the channel where you want to invite selected users.
UsersSelect the users you want to add to the channel.

Kick a User

This module allows you to remove another member from a channel.

ConnectionEstablish a connection to your Slack account.
ChannelSelect the channel you want to remove the member from.
UsersSelect the user you want to remove from the channel.

Stars

Add a Star

Adds a star to a channel, message, file, or a file comment.

ConnectionEstablish a connection to your Slack account.
Add a star to
Select whether you want to add a star to a channel, file, or file comment.
Channel/File ID/File comment ID
Enter respective IDs. You can star a message by selecting a Channel and entering the message timestamp.

Remove a Star

Removes a star from the channel, message, file, or a file comment.

ConnectionEstablish a connection to your Slack account.
Add a star to
Select whether you want to remove the star from a channel, file, or file comment.
Channel/File ID/File comment ID
Enter respective IDs of the objects you want to remove the star from. You can remove a star from the message by selecting a Channel and entering the message timestamp.

Reminders

List Reminders

Lists all reminders created by or given to the authenticated user.

ConnectionEstablish a connection to your Slack account.
LimitSet the maximum number of reminders Integromat will return during one execution cycle.

Get a Reminder

Retrieves the details of a reminder.

ConnectionEstablish a connection to your Slack account.
Reminder IDEnter (map) the ID of the reminder you want to retrieve information about.

Complete a Reminder

Marks a reminder as complete.

ConnectionEstablish a connection to your Slack account.
Reminder IDEnter (map) the ID of the reminder you want to mark as complete.

Create a Reminder

Creates a reminder.

ConnectionEstablish a connection to your Slack account.
TextEnter the content of the reminder
TimeWhen this reminder should happen: Enter the Unix timestamp (up to five years from now), the number of seconds until the reminder (if within 24 hours), or a natural language description (Ex. "in 15 minutes," or "every Thursday").
UserSelect or map the user you want to create a reminder for.

Delete Reminder

Deletes a reminder.

ConnectionEstablish a connection to your Slack account.
Reminder IDEnter (map) the ID of the reminder you want to delete.

Make an API Call

Allows you to perform a custom API call.

ConnectionEstablish a connection to your Slack account.
URL
Enter a path relative to https://slack.com/api/.
Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

HeadersEnter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query StringEnter the request query string.
BodyEnter the body content for your API call.

Example

The following API call lists all users in the workspace:

2019-06-06_14_56_35-Window.png


Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.