It would be nice if it would be possible to automatically send a message to multiple channels using the slack node.
I end up with several slack nodes with exactly the same configuration just to send the message on several channels at the same time :
I know that the method chat.postMessage from the slack API doesn’t natively allow you to do that.
I think it would be very convenient to have a loop on sending the message if you pass a channel dictionary.
Yes, makes sense. The thing would just be, that if one item would enter the Slack-Node, the output would have to consist of 3, as there would be 3 responses from Slack. Not sure if that could be confusing for people (honestly no idea). Definitely worth thinking about!
Yes, something similar like you described would be also this:
Yes sure, thank you. It’ll work and it’s cleaner. But at several points in my workflow I need to send a slack message to my 3 (or more) channels. So I have to have this function before each slack node.
Ideally I wish I could use my “Set” node to be able to define an array of channels and use this variable every time I call my slack node. I don’t know if my use-case is clear.
At the moment my workflow (my first one!) looks like this:
For now you could “simply” create a separate workflow to send Slack-Messages with this workflow:
The Set-Node is only an Example and would be in the existing workflow. You would just have to send the data to the new Slack-Workflow the same way. Then instead of having a Slack-Node in exising workflow, you would have the Set-Node and the Execute Workflow-Node there.