Predict next 5-day stock trends with Twelve Data API & Google Sheets
Needs changesWhat this workflow does
This workflow has 8 nodes and runs on a schedule (legacy Cron node). Along the way it connects Google Sheets.
How it runs
Trigger: On a schedule (legacy Cron node).
- Read Stock Symbols (Google Sheets): uses Google Sheets
- Set Configuration Variables (Edit Fields (Set)): sets 3 fields: twelvedata_api_key, stock_symbols, email_recipient
- Fetch 5-Day Stock Data (HTTP Request): calls an HTTP API
- Analyze Stock Trends (Code): runs custom JavaScript code
- Update Google Sheet (Google Sheets): append
- Format Email Report (Code): runs custom JavaScript code
- Send Email: sends an email over SMTP
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Cron in Daily Market Close Trigger : replace with Schedule Trigger.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| Cron Daily Market Close Trigger | Schedule Trigger |
Nodes used (6)
- Cron
n8n-nodes-base.cron - Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Send Email
n8n-nodes-base.emailSend
From the author
This automated n8n workflow fetches stock data from the Twelve Data API after market close, predicts 5-day trends using AI analysis, updates Google Sheets with the results, and sends an email summary report. This process helps users stay informed about stock…