Send weekly AI portfolio reports with Google Sheets, Gmail and Groq
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets, Groq Chat Model and Gmail.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Get Client Data from Google Sheets (Google Sheets): uses Google Sheets
- Process Clients in Batches (Loop Over Items (Split in Batches)): loops over the items in batches
- Compute Investment, Profit & Growth (Code): runs custom JavaScript code
- Generate Weekly Portfolio Report (AI Agent): runs an AI agent, with model: Generate Weekly Portfolio Report
- Prepare AI Output for Formatting (Code): runs custom JavaScript code
- Format Report (Code): runs custom JavaScript code
- Pause Before Sending Email (Wait): pauses before continuing
- Prepare Data for Sheet (Edit Fields (Set)): sets 4 fields: Current Value, Email, formattedReport…
- Send Report via Gmail (Gmail): uses Gmail
- Update Client Status in Sheet (Google Sheets): update
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 (9)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Wait
n8n-nodes-base.wait - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Gmail
n8n-nodes-base.gmail
From the author
Weekly Client Report Generator This workflow automatically generates weekly portfolio reports for clients using their investment data from Google Sheets. It calculates profit, growth and other key metrics, formats a professional report, sends it via Gmail and…