How do I send Slack notifications from an automation?
To send a Slack notification from an automation, add a Slack step to your workflow, connect your Slack workspace, choose a channel and write the message with data from earlier steps. If your tool has no Slack step you want, you can post JSON to a Slack incoming webhook URL instead.
Key takeaways
- Slack's incoming webhooks guide says to send an HTTP POST with Content-type application/json and a body containing a text field.
- The channel, username and icon come from the app configuration and cannot be overridden by the payload.
- The same page warns: "Keep it secret, keep it safe." Do not put a webhook URL in public version control.
- n8n's looping guide says a Slack node connected to a five-row dataset sends five messages, so decide whether you want one message per item or one summary.
- In Zapier each successfully completed action, such as a Slack message, counts as a task.
Two ways to do it
| Method | How it works | Good for | Watch out for |
|---|---|---|---|
| Built-in Slack step | Connect your workspace and pick a channel | Most users | Permissions; the account that connects owns the connection |
| Incoming webhook | Slack gives a URL; you POST JSON with a text field | Custom tools, simple alerts | The URL is a secret; cannot delete messages afterwards |
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.
Steps with the built-in step
- Decide what deserves a message. New lead, failed payment, error. Not every event.
- Pick the channel. A dedicated channel such as #alerts keeps noise away.
- Add the Slack step to your Zap, Make scenario or n8n workflow.
- Connect Slack with an account that has access to that channel; for private channels the connecting user must be a member.
- Write the message with a clear first line: what happened, who, and a link.
- Insert data fields from earlier steps.
- Send a test and read it on desktop and phone.
- Decide on volume. If a trigger produces many items, send one summary instead.
- Name an owner for each alert type.
Steps with an incoming webhook
- Create a Slack app and activate Incoming Webhooks.
- Add a webhook to your workspace and pick a channel.
- Copy the URL and store it as a secret in your tool, not in the message body.
- Send a POST request with a JSON body such as {"text": "New order from Ana"}.
- Handle errors: Slack returns codes such as channel_not_found or no_active_hooks that you should not blindly retry.
Worked example
Example: Ben runs an online shop. His workflow watches for new orders over £500 and posts to #big-orders: "New order £640 from Ana K., 3 items, link to order." On a sale day 40 such orders arrive in an hour. He changes it so the workflow collects them and sends one summary every 30 minutes, which cuts 40 messages to 2. The numbers are illustrative.
Mistakes to avoid
- Pasting the webhook URL into a public repository or a shared doc.
- Sending a message for every row of a large import.
- Alerts with no link or owner.
- Using a personal account that leaves the company and breaks the connection.
- Putting private customer data into a channel with many members.
Is there a service that plans the alerts before you build?
Yes. Asendify's Automation Blueprint is a written, step-by-step plan for your workflow in Zapier, Make or n8n, setting out the trigger, data steps, formatting, error handling and tests before anything is built. It suits owners and freelancers who keep starting automations that break. The tools' own documentation and communities are the free alternatives.
Related answers: how do I handle errors in an n8n or Make automation so it doesn't fail silently, what is a webhook in automation and how to test an automation before turning it on
FAQ
Is there a service that plans my alert automations?
Yes. Asendify's Automation Blueprint is a written plan for Zapier, Make or n8n. The tools' docs are free alternatives.
Can I change the channel in the webhook payload?
No. Slack says the channel, username and icon come from the app configuration.
Can I delete a message sent by a webhook?
Webhooks cannot delete a message after it is posted, per Slack.
How do I avoid message floods?
Send a summary or filter to the events that matter.
Is a webhook URL private?
Yes. Treat it like a password.
More playbooks on other topics: https://www.asendify.co/books/
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.