Create purchase orders from Google Sheets using Groq AI and Gmail
Ready for 3.0What this workflow does
This workflow has 18 nodes and runs on a schedule (every 15 minutes). Along the way it connects Google Sheets and Gmail.
How it runs
Trigger: On a schedule (every 15 minutes).
- Read - New Requisitions (Google Sheets): uses Google Sheets
- Filter: keeps only the items that match a condition
- Read - Supplier Master Data (Google Sheets): uses Google Sheets
- Code: runs custom JavaScript code
- Check - Existing Purchase Order (If): checks a condition and branches into true / false
- Code: runs custom JavaScript code
- Check Validation (If): checks a condition and branches into true / false
- AI - Risk Assessment (HTTP Request): calls an HTTP API (POST)
- Create - Rejection Audit (Google Sheets): append
- Code: runs custom JavaScript code
…plus 6 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102)
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 (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Filter
n8n-nodes-base.filter - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs every 15 minutes to read approved, new requisitions from Google Sheets, validate supplier and policy rules, call an LLM risk-assessment API via HTTP, then create a purchase order record, update requisition status, write audit…