Using a Single Slack App for Multiple Channel Triggers in n8n

Hi everyone,

I’m trying to set up two separate workflows in n8n that are triggered by messages sent to different Slack channels:

  • Workflow A should trigger from messages posted in Slack Channel A.
  • Workflow B should trigger from messages posted in Slack Channel B.

In my previous experience with Make.com, I could use a single Slack connection and configure the specific channel at the scenario (workflow) level. This made it easy to listen to different channels without needing multiple Slack apps.

However, in n8n, it appears that each Slack Trigger node requires a unique webhook URL, and since each Slack app only supports one request URL, I’m currently forced to create a separate Slack app for each workflow.

Is there a workaround to use a single Slack app in n8n to listen to multiple Slack channels across different workflows?
Ideally, I’d like to avoid managing multiple Slack apps just for the sake of triggering workflows from different channels.

Any suggestions or best practices would be greatly appreciated!

Thanks!

2 Likes

Hi,

I think you can. So copy your first slack trigger. They will then both have the same production url. If it works, feel free to mark as solved.

I was having the exact same problem and was wondering if I have to create multiple Slack applications.

A possible solution I was investigating was to create one Slack Trigger then depending on the values of the payload, triggers the right sub-flow (in your case, that would handle Channel A and B differently depending on the channel name or event you want).

Unfortunately, @Grot suggestion only triggers one Slack Trigger node. Only the copy gets triggered, while the orignal stays waiting (tested both in test and production mode).

We are also running into this issue. We have a use case where we want the bot to receive a trigger event when the bot is mentioned in ANY channel.

And Also
For it to receive triggers for any new messages in a few select channels.

When setting up multiple slack triggers (by copy pasting) to get the same webhook url, the original trigger now stays dormant. Slack only allows configuration of a single webhook per bot.

When trying to configure a single slack trigger like below (which does not fit the use for “bot is mentioned in ANY channel” [but that is fine for now]) I am not even able to filter on an array of channels, it only accepts a single channel ID.

I do not want to configure the “watch whole workspace” option as we have a extremely active slack community and I dont want to have an execution for every message just to filter for messages I am looking for.

Any help would be appreciated

Same thing here. Didn’t find any good solution so far

Any solution for this?

I am also creating 2 workflows.

  • Workflow A should trigger from messages posted in Slack Channel A.
  • Workflow B should trigger from messages posted in Slack Channel B.

Do I need to create 2 separate Slack apps to get different webhook URL?

The current work around for me is to use a switch node directly at the end of the slack trigger, and its Job is to listen for text phrases which then branches to the appropriate agent.

Same idea here, I’ve a Workflow “Slack-Trigger”, where I’ve my Trigger, connected to a Switch. I do Switch on channel, with output “Execute Sub-workflow”. I this case, message in Slack Channel A will execute Workflow A and Slack Channel B will execute Workflow B.
Keeping Workflows separated, but only 1 trigger.

May I know how do you set up the trigger? Are you watching the whole workspace instead of specific channel? If so what condition do you use to trigger the following flow, use “app mention“?

Indeed I only have setup for “Watch Whole Workspace” and “New Message Posted to channel”, but I think Switch could be adapted to trigger “app mention”

yes, this is exactly what I am doing. seem this is the only walkaround.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.