Manage inventory reorders with Google Sheets, Slack, and Gmail
Ready for 3.0What this workflow does
This workflow has 22 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Google Sheets, Slack and Gmail.
How it runs
Trigger: On a schedule (every day) (plus 1 other trigger).
- Fetch Product Inventory (Google Sheets): uses Google Sheets
- Fetch Vendor Catalog (Google Sheets): uses Google Sheets
- If: checks a condition and branches into true / false
- Prepare Product Stock Data (Edit Fields (Set)): sets 7 fields: row_number, Product ID, Vendor ID…
- Prepare Vendor Delivery Data (Edit Fields (Set)): sets 7 fields: Vendor ID, Vendor Name, Email Address…
- Fetch Slack Thread Replies (Slack): replies (channel)
- Merge: merges the data from its input branches
- Parse Slack Message Data (Code): runs custom JavaScript code
- Calculate Reorder Needs (Code): runs custom JavaScript code
- Get Reorder Sheet Row (Google Sheets): uses Google Sheets
…plus 10 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
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Slack Trigger requires a signing secret on the Slack API credential (When Slack Message Received).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Aggregate
n8n-nodes-base.aggregate - Slack
n8n-nodes-base.slack - Slack Trigger
n8n-nodes-base.slackTrigger - Gmail
n8n-nodes-base.gmail
From the author
Quick overview Youtube Video: https://www.youtube.com/watch?v=y0uCepHhwSA This workflow monitors inventory from Google Sheets on a schedule, calculates reorder quantities using vendor lead times, logs pending reorders back to Google Sheets, and posts grouped…