n8n Slack Notifications: Automated Workflow Step by Step

n8n Slack-Benachrichtigungen: Automatischer Workflow Schritt für Schritt

🇬🇧 English

This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.

n8n Slack Notifications: Send Automated Messages Step by Step

If your team relies on Slack to stay in sync, manually copy-pasting updates into channels is a time sink you do not need. With n8n — an open-source workflow automation tool with 400+ integrations that you can self-host for free or run on n8n Cloud — you can build a workflow that sends Slack notifications automatically, triggered by virtually any event in your stack.

This guide walks you through the complete setup: from creating your first workflow to formatting rich Slack messages, with no prior automation experience required.

What You Will Build

A simple but practical workflow that:

  • Triggers on a schedule, a webhook, or a form submission
  • Optionally fetches or processes data
  • Sends a formatted message to a Slack channel of your choice

Once the pattern is clear, you can swap the trigger for anything — a new row in Google Sheets, a completed task in Notion, a payment in Stripe, and so on.

Prerequisites

  • n8n instance: a free self-hosted install or an n8n Cloud account
  • Slack workspace where you have permission to add apps
  • A Slack Bot Token (explained below)

Step 1 — Create a Slack App and Get Your Bot Token

n8n connects to Slack via the official Slack API. You need a bot token with the right scopes.

  1. Go to api.slack.com/apps and click Create New App → From scratch.
  2. Give the app a name (e.g. n8n Bot) and select your workspace.
  3. Navigate to OAuth & Permissions and scroll to Bot Token Scopes.
  4. Add the scope chat:write. If you want to post to public channels without inviting the bot, also add chat:write.public.
  5. Scroll up and click Install to Workspace. Copy the Bot User OAuth Token — it starts with xoxb-.

Step 2 — Add Slack Credentials in n8n

  1. In your n8n instance, open Settings → Credentials → New Credential.
  2. Search for Slack and select Slack API.
  3. Paste your xoxb- token into the Access Token field and save.

n8n will verify the connection. A green tick confirms the credentials work.

Step 3 — Create a New Workflow

  1. Click + New Workflow in the n8n sidebar.
  2. Give it a descriptive name such as Slack Daily Summary.

Step 4 — Add and Configure a Trigger Node

Every workflow needs a starting point. For this example, use the Schedule Trigger to send a daily message.

  1. Click the + button on the canvas and search for Schedule Trigger.
  2. Set the interval — for example, every day at 09:00.
  3. Click Save.

Other popular triggers for Slack notifications include:

  • Webhook — fire a notification when an external service posts data
  • Google Sheets Trigger — react to new rows added to a spreadsheet
  • HTTP Request — poll an API and trigger when conditions are met

