Slack - how to get notified in Slack

We are using Google Sheet to manage tasks (I know, very primitive…). I want to be notified every time someone adds a new task to the list, so I created a simple workflow to send an alert to a Slack channel every time a new task is added to the list.

It works in the sense that the message is delivered, but somehow Slack knows that the message was sent by me, so it doesn’t notify me. Somehow when setting up the oauth i must have selected myself as the sender for all messages from n8n.

Any idea how to have messages sent to Slack from another user or a bot?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:**0.230.3,
  • **Database (default: SQLite):**postgres
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):**main
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**docker
  • **Operating system:**linux

Hey @fxholl,

If you are using OAuth it will typically send as the user that authenticated, To send as a different user you would need to use a Bot token in the Access Token credential this will be something like xoxb_xxxyyyzzz.

On the Slack app side you will need to make sure that the bot user you create has permission to do what you want it to but the Slack App side of things is pretty good at telling you what each scope does.

1 Like

I found a Bot User Oauth token starting with xoxb in Slack:

I added this token in Slack API credencials in n8n and it connects:

In the Slack node , when selecting the user that should receive the message, the option “from list” does not return the list of Slack users, but choosing by ID works.

@fxholl,

Perfect, So for a list of users your bot would need access to that scope as well, It looks like the scope would be users:read

thanks! I will try that and report back

1 Like

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