n8n Basics: Send Any Data to Slack — Step by Step
If your team relies on Slack for communication, having the right data appear in the right channel at the right moment can transform how you collaborate. Instead of manually copying information from tools and pasting it into Slack, you can build a fully automated workflow using n8n — no code required.
This guide walks you through exactly how to set up a workflow in n8n that sends any data — from a form, a database, an API, or another app — directly to a Slack channel.
Why Use n8n to Send Data to Slack?
n8n is a powerful open-source workflow automation platform that connects hundreds of apps and services. Unlike simpler tools, n8n lets you transform and filter data before sending it, giving you full control over what your team sees in Slack.
- No coding required — drag-and-drop visual editor
- Flexible data handling — format messages exactly how you want
- Triggers from anywhere — webhooks, schedules, app events
- Free self-hosted option — run it on your own server
What You Will Need
- An active n8n account (cloud or self-hosted)
- A Slack workspace with permission to add apps
- A Slack Bot Token (we'll cover how to get one)
Step 1: Create a New Workflow in n8n
Log into your n8n dashboard and click New Workflow. Give it a descriptive name like "Send Data to Slack". Every workflow in n8n starts with a trigger node — this defines what causes the workflow to run.
Choose Your Trigger
Common trigger choices include:
- Webhook — receives data from external apps or scripts
- Schedule Trigger — runs at set times (e.g., every morning at 9am)
- App Trigger — fires when something happens in a connected tool (e.g., new row in Google Sheets)
For this tutorial, we'll use a Webhook Trigger so the workflow can receive any incoming data in real time.
Step 2: Set Up the Webhook Trigger Node
Add a Webhook node to your canvas inside n8n. Set the HTTP method to POST and copy the generated webhook URL. You'll use this URL to send test data or connect other services.
Click Listen for Test Event and send a POST request with sample JSON data using a tool like Postman or curl:
curl -X POST https://your-n8n-url/webhook/your-id \
-H "Content-Type: application/json" \
-d '{"name": "Alice", "message": "New lead signed up!"}'
You'll see the incoming data appear in the n8n canvas immediately.
Step 3: Connect Your Slack Account
Now add a Slack node from the node panel. Click on it and then click Create New Credential.
How to Get a Slack Bot Token
- Go to api.slack.com/apps and click Create New App
- Choose From Scratch, name your app, and select your workspace
- Navigate to OAuth & Permissions and scroll to Scopes
- Add the following Bot Token Scopes:
chat:write,channels:read - Click Install to Workspace and copy the Bot User OAuth Token
Paste this token into the n8n Slack credential field and save.
Step 4: Configure the Slack Node
With your Slack credential connected inside n8n, configure the Slack node as follows:
- Resource: Message
- Operation: Send
- Channel: Enter the channel name (e.g.,
#generalor#alerts) - Message Text: Use expressions to pull from your webhook data
Using Expressions to Format Your Message
In the Message Text field, click the Expression toggle and write something like:
New signup: {{ $json.name }} — {{ $json.message }}
The n8n expression engine will dynamically replace these placeholders with real values from your incoming data.
Step 5: Test and Activate Your Workflow
Click Execute Workflow in n8n to run a test. Check your Slack channel — you should see the message appear within seconds.
If everything looks correct, click Activate in the top-right corner to turn the workflow on. From this point forward, every time the webhook receives data, n8n will automatically push it to Slack.
Ideas for What You Can Send to Slack
Once your n8n workflow is live, the possibilities are endless. Here are just a few ideas:
- New customer sign-ups from your website
- Daily sales summaries from your CRM
- Error alerts from your application logs
- Weather or news briefings on a schedule
- Completed task notifications from project management tools
Pro Tips for Better Slack Messages
Make your automated messages more useful by applying these tips inside n8n:
- Use Slack Block Kit — switch to the JSON/blocks format for richer message layouts
- Add conditional logic — use an IF node in n8n to route different data to different channels
- Set message threading — post replies in threads to keep channels clean
- Include timestamps — always add a date/time field so context is clear
Final Thoughts
Sending data to Slack doesn't have to involve a developer or complex scripts. With n8n, you can set up a fully working automation in under 15 minutes. Whether you're routing alerts, sharing summaries, or notifying your team of real-time events, n8n gives you the flexibility and power to do it your way.
Start building your first Slack automation with n8n today — your team will thank you.
This post was created with tools we use and recommend: n8n for workflow automation, Turbotic as an AI-native automation alternative, ElevenLabs for AI voiceover, Placid for visual content creation, and Hostinger for reliable VPS hosting. Some links are affiliate links.