How To Connect Slack To N8N: EASY Integration in MINUTES
by Austin Reed | Horizon Dev
The video demonstrates how to create a Slack app, configure OAuth and bot scopes, install it to a workspace, and connect it to n8n using both OAuth2 and API token credentials. It then shows how to set up event subscriptions and a webhook URL so that Slack events trigger n8n workflows, finishing with a test that confirms the trigger works.
How to Connect Slack to n8n in Minutes
Overview
In this tutorial you’ll learn how to:
- Create a Slack app from scratch.
- Add the necessary bot token scopes.
- Install the app to your workspace.
- Create two n8n credentials – one OAuth2 and one API token.
- Configure Slack event subscriptions and a webhook URL.
- Test the integration by mentioning the bot in a channel.
Prerequisites
- A Slack workspace where you have admin rights.
- An n8n instance (self‑hosted or n8n.cloud).
- Basic knowledge of Slack app settings.
Step‑by‑Step Instructions
1. Create a New Slack App
- Go to api.slack.com/apps.
- Click Create New App → From scratch.
- Name the app (e.g., YouTube) and select your workspace.
- Click Create App.
2. Add Bot Token Scopes
- In the left menu, open OAuth & Permissions.
- Under Bot Token Scopes, add:
app_mentions:readchannels:historychannels:readchat:writegroups:read
- (Optional) Add any additional scopes you need.
3. Install the App to Your Workspace
- Still in OAuth & Permissions, scroll to OAuth Tokens & Redirect URLs.
- Click Install to Workspace.
- Click Allow.
- Copy the Bot User OAuth Token – you’ll need it later.
4. Create n8n Credentials
4.1 OAuth2 Credential
- In n8n, click Credentials → New Credential → Slack OAuth2 API.
- Paste the Redirect URL shown in n8n into Slack’s Redirect URLs (under OAuth & Permissions → Redirect URLs).
- Save.
- Click Connect My Account → Allow to finish the OAuth flow.
4.2 API Token Credential
- In n8n, create another credential: Slack API.
- Paste the Bot User OAuth Token from step 3 into the Access Token field.
- Save and test – it should succeed.
5. Configure Event Subscriptions
- In Slack, go to Event Subscriptions.
- Toggle Enable Events to On.
- In Request URL, paste the Webhook URL from the Slack Trigger node in n8n.
- If you’re using the test URL, click Test Step in n8n and then Retry in Slack.
- Under Subscribe to Bot Events, click Add Bot User Event and select
app_mention. - Save changes.
6. Build a Simple n8n Workflow
- Add a Slack Trigger node.
- Select the OAuth2 credential you created.
- Choose a channel to listen to (e.g.,
#general). - Add a Slack node to send a reply (optional).
- Activate the workflow.
7. Test the Integration
- In the chosen Slack channel, type
@YourAppName test. - Invite the bot to the channel if prompted.
- Observe the trigger firing in n8n and the bot responding.
Tips & Gotchas
- Only one Request URL is allowed per Slack app. Use the test URL first, then switch to the production URL once verified.
- If the webhook test fails, ensure the n8n instance is publicly reachable (e.g., via ngrok or a public domain).
- The OAuth2 credential is required for actions (sending messages), while the API token credential is needed for the trigger node.
- Remember to invite the bot to any channel it needs to operate in; otherwise you’ll see not in channel errors.
- For security, enable Request Signature Verification by copying the Signing Secret from Slack’s Basic Information into the n8n credential.
This guide follows the exact steps shown in Austin Reed’s video, including the order of operations and the specific scopes used.





