Analyze commodity portfolio diversification with Sheets, Gemini, and Gmail
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Gemini, Gmail and Google Sheets. It also calls goldapi.io over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Initialize Configuration & API Keys (Edit Fields (Set)): sets 3 fields: goldapi_key, eia_api_key, twelvedata_key
- Load Portfolio Data from Sheets (Google Sheets): uses Google Sheets
- Get Gold Price (INR) (HTTP Request): calls goldapi.io
- Get Silver Price (INR) (HTTP Request): calls goldapi.io
- Get Crude Oil Price (USD) (HTTP Request): calls an HTTP API
- Get Gold Trend Time Series (HTTP Request): calls an HTTP API
- Merge: merges the data from its input branches
- Extract Gold Price Value (Edit Fields (Set)): sets 1 field: gold price
- Extract Silver Price Value (Edit Fields (Set)): sets 1 field: silver price
- Convert Oil Price USD to INR (Edit Fields (Set)): sets 2 fields: oil_price_usd, oil_price_inr
…plus 13 more steps. See the full node list below.
Services it uses
HTTP calls to: goldapi.io
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 (9)
- Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick Overview This workflow reads a gold/silver/oil portfolio from Google Sheets, pulls current commodity prices and a recent gold trend from GoldAPI, EIA, and Twelve Data, calculates allocation and HHI concentration risk, generates a Gemini analysis, and…