Templates / Send AI stock risk alerts from Google Sheets with Twelve Data and Groq

Send AI stock risk alerts from Google Sheets with Twelve Data and Groq

Needs changes

by WeblineIndia ✓ · 81 views · created 2026-05-06 · Crypto Trading, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets, Gmail and Groq Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Read Portfolio from Google Sheets (Google Sheets): uses Google Sheets
  2. Edit Fields – Config & Thresholds (Edit Fields (Set)): sets or maps fields
  3. Loop: Fetch Current Prices (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Merge: merges the data from its input branches
  5. Wait: waits 8 seconds
  6. Compute Risk Logic (Function): runs custom JavaScript (legacy Function node)
  7. Fetch Stock Prices (HTTP Request): calls an HTTP API
  8. Filter – Only Flagged Risks (If): checks a condition and branches into true / false
  9. Collect Flagged Stocks (Code): runs custom JavaScript code
  10. Generate Risk Summary (AI Agent): runs an AI agent, with model: Groq Chat Model

…plus 1 more step. See the full node list below.

Services it uses

Google SheetsGmailGroq Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Compute Risk Logic: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function (legacy)
Compute Risk Logic
Code node, mode 'Run Once for All Items'

Nodes used (13)

From the author

Google Sheets + Twelve Data + Groq AI Stock Risk Alert Workflow > Smart Stock Risk Alerts in Minutes This workflow automatically reads your stock portfolio from Google Sheets, fetches real-time prices via API, calculates risk metrics (price drops and…

Excerpt from WeblineIndia's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.