I have a n8n workflow which is triggered when a specific message (event invitations) from a user (that is part of a specific team) is posted in a specific channel. I would like to use n8n to forward the triggering slack message to another channel. Is this possible with n8n?
This should be possible by linking the slack message trigger node to a slack “Send a message” node. Give it a try. You could put filtering logic between the trigger and the “send” to detect repeats, etc. too.
As far as I could tell, there is no apparent Slack API function related to “forwarding” anything, so, I was speculating that the Slack UI must be making a copy of a message/event/etc. and sending it elsewhere using the postMessage API. My suggestion was to do the same in n8n with workflow steps.
If you have a link to a specific “forward” API function in Slack, please post it here and someone can probably help you call it using an HTTP Request node.
Here are a few search starting points if you don’t already have a link/reference for the “forward” API function you are asking about:
You are right. The Slack API lacks a message-forwarding-function. The Slack supporter I spoke to said: “This is on there list for possible future implementations.”
The solution that is workings for me looks very close to a forwarded slack message. The only difference is that on the solution I use the “forwarded” message starts with a link, while the Slack GUI forward feature starts the post with the message text itself. The rest is identical.
I use chat.getPermalink to retrieve
the permanent link to the message that I want to “forward”. Then I use chat.postMessage to post a message into another channel, that message only contains that permalink. Slack posts it and unrolls the perma link.