Templates / Send portfolio risk reports with Google Sheets, GPT-4o-mini and Gmail

Send portfolio risk reports with Google Sheets, GPT-4o-mini and Gmail

Ready for 3.0

by WeblineIndia ✓ · 57 views · created 2026-06-17 · 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 16 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets, OpenAI and Gmail.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Choose Portfolio Data Source (If): checks a condition and branches into true / false
  2. Prepare Uploaded CSV File (Code): runs custom JavaScript code
  3. Load Portfolio from Google Sheets (Google Sheets): uses Google Sheets
  4. Read Portfolio CSV Data (Spreadsheet File): reads or writes a spreadsheet file (legacy node)
  5. Combine Portfolio Holdings (Aggregate): combines items into one
  6. Set User & Source Details (Edit Fields (Set)): sets or maps fields
  7. Analyze Portfolio Risk (Code): runs custom JavaScript code
  8. Check Portfolio Data (If): checks a condition and branches into true / false
  9. Generate AI Risk Insights (OpenAI): uses OpenAI
  10. Check User Email for Error Alert (If): checks a condition and branches into true / false

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

Services it uses

Google SheetsOpenAIGmail

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.

  • Still check Spreadsheet File (Read Portfolio CSV Data): Convert to File / Extract from File.

Nodes used (10)

From the author

Quick Overview This workflow receives a portfolio via webhook (uploaded CSV or Google Sheets), calculates allocation and concentration risk metrics, generates an OpenAI HTML risk report, emails it through Gmail, and returns a JSON API response with the report…

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.