Analyze procurement savings opportunities with Google Sheets, GPT-4o Mini, and Gmail
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs on a schedule (every week at 08:00). Along the way it connects Google Sheets, OpenAI Chat Model and Gmail.
How it runs
Trigger: On a schedule (every week at 08:00).
- Read Procurement Data (Google Sheets): uses Google Sheets
- Data Aggregation (Code): runs custom JavaScript code
- Send a message (Gmail): uses Gmail
- Opportunity Detection (Code): runs custom JavaScript code
- AI Opportunity Analysis (AI Agent): runs an AI agent, with model: GPT-4o Mini; output parser: Opportunities Parser
- Priority Scoring (Code): runs custom JavaScript code
- Sort: sorts the items
- Save Opportunities to Sheet (Google Sheets): append
- Prepare Top 5 Email (Code): runs custom JavaScript code
- Send Weekly Savings Report (Gmail): uses Gmail
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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 (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Sort
n8n-nodes-base.sort - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs every Monday, analyzes procurement transactions from Google Sheets to detect savings opportunities, uses OpenAI (GPT-4o Mini) to generate recommendations and savings estimates, prioritizes the results, saves them back to…