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. You could also use the Slack New Message trigger to update, create, or perform an action in another application. For instance, simply typing /contact joeblogs@acme.com in Slack adds the joeblogs email address to a specified mailing list in MailChimp. (For more information, and to test this scenario, see 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 create messages automatically, freeing up your time for the work that’s important to you.

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:

  • 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 then click Manage apps.
  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.

Example

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 in App Connect Designer 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.

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

  1. Thor Ingham March 18, 2019

    Slack outgoing webhooks (from slack to ibm) – no longer seem to work. Also the pages on slack.com indicate that the webhook api are being deprecated https://api.slack.com/custom-integrations/outgoing-webhooks

    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.
      Regards,
      Ian

Join The Discussion

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