Track equity sector rotation with Google Sheets, Yahoo Finance, Groq and Gmail
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Groq Chat Model, Google Sheets and Gmail.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Fetch Historic Data (Google Sheets): uses Google Sheets
- Fetch Active Stocks (Google Sheets): uses Google Sheets
- Merge: merges the data from its input branches
- Set API Base URL (Edit Fields (Set)): sets 1 field: yahoo_finance_base_url
- Detect Rotation and Compare Historic Data (Code): runs custom JavaScript code
- Get stocks Data (HTTP Request): calls an HTTP API
- Save Today's Market Data (Google Sheets): append
- Prepare AI Insights Prompt (Code): runs custom JavaScript code
- Normalize Data (Code): runs custom JavaScript code
- AI Analyzer (AI Agent): runs an AI agent, with model: Insights from Model
…plus 6 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 (10)
- Code
n8n-nodes-base.code - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail
From the author
Sector Rotation Tracker & Alert System of Equity Market This workflow automates the tracking of stock market sector rotation. It fetches a list of active stocks from Google Sheets, pulls their last 5 days of market data from Yahoo Finance and calculates…