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 send us comments by email.
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 firstname.lastname@example.org 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.
- Sign in to Slack.
- Click the arrow next to your team name then click Manage apps.
- In the Search App Directory field, type “Slash Commands”.
- Click Add Configuration.
- Enter a Slash Command name then click Add Slash Command Integration.
- 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.
- Click Save Integration.
To test your custom slash command, complete the following steps.
- Go to any channel in Slack.
- Type the slash command you just created.
- 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 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.