I’m running into an issue with a Slack bot I’m working on. Currently, the bot is using the Slack Trigger set to watch the whole WorkSpace and triggers on anyevent. We set it up this way because we want users to be able to interact with the bot in a private DM with the slack bot without needing to @mention the bot for every response. And we later filter for only @mentions in channels that or not DMs.
The problem is, using anyevent like this is eating up all our executions since it triggers on literally everything across all channels. What I’m trying to figure out is how to restrict the watch space to only be for private DMs with the bot so that we can trigger on anyevent there. it’s fine if we need to set up a separate workflow for DMs.
Does anyone know how to handle this without sacrificing the private DM functionality? Any tips, or other approaches would be super helpful. Thanks!
Similar issue here - Ive got slack connected to trigger the input events but filtered for @mentions, I’m unable to figure out a way to also enable direct messaging.
Here is a walk around, triggering when new message is posted in the private channel.
From n8n, there is a “New Message Posted to Channel”, which is used to trigger event when receiving new msg.
From Slack, Event Subscriptions → Subscribe to bot events → message.groups. This event trigger give permission to above trigger.
Then you can create a private channel that only contains you and the bot, then you can do new message to trigger the event.