Reorder low-stock products with AutoCount, Google Sheets, Slack, and Gmail
UnknownWhat this workflow does
This workflow has 62 nodes and runs on a schedule (cron 0 7 * * 1-5). Along the way it connects Google Sheets, Slack, Gmail and Autocount (community).
How it runs
Trigger: On a schedule (cron 0 7 * * 1-5).
- Set Configuration Settings (Edit Fields (Set)): sets 13 fields: location, salesLookbackDays, defaultLeadTimeDays…
- Read Reorder Rules from Sheets (Google Sheets): uses Google Sheets
- Fetch Recent Sales Data (Auto Count): get many
- Fetch Open Purchase Orders (Auto Count): get many (purchase order)
- Fetch Product Details (Auto Count): get many (product)
- Fetch Supplier Information (Auto Count): get many (creditor)
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Merge: merges the data from its input branches
…plus 51 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-autocount is verified or supports 3.0 (used in Fetch Stock Balance, Fetch Recent Sales Data, Fetch Open Purchase Orders).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (14)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Filter
n8n-nodes-base.filter - Merge
n8n-nodes-base.merge - Auto Count
n8n-nodes-autocount.autoCount - Summarize
n8n-nodes-base.summarize - Split Out
n8n-nodes-base.splitOut - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Slack
n8n-nodes-base.slack - Switch
n8n-nodes-base.switch - Aggregate
n8n-nodes-base.aggregate - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow checks AutoCount stock every weekday, works out what to reorder from sales, stock and open purchase orders, and asks your buyer to approve in Slack. Unanswered requests go to a backup approver, large orders need manager approval,…