Slack

Slack Help & Support

  • How to Get Started with Slack on Zapier
  • Popular Things to do with Slack
  • Tips for Formatting Slack Messages
  • Working with Message Attachments in Slack
  • Common Problems with Slack

How to Get Started with Slack on Zapier

About Slack's Integration#

  • Admin/owner permissions - User needs to be a Slack "owner" in addition to being an admin
  • Paid/versioned account - Works for free or paid Slack accounts
  • Custom field support: N/A
  • Partner’s documentation: N/A

Connecting with Slack#

The first thing you'll need to do to get started with hooking up Slack with Zapier and the hundreds of apps we work with is adding your Slack account to Zapier. When the time is right, we'll ask you to add your Account:

Get started with adding your account!

You should then get a pop-up window from Slack asking you which Slack Team account you'd like to connect:

Team

You'll then be asked to authorize the connection between Slack and Zapier.

Authorize

After authorizing, you'll get sent back to Zapier where you now have your Slack account connected!

Success

Popular Things to do with Slack

Get Slack notifications for new Typeform entries

Typeform + Slack

Try It

Post a new message to Slack whenever a Google Sheets row is updated

Google Sheets + Slack

Share new Facebook Page posts in Slack

Facebook Pages + Slack

Post new Gmail emails to a Slack channel [Business Gmail Accounts Only]

Gmail + Slack

Email to Slack and Chat From Your Inbox

Email by Zapier + Slack

Get Slack notifications for new email matching Gmail search query (such as, from:boss@work.com) [Business Gmail Accounts Only]

Gmail + Slack

Tips for Formatting Slack Messages

Message Text Formatting#

To format your message's text with styling (such as bold, italic, block quotes, code blocks and lists) you'll simply need to enter these in the same way you would do on Slack.

For example entering this:

Slack formatting in Zapier

Will look like this in Slack:

Slack formatting in Slack

You can read more on formatting the text on messages on Slack's formatting help guide here.

Formatting Links#

Slack will recognise normal links and make sure they're clickable on your post.

If you want to make text into link, simply enter your link in the following format into the text field:

<http://www.zapier.com|Text to make into a link>

Like this:

link in Zapier

Which will look like this in Slack:

link in Slack

Slack Announcements#

For special announcements such as @channel, @group, @here and @everyone, you'll need to enter those in the following format:

<!channel>, <!group>, <!here> and <!everyone>

Like this:

Announcements in Zapier

Which will look like this in Slack:

Announcements in Slack

Emoji#

If you want to pass on an Emoji as part of your message, you'll just need to use the colon version of it for example:

:smile: :white_check_mark: or :simple_smile:

Like this:

emoji on Zapier

Which will look like this in Slack:

emoji on Slack

This is just a basic overview of what is possible. For more detailed information on formatting your Slack's messages, you can refer to their formatting guide here.

Please don't hesitate to drop us a message if you get stuck or need a hand at all.

Working with Message Attachments in Slack

Using Message Attachments in Slack Triggers#

Due to popular demand, message attachment data is now available for most triggers. If the message is proceeded by an indent, then it's a message attachment:

Slack Message Attachment Example

Note: We are currently only able to trigger on non-ephemeral attachments, which appear to all users in a #channel or IM (rather than being visible to only you).

A lot of messages with these attachments come from bots, so in order to see and trigger on those, make sure you select "yes" on the "Trigger on Bot Messages?" field. If your bot doesn't post any text with the attachment, the first attachment's text will become that message's text. We'll include attachment details in the response as well.

Note: This feature is only available for trigger steps, not actions. If you'd like to send in a feature request for this to be added - contact us and let us know!

How do I filter message attachments?#

Since message attachments aren't always going to be there, you'll probably want to limit your trigger to fire on certain user/bot names or channels. If you want to limit your trigger to a certain channel, use the "New Message in Channel" trigger and select your desired channel.

If you want your Zap to only trigger on certain user/bot names, you can add a Filter and look for the username field like so:

""

Example Zap#

