I created an OAuth authorization for an app for a slack node. (I basically followed each step of the “Using Oauth” Slack - n8n Documentation).
Now, the node is working but the message is sent as myself, bot with the @bot. I checked the slack documentation, it seems that I need to send an {“as_user”: false}.
I tried to send it as it is as JSON parameters, with either this format {“as_user”:false} or [{“as_user”:false}], but each time, I have this error: “Error: Attachments it is not a valid json”
It might be very stupid, but I’ve just discovered recently n8n (it’s awesome by the way, thanks for the hard work).
I’ve just updated the version (the “about” on my n8n tells me I have the 0.111.0 which seems to be the last version). Unfortunately, I still have the same issue, where the “no user” option not appearing
The option “Send As User” is only displayed if “AccessToken” gets used to authenticate (not OAuth) because it only works in combination with it, if I remember correctly.
Really?
But then how do you send a message as a bot with OAuth authentication?
If I look at the slack documentation (chat.postMessage method | Slack), it seems that the no_user flag could be used independently of the method of authentication.
Yes, it looks like they are different options. The Slack-Node does currently not implement the no_user option. What it sets if “Send as User” is defined, is the body parameter username.
As mentioned earlier the node currently doesn’t have that functionality with the OAuth authentication method. But you can use the Access Token authentication method to send the message as a bot.