Step 5 — Add the Slack Node

  1. Click + after the trigger and search for Slack.
  2. Select the Slack node.
  3. Under Credential, pick the Slack API credential you saved in Step 2.
  4. Set Resource to Message and Operation to Send.
  5. In the Channel field, type the channel name (e.g. #general) or paste a channel ID.
  6. Enter your message text in the Text field.

Using Expressions for Dynamic Messages

Static text is fine for simple alerts, but n8n's expression editor lets you pull in live data. Click the Expression toggle next to the Text field and use double curly braces to reference upstream node output:

Good morning, team! Today is {{ $now.toFormat('cccc, dd MMMM yyyy') }}. Here is your daily briefing.

You can reference any field from previous nodes the same way — e.g. {{ $json.taskCount }} from a preceding HTTP Request node.

Step 6 — Format Messages with Block Kit (Optional)

Slack's Block Kit lets you send richly formatted messages with sections, dividers, buttons and more. In the Slack node, enable Blocks under Additional Fields and paste a JSON block array. Example:

[
 {
 "type": "section",
 "text": {
 "type": "mrkdwn",
 "text": "*Daily Report* :bar_chart:\nYour workflow ran successfully."
 }
 },
 { "type": "divider" }
]

Use the Slack Block Kit Builder (available at api.slack.com/block-kit/building) to design your layout visually and copy the JSON directly into n8n.

Step 7 — Test the Workflow

  1. Click Test Workflow (or press Ctrl + Enter).
  2. Check the Slack channel — your message should appear within seconds.
  3. Inspect each node's output in the n8n execution panel to confirm data is flowing correctly.

If the message does not appear, common causes are: the bot is not invited to the channel (/invite @n8nBot in Slack fixes this), or the scope chat:write was not saved before installing.

Step 8 — Activate the Workflow

Once your test passes, toggle the workflow from Inactive to Active using the switch in the top-right corner. n8n will now run it automatically on the schedule you defined.

Practical Use Cases

  • Daily stand-up summaries pulled from a project management tool
  • Error alerts when a monitored API returns a non-200 status
  • Sales notifications when a new deal is closed in your CRM
  • Server uptime reports delivered every morning
  • Form submission alerts forwarded to a #leads channel

Tips and Troubleshooting

  • Use an IF node before the Slack node to send messages only when a condition is true — avoids noisy notifications.
  • Add a Set node to clean and reshape data before passing it to Slack.
  • Store your Bot Token as a credential, never hard-code it in expressions.
  • n8n's built-in Error Workflow feature can send you a Slack alert if any workflow fails — set it under workflow settings.

If you want to build and run automated Slack notification workflows without managing infrastructure, you can get started via n8n — including self-hosting for free or using n8n Cloud with 400+ integrations — to keep your team informed automatically.

🇩🇪 Deutsch

Dieser Artikel enthält Affiliate-Links (Werbung). Kaufst du darüber, erhalten wir ggf. eine Provision – für dich ohne Mehrkosten.

n8n Slack-Benachrichtigungen: Automatische Nachrichten Schritt für Schritt senden

Wenn dein Team Slack zur Kommunikation nutzt, ist das manuelle Kopieren von Updates in Channels pure Zeitverschwendung. Mit n8n — einem Open-Source-Tool zur Workflow-Automatisierung mit über 400 Integrationen, das du kostenlos selbst hosten oder als n8n Cloud nutzen kannst — baust du einen Workflow, der Slack-Benachrichtigungen vollautomatisch verschickt, ausgelöst durch nahezu jedes Ereignis in deinem Tech-Stack.

Diese Anleitung führt dich durch die komplette Einrichtung: vom ersten Workflow bis zur formatierten Slack-Nachricht — ganz ohne Vorkenntnisse in der Automatisierung.

Was du bauen wirst

Einen einfachen, aber praxistauglichen Workflow, der:

  • durch einen Zeitplan, einen Webhook oder ein Formular ausgelöst wird
  • optional Daten abruft oder verarbeitet
  • eine formatierte Nachricht an einen Slack-Channel deiner Wahl sendet

Sobald du das Muster verstanden hast, kannst du den Trigger beliebig austauschen — neue Zeile in Google Sheets, abgeschlossene Aufgabe in Notion, Zahlung in Stripe und vieles mehr.

Voraussetzungen

  • n8n-Instanz: eine kostenlose selbst gehostete Installation oder ein n8n-Cloud-Account
  • Slack-Workspace, in dem du Apps hinzufügen darfst
  • Ein Slack Bot-Token (Erklärung folgt)

Schritt 1 — Slack-App erstellen und Bot-Token holen

n8n verbindet sich über die offizielle Slack-API. Du benötigst ein Bot-Token mit den richtigen Berechtigungen.

  1. Gehe zu api.slack.com/apps und klicke auf Create New App → From scratch.
  2. Vergib einen Namen (z. B. n8n Bot) und wähle deinen Workspace.
  3. Navigiere zu OAuth & Permissions und scrolle zu Bot Token Scopes.
  4. Füge den Scope chat:write hinzu. Für öffentliche Channels ohne Bot-Einladung ergänze chat:write.public.
  5. Klicke auf Install to Workspace und kopiere den Bot User OAuth Token — er beginnt mit xoxb-.

Schritt 2 — Slack-Zugangsdaten in n8n hinterlegen

  1. Öffne in n8n Settings → Credentials → New Credential.
  2. Suche nach Slack und wähle Slack API.
  3. Füge deinen xoxb--Token in das Feld Access Token ein und speichere.

n8n prüft die Verbindung automatisch. Ein grüner Haken bestätigt, dass alles funktioniert.

Schritt 3 — Neuen Workflow anlegen

  1. Klicke in der n8n-Seitenleiste auf + New Workflow.
  2. Vergib einen aussagekräftigen Namen, z. B. Slack Tägliche Zusammenfassung.

Schritt 4 — Trigger-Node hinzufügen und konfigurieren

Jeder Workflow braucht einen Startpunkt. Für dieses Beispiel verwenden wir den Schedule Trigger, um täglich eine Nachricht zu senden.

  1. Klicke auf der Canvas auf + und suche nach Schedule Trigger.
  2. Stelle das Intervall ein — zum Beispiel täglich um 09:00 Uhr.
  3. Klicke auf Save.

Weitere beliebte Trigger für Slack-Benachrichtigungen:

  • Webhook — Benachrichtigung, wenn ein externer Dienst Daten sendet
  • Google Sheets Trigger — reagiert auf neue Tabellenzeilen
  • HTTP Request — fragt eine API ab und löst bei bestimmten Bedingungen aus

Schritt 5 — Slack-Node hinzufügen

  1. Klicke nach dem Trigger auf + und suche nach Slack.
  2. Wähle den Slack-Node.
  3. Wähle unter Credential die in Schritt 2 gespeicherten Zugangsdaten.
  4. Setze Resource auf Message und Operation auf Send.
  5. Gib im Feld Channel den Channel-Namen ein (z. B. #allgemein) oder füge eine Channel-ID ein.
  6. Trage deinen Nachrichtentext in das Feld Text ein.

Dynamische Nachrichten mit Expressions

Statischer Text reicht für einfache Alerts, aber der Expression-Editor von n8n erlaubt dir, Live-Daten einzubinden. Klicke auf den Expression-Schalter neben dem Text-Feld und nutze doppelte geschweifte Klammern, um auf Daten aus vorherigen Nodes zuzugreifen:

Guten Morgen, Team! Heute ist {{ $now.toFormat('cccc, dd MMMM yyyy') }}. Hier ist euer tägliches Briefing.

Du kannst genauso auf Felder aus anderen Nodes verweisen — z. B. {{ $json.aufgabenAnzahl }} aus einem vorherigen HTTP-Request-Node.

Schritt 6 — Nachrichten mit Block Kit formatieren (optional)

Slacks Block Kit ermöglicht reich formatierte Nachrichten mit Abschnitten, Trennlinien, Buttons und mehr. Aktiviere im Slack-Node unter Additional Fields die Option Blocks und füge ein JSON-Block-Array ein. Beispiel:

[
 {
 "type": "section",
 "text": {
 "type": "mrkdwn",
 "text": "*Tagesbericht* :bar_chart:\nDein Workflow wurde erfolgreich ausgeführt."
 }
 },
 { "type": "divider" }
]

Nutze den Slack Block Kit Builder unter api.slack.com/block-kit/building, um dein Layout visuell zu gestalten und das JSON direkt in n8n einzufügen.

Schritt 7 — Workflow testen

  1. Klicke auf Test Workflow (oder drücke Strg + Enter).
  2. Prüfe den Slack-Channel — deine Nachricht sollte innerhalb von Sekunden erscheinen.
  3. Kontrolliere im n8n-Ausführungsbereich die Ausgabe jedes Nodes, um den Datenfluss zu prüfen.

Falls die Nachricht nicht erscheint: Häufige Ursachen sind, dass der Bot nicht in den Channel eingeladen wurde (das behebst du mit /invite @n8nBot in Slack), oder der Scope chat:write wurde nicht gespeichert, bevor die App installiert wurde.

Schritt 8 — Workflow aktivieren

Sobald der Test erfolgreich ist, schalte den Workflow über den Schalter oben rechts von Inaktiv auf Aktiv. n8n führt ihn ab sofort automatisch nach dem definierten Zeitplan aus.

Praxisbeispiele

  • Tägliche Standup-Zusammenfassungen aus einem Projektmanagement-Tool
  • Fehler-Alerts, wenn eine überwachte API einen Nicht-200-Status zurückgibt
  • Verkaufsbenachrichtigungen, wenn ein neuer Deal im CRM abgeschlossen wird
  • Server-Uptime-Berichte jeden Morgen im Team-Channel
  • Formular-Eingangs-Alerts direkt in einem #leads-Channel

Tipps und Fehlerbehebung

  • Schalte einen IF-Node vor den Slack-Node, damit Nachrichten nur bei bestimmten Bedingungen gesendet werden — das verhindert überflüssige Benachrichtigungen.
  • Nutze einen Set-Node, um Daten zu bereinigen und umzustrukturieren, bevor sie an Slack weitergegeben werden.
  • Speichere deinen Bot-Token immer als Credential — trage ihn nie direkt in Expressions ein.
  • n8n's integriertes Error Workflow-Feature kann dir bei Workflow-Fehlern automatisch eine Slack-Nachricht senden — einfach in den Workflow-Einstellungen aktivieren.

Wenn du automatische Slack-Benachrichtigungen ohne eigene Server-Verwaltung einrichten möchtest, kannst du über n8n starten — inklusive kostenlosem Self-Hosting oder n8n Cloud mit über 400 Integrationen — und dein Team ab sofort automatisch auf dem Laufenden halten.