Sometimes message attachments can return a lot of data, and dealing with these responses can be a little daunting. So let's use a message from my Playlist Bot as an example. It posts a GIF of an artist and an associated playlist from Spotify, which are two separate attachments in Slack. Here's the message it posts to my channel:

""

To trigger off this, I set up my Trigger with "New Message Posted to Channel" and select your desired channel. Before you pull in samples, make sure the kind of post you're looking to trigger on is the most recent in the channel, otherwise you won't be able to grab that data.

Because not all messages will have this data, it's a good idea to set up a Filter to make sure we're only watching for posts from this particular bot. Let's add a Filter step to our Zap and set it to check our bot's username like above:

""

Great! Now we can take our desired action. In this case, it's posting this playlist and the associated GIF as a Photo Post to Tumblr:

""

And voila! Our GIF and the link to the playlist it made it to our Tumblr page:

""

Common Problems with Slack

Slack Handles/Usernames Not Working Correctly#

In late 2017 Slack started phasing out usernames and started using a numerical ID for users instead. This means that when using @user in configuring a Slack Zap, some handles/usernames would work, while others won't.

Each Slack user now has a Slack User ID to identify it. Using this User ID would ensure that your Zap configuration doesn't run into issues.

To Find a Person's User ID:

  • Click "View Profile" for a particular User

Slack view profile button highlighted

  • That would pop open a bigger view on the right hand side of the Slack interface. Click on the down button underneath the Profile Photo:

"Copy Memeber ID" button highlighted under a Specific profile

  • Click "copy member ID" to put their ID on your clipboard.

  • If you want to post a message that includes an @ so that they get a notification, use the following format in creating the Slack message template:

    • <@ID>

Slack message showing how to format the ID in sending out an @ message

  • If you're trying to configure a Slack Send Direct Message step to that user, paste the ID straight into the 'To Username' field, without any brackets, etc.

Slack Send Direct Message interface showing the ID added to the To Username field

My triggers aren't picking up the messages I need!#

The message you're looking to trigger off of might be sent as a message attachment in Slack. If the message is proceeded by an indent, then it's a message attachment:

Slack Message Attachment Example

Normally these are messages sent by bots, slash commands, or other Slack integrations. Unfortunately, none of our triggers are currently able to trigger on content in message attachments.

Sending direct messages as a user#

This only applies to the legacy app (named Slack (Legacy). If you're creating a new zap, you can safely ignore this

Right now it is not possible to send direct messages to one user, from another user. Direct Messages will always be sent to the recipient via their Slackbot direct message.

Sending channel messages as a user#

There are no special actions needed to send messages as yourself. If you're seeing errors, please write in at contact@zapier.com.

Slash commands are not executing#

Unfortunately, it's not possible to post slash commands to Slack via their API, so if you send /giphy cute cats it'll just show up with that text.

If you'd like to use Zapier to build a slash command, check out this helpful guide.

Error: Could Not Add Service#

If you see this error, it means that your team's free Slack account is at the limit of 10 integrations. You'll need to upgrade your Slack account or disconnect another integration.

Channel names are posting as text rather than link#

If you see this:

""

But want this:

""

Make sure that the "Send @mentions notifications?" field is set to "Yes."

My New Mention trigger is not finding any messages#

You must specify either a User Name or a Highlight Word for this zap to work. If you specify both, then both the user name and the highlight word will need to be included in a single message in order to trigger the zap.

If you've specified one or both and the trigger, click the Continue button, then click "Connect & Continue". Once you see the spinning wheel, go into Slack and post a message with the trigger criteria in any public channel. Zapier will receive that message and you'll see the trigger marked as Test Successful:

""

When testing a "new message" trigger, the test says it can't find any messages even though there are plenty!#

When testing message triggers, we only look for messages from humans (not apps or bots). Human users have profile information that you might want to map (while bot users don't), so we want that to be available in the editor. If Listen for Bots is true, then we'll trigger properly during actual runs.

"Add Reminder" action returns "Cannot Parse"#

The format of the date/time stamp for this action is quite specific. It can be A 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").

Connect the apps you use every day

Get started with a Free account

Or
By signing up, you agree to Zapier’s Terms of Service