Route low-stock inventory alerts from Google Sheets to Slack
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs on a schedule (every day at 08:00). Along the way it connects Google Sheets and Slack.
How it runs
Trigger: On a schedule (every day at 08:00).
- Set Configuration (Edit Fields (Set)): sets 3 fields: sheet_id, inventory_sheet_name, slack_channel_id
- Fetch Inventory (Google Sheets): uses Google Sheets
- Compute Stock Status (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
- Is Out of Stock? (If): checks a condition and branches into true / false
- Send Urgent Slack Alert (Slack): uses Slack
- Send Low Stock Slack Alert (Slack): uses Slack
- Update Sheet - Mark Alerted (Google Sheets): update
Services it uses
Other Google Sheets + Slack templates (1,314)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs every morning to read inventory levels from Google Sheets and post low-stock or out-of-stock alerts to a Slack channel, including supplier contact details, then updates the sheet to avoid repeating the same alert on the same…