Stepthrough Start free

n8n Slack Node: Post a Message to a Channel

Quick answer

To post to Slack from n8n, add the Slack node, scroll past Channel Actions and under Message Actions click Send a message. Set Send Message To to Channel, pick the channel from the list and write Message Text with expressions for the details. The free Speed-to-Lead Agent lesson posts hot web leads to a #new-leads channel within seconds.

Last updated

Take the free module →Module 10 of the free AI Agents 101 course, about 15 minutes. No account needed.

n8nSlackExamples

How do I set up Send a message?

  1. Click the + where the alert should go. In the lesson, that's the true output of the If node that checks for a score of 8 or more.
  2. Type slack and click Slack.
  3. Scroll down past Channel Actions. Under Message Actions, click Send a message.
  4. With your Slack account connected, open Send Message To and choose Channel.
  5. Open the Channel list and choose the channel, here #new-leads.
  6. Paste the Message Text.

What should the alert say?

Everything someone needs to act without opening another app: the score, who, which company, why, and how to reach them.

Hot lead ({{ $('Information Extractor').item.json.output.score }}/10): {{ $('Webhook').item.json.body.name }}, {{ $('Webhook').item.json.body.company }}

then the AI's reason and the lead's email on the next lines. The values come from two earlier nodes by name, because the node right before Slack is the If. n8n Reference a Previous Node explains the syntax.

More Slack alert ideas

WorkflowChannelMessage Text
Invoice needs approval#financeInvoice {{ $json.output.invoice_number }} from {{ $json.output.vendor }}: ${{ $json.output.total }}
New support handoff#front-deskChat handoff: {{ $json.name }}, unit {{ $json.unit }}
Daily task digest#opsA list joined from meeting action items
Workflow failed#automation-alerts{{ $json.workflow.name }} failed at {{ $json.execution.lastNodeExecuted }} (from an Error Trigger)

Channel or user?

Choose Channel for team alerts everyone should see, and User for a direct message to one owner. Private channels need the Slack app to be invited to the channel before n8n can post there.

Try it free, step by step

Speed-to-Lead Agent: Answer Every Web Lead in 60 Seconds. Build an n8n workflow that scores every website lead with AI, emails a personal first reply within seconds, and pings Slack only when a lead is hot. You do every step yourself in a practice copy of n8n, it checks your work as you go, and “Do it for me” finishes any step you get stuck on. Free, and nothing touches your real accounts.

Start the free lesson

Or read the full step-by-step guide

Why can't n8n post to my channel?

  • channel_not_found or not_in_channel: the app isn't in that channel. Invite it, or pick a public channel.
  • The channel isn't in the list: the credential is for a different Slack workspace.
  • Braces in the message: the Message Text field isn't in Expression mode.

Why alert in Slack at all?

Speed. In the lesson, the instant AI email covers every lead, and the Slack ping makes sure a person follows up on the hot ones while they're still on your website. That's the point of speed to lead. What Is Speed to Lead? has the background.

Key takeaways

  • Slack's Send a message is under Message Actions, below Channel Actions.
  • Send Message To: Channel, then pick the channel from the list.
  • Put everything needed to act in the message: score, who, why, contact.
  • Invite the Slack app to private channels before posting.

Frequently asked questions

How do I send a Slack message from n8n?

Add the Slack node, choose Send a message under Message Actions, pick Channel or User, select the destination and write the text.

Can n8n post to a private Slack channel?

Yes, once the Slack app used by your n8n credential has been added to that channel.

Can I mention someone in an n8n Slack message?

Yes. Use Slack's mention format with the person's member ID (an at sign and the ID inside angle brackets) in the message text.

Which course is this from?

AI for Sales Teams, AI for Real Estate and AI Agents 101.

Free lessons in this post

Plain-English definitions, each with an example from a free lesson.

The full AI glossary

Keep reading

All blog posts · All free tutorials