Integrate slack in Saas app through n8n

Hi, all!

I’m new in trying to use n8n and I was asking ChatGpt about 2 days about what we try to build.
We have a Saas app and we want to make a Slack Integration in n8n and using that to let our app users to send messages to their public or private channels on their own workspaces. We configured our Slack App. We don’t want to store at our side the access tokens (bot or user). If this possible, to store them in n8n ? Is this a suitable aproach ? Or we need to store the tokens in our backend ? We want, that once users authorize their account, to get the tokens from n8n for future usage.

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

Hey @fecokalevai,

Welcome to the community !
You can store tokens in n8n, but it’s not a good fit for a SaaS app with multiple users. n8n’s credential system isn’t built for managing lots of user tokens - it gets messy fast.Just store the encrypted tokens in your own database. When you need to run a Slack workflow, send the token to n8n via webhook or API call. n8n does the Slack stuff and sends back the results. This way you control the tokens and n8n handles the automation part.Much cleaner and you won’t run into scaling problems later.

Another solution
You can have one n8n webhook that pulls the right credentials based on the POST data you send.
Set up your webhook to receive something like
{"user_id": "123", "channel": "#general", "message": "hello"}.

Then use a database node (Supabase/Postgres) to query the credentials table with that user_id. n8n grabs the tokens and runs the Slack operation.This way one webhook handles all users - it just looks up the right tokens for each request

1 Like

Thank you for your response. My question is, in this case what are the advantages using Slack integration through n8n, and not directly from our Saas app? We already have some integrations (Google Drive, Google Ads, Meta, Dropbox, Veeva, …) We just tried to find a solution to integrate more apps (Slack, Notion, etc…) and we were looking for a possibility to use a third party app to do the next integrations. First I was lookin to Zapier, but with it our user need to have their Zapier account. We need a solution to not oblige our clients to have their accounts in any other platform. I don’t know if there is such a possible solution for doing this.

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