Templates / Track commodity portfolio drift with Google Sheets, Gemini AI and Gmail alerts

Track commodity portfolio drift with Google Sheets, Gemini AI and Gmail alerts

Ready for 3.0

by WeblineIndia ✓ · 19 views · created 2026-04-27 · Crypto Trading, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 21 nodes and runs on a schedule (every day at 09:00). Along the way it connects Google Sheets, Google Gemini and Gmail.

How it runs

Trigger: On a schedule (every day at 09:00).

  1. Read Holdings (Google Sheets): uses Google Sheets
  2. Workflow Settings (Edit Fields (Set)): sets or maps fields
  3. Synchronize Inputs (Merge): merges the data from its input branches
  4. Prepare Portfolio Context (Code): runs custom JavaScript code
  5. Validate Portfolio Data (Code): runs custom JavaScript code
  6. Check Validation Status (If): checks a condition and branches into true / false
  7. Calculate Portfolio Allocation (Code): runs custom JavaScript code
  8. Prepare Validation Failure Log (Edit Fields (Set)): sets 8 fields: run_date, total_value, rebalance_needed…
  9. Detect Portfolio Drift (Code): runs custom JavaScript code
  10. Log Validation Failure (Google Sheets): append

…plus 10 more steps. See the full node list below.

Services it uses

Google SheetsGoogle GeminiGmail

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.

Nodes used (8)

From the author

Commodity Portfolio Tracker using n8n, Google Sheets, Gemini AI & Gmail Alerts This workflow automatically monitors a commodity portfolio stored in Google Sheets, compares actual allocation against predefined targets, detects deviations and sends intelligent…

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.