mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
| .. | ||
| README.md | ||
| permalink | description |
|---|---|
| /credentials/slack | Learn to configure credentials for the Slack node in n8n |
Slack
You can use these credentials to authenticate the following nodes with Slack.
Prerequisites
Create a Slack account.
Using OAuth
::: tip ⛅️ Note for n8n.cloud users You'll only need to enter the Credentials Name and click on the circle button in the OAuth section to connect your Slack account to n8n. :::
- Open the Slack API page.
- Click on the Start Building button.
- Enter the name of the app in the App Name field.
- Select a workspace from the Development Slack Workspace dropdown list.
- Click on the Create App button.
- Scroll down to the App Credentials section.
- Copy and paste Client ID and Client Secret in the 'Slack OAuth2 API' credentials in n8n.
- On the Basic Information page, scroll up to the Add features and functionality section and click on 'Permissions'.
- Click on the Add New Redirect URL in the Redirect URLs.
- Copy the 'OAuth Callback URL' provided in the 'Slack OAuth2 API' credentials in n8n.
- Paste the URL in the Redirect URLs field and click on the Add button.
- Click on the Save URLs button.
- Scroll down to the Scopes section.
- Add the required scopes under the Bot Token Scopes section. You can refer to the list of scopes on the Scopes and permissions documentation on Slack.
- Enter a name for your credentials in the Credentials Name field in the 'Slack OAuth2 API' credentials in n8n.
- Click on the circle button in the OAuth section to connect a Slack account to n8n.
- Click the Save button to save your credentials in n8n.
- On the Slack OAuth & Permissions page, scroll up to the OAuth Tokens & Redirect URLs section and click on the Install to Workspace button.
- Click on the Allow button.
The following video demonstrates the steps mentioned above.
The following video demonstrates the steps to authenticate the Slack node on n8n.cloud.
Using Access Token
- Open the Slack API page.
- Click on the Start Building button.
- Enter the name of the app in the App Name field.
- Select a workspace from the Development Slack Workspace dropdown list.
- Click on the Create App button.
- Click on 'Permissions' in the Add features and functionality section.
- Scroll down to the Scopes section.
- If you want your app to act on behalf of users that authorize the app, add the required scopes under the User Token Scopes section.
- If you're building a bot, add the required scopes under the Bot Token Scopes section. You can refer to the list of scopes on the Scopes and permissions documentation on Slack.
- Scroll up to the OAuth Tokens & Redirect URLs section and click on the Install to Workspace button.
- Click on the Allow button.
- Copy the displayed 'OAuth Access Token' under the OAuth Tokens for Your Team section.
- Paste it in the Access Token field in the 'Slack API' credentials in n8n.
- Enter a name for your credentials in the Credentials Name field in the 'Slack API' credentials in n8n.
- Click the Save button to save your credentials in n8n.
The following video demonstrates the steps mentioned above.