Classify procurement spend in Google Sheets with Gemini and Gmail
Ready for 3.0What this workflow does
This AI workflow has 31 nodes and runs on a schedule (every day at 09:00) (plus 1 other trigger). Along the way it connects Google Sheets, Gmail and Google Gemini Chat Model.
How it runs
Trigger: On a schedule (every day at 09:00) (plus 1 other trigger).
- Load Workflow Settings (Edit Fields (Set)): sets 9 fields: minimum_confidence, pending_status, classified_status…
- Load Human Review Settings (Edit Fields (Set)): sets 5 fields: active_category_value, pending_review_status, classified_status…
- Get Pending Transactions (Google Sheets): uses Google Sheets
- Get Active Spend Categories (Google Sheets): uses Google Sheets
- Get Approved Classification Feedback (Google Sheets): uses Google Sheets
- Get Transaction for Review (Google Sheets): uses Google Sheets
- Attach Spend Taxonomy (Merge): merges the data from its input branches
- Build Spend Taxonomy (Code): runs custom JavaScript code
- Build Feedback Examples (Code): runs custom JavaScript code
- Get Active Review Taxonomy (Google Sheets): uses Google Sheets
…plus 17 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Gmail templates (518)
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 (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - n8n Form Trigger
n8n-nodes-base.formTrigger - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Quick Overview This workflow classifies procurement transactions stored in Google Sheets using Google Gemini with an approved spend taxonomy and prior human feedback, then either auto-updates the transactions and logs results or routes uncertain cases to a…