You can use IBM App Connect to pass key data between Slack and other apps – automatically, in real time.

You can use App Connect to connect Slack to your apps by mapping data graphically – without the need for coding – meaning that you can achieve a return on your investment in minutes or hours, not days or months.

This guide is to show you how…

If you can’t find what you want, or have comments about the “how to” information, please either add comments to the bottom of this page or .

About Slack

Slack is a web-based, real-time and archived messaging app for your team. You can communicate in open or private channels, send direct messages to colleagues, and share files.

A typical business scenario

Say you’re part of a large, international marketing team, supporting a number of products. You have colleagues in different geographies and in different time zones. It’s a challenge to ensure that everyone knows what’s going on, so you’re using Slack to centralize communications. Slack provides real-time messaging for your whole team, so everyone can join in the conversation. Messages are saved, so when people in other time zones come online, they can catch up with what’s going on.

Your team is monitoring various sales and marketing apps and posting messages on Slack to share important activity. But it’s a time-consuming manual process, and it’s taking you away from creating that new marketing campaign.

How App Connect can help

Connect App Connect to your apps, then let it pass the key information to Slack; posting alerts automatically when updates happen in your sales and marketing apps. So when a new lead is added in Salesforce or Marketo, App Connect will automatically create a message in Slack. So no more time wasted monitoring apps and posting messages manually. Whether you want to notify your team every time a lead is created in Salesforce, or whenever someone signs up to your Eventbrite event, we’ve got it covered. (For more information, and to test a scenario, see the tutorial Classifying Salesforce cases and posting a message in Slack.)

You could also use the Slack New Message trigger to update, create, or perform an action in another application. For instance, simply typing /contact in Slack adds the joeblogs email address to a specified mailing list in MailChimp. (For more information, and to test this scenario, see the tutorial Creating an event driven flow so that you can use Slack to perform an action in another application.)

It’s easy to build flows in IBM App Connect that interact with Slack channels and users automatically, freeing up your time for the work that’s important to you.

Channels and users of a Slack account connected to App Connect. (Click image to view full size.)
Direct message sent to a Slack user by App Connect. (Click image to view full size.)

What should I consider first?

You can see a full list of the trigger events and the actions that are available with Slack on the Applications tab on the App Connect Catalog page. Before you add some of the Slack events or actions to your flow, make sure you have the following resources:

  • A Slack workspace. If your team isn’t using Slack yet, you can get started with Slack (without charge) and create a Slack workspace at
  • You’ll need your team’s Slack URL so that you can connect App Connect to it.
  • If you want to use the new message action in Slack as the event trigger, you’ll need to configure the Callback URL that is displayed in the UI when you select the New message trigger. To do this, you need to create a custom slash command in Slack. To create a custom slash command in Slack, complete the following steps.
  1. Sign in to Slack.
  2. Click the arrow next to your team name and then click Administration > Manage apps.

    Alternatively, click Add apps as shown in the following example.

    In Slack, use the Add apps option to add a new slash command

  3. In the Search App Directory field, type “Slash Commands”.
  4. Click Add Configuration.
  5. Enter a Slash Command name then click Add Slash Command Integration.
  6. In the Integration Settings section, update the following fields with the following details to create a Slack Slash Command:
    • URL: Paste the Callback URL displayed in the App Connect UI.
    • Method: POST (The data is sent to your URL as a HTTP POST with a content-type header set as application/x-www-form-urlencoded).
    • Update the other fields as desired.
  7. Click Save Integration.

To test your custom slash command, complete the following steps.

  1. Go to any channel in Slack.
  2. Type the slash command you just created.
  3. A “Message published” message is displayed in Slack.


Using the Slack new message trigger to perform an action in another application

Learn how easy it is to create an event driven flow that is triggered by a new message in Slack so that you can perform an action in another app.

When I create a new case in Salesforce, a message classified by Watson Natural Language Classifier is created in Slack

Learn how easy it is to create an event-driven flow to classify the text from a Salesforce case. Then, after the text has been classified, automatically create a message in Slack identifying the type of case that has been raised and the case number.

4 comments on"How to use IBM App Connect with Slack"

  1. In the Search App Directory field, type “Slash Commands”.
    Enter a Slash Command name then click Add Slash Command Integration.

    why slash command , is not IBM App Connect?

    • @Glen Hi,
      Slash commands are part of Slack. For Slack to integrate with an app (like App Connect), you create a custom slash command in Slack that defines how the app works with Slack … in this case, for Slack to listen for the custom trigger in a Slack channel and then POST data to App Connect through its webhook.

  2. Thor Ingham March 18, 2019

    Slack outgoing webhooks (from slack to ibm) – no longer seem to work. Also the pages on indicate that the webhook api are being deprecated

    Integrations where slack is the consumer works as intended.

    • Ian_Larner March 19, 2019

      @Thor Ingham, Hi
      Thanks for the comment. I’ve passed your comment on to the Slack connector squad for an answer.

Join The Discussion

Your email address will not be published. Required fields are marked *