Plan weekly inventory reorders with Groq and Gmail approvals
Ready for 3.0What this workflow does
This AI workflow has 47 nodes and runs on a schedule (cron 0 8 * * 1) (plus 2 other triggers). Along the way it connects Google Sheets, Groq Chat Model and Gmail.
How it runs
Trigger: On a schedule (cron 0 8 * * 1) (plus 2 other triggers).
- Set Inventory Parameters (Edit Fields (Set)): sets 8 fields: business_name, buyer_email, currency…
- Read the reply (Edit Fields (Set)): sets 3 fields: po_number, from_email, reply_text
- Alert owner about the failure (Gmail): send (message)
- Read Products sheet (Google Sheets): read (sheet)
- Read Sales sheet (Google Sheets): read (sheet)
- Is it about a purchase order? (If): checks a condition and branches into true / false
- Keep active products (Filter): keeps only the items that match a condition
- Keep sales in the lookback window (Filter): keeps only the items that match a condition
- Understand supplier reply (Basic LLM Chain): sends a prompt to an LLM, with model: Groq reply model; output parser: Reply format
- Attach sales to products (Merge): merges the data from its input branches
…plus 31 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Groq + Google Sheets templates (156) · Other Groq + Gmail templates (125)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (18)
- 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 - Summarize
n8n-nodes-base.summarize - Sort
n8n-nodes-base.sort - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - Split Out
n8n-nodes-base.splitOut - If
n8n-nodes-base.if - Gmail Trigger
n8n-nodes-base.gmailTrigger - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow runs every Monday to calculate inventory reorder points and purchase orders from n8n Data Tables, uses Groq to draft buyer and supplier notes, and sends an approval email via Gmail before emailing approved purchase orders to…