← All N8N workflows
AI & researchCodeConvert To FileGmailHTTP RequestManual Trigger

Portfolio Intelligence Agent - Complete with RAG

Configured with Convert To File, Gmail, HTTP Request, Read Binary File, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerManual TriggerManual TriggerTriggerSchedule TriggerSchedule TriggerFiles / mediaRead Holdings FileRead Binary FileCodeParse JSON HoldingsCodeCodeCalculate PortfolioMetricsCodeFiles / mediaRead Previous SummariesRead Binary FileCodeFetch & Extract StockPricesCodeCodeParse Summaries CSVCodeCodeCalculate Daily ReturnCodeFiles / mediaRead Knowledge Base1Read Write FileCodeParse Knowledge BaseCSVCodeFiles / mediaRead Portfolio HistoryCSVRead Write FileCodeParse Portfolio HistoryDataCodeCodeBuild PortfolioAnalysisCodeCodeRAG-Retrieve ContextCodeCodeExtract AI SummaryCodeTransformSplit OutSplit OutWeb / APIGenerate AI Summary(Groq)HTTP RequestMessagingSend a messageGmailFiles / mediaAppend PortfolioHistory1Read Write FileTransformConvert Holdings to CSVConvert To FileTransformConvert Summary to CSVConvert To FileFiles / mediaAppend Daily SummaryRead Write File

Node categories in this workflow

  • Trigger
  • Files / media
  • Code
  • Transform
  • Web / API
  • Messaging

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Manual TriggerTriggerManual TriggerSee node parameters
Schedule TriggerTriggerSchedule TriggerSee node parameters
Read Holdings FileFiles / mediaRead Binary FileSee node parameters
Parse JSON HoldingsCodeCodeSee node parameters
Calculate Portfolio MetricsCodeCodeSee node parameters
Read Previous SummariesFiles / mediaRead Binary FileSee node parameters
Fetch & Extract Stock PricesCodeCodeSee node parameters
Parse Summaries CSVCodeCodeSee node parameters
Calculate Daily ReturnCodeCodeSee node parameters
Read Knowledge Base1Files / mediaRead Write FileSee node parameters
Parse Knowledge Base CSVCodeCodeSee node parameters
Read Portfolio History CSVFiles / mediaRead Write FileSee node parameters
Parse Portfolio History DataCodeCodeSee node parameters
Build Portfolio AnalysisCodeCodeSee node parameters
RAG-Retrieve ContextCodeCodeSee node parameters
Extract AI SummaryCodeCodeSee node parameters
Split OutTransformSplit OutSee node parameters
Generate AI Summary (Groq)Web / APIHTTP RequestPOST
Send a messageMessagingGmailSee node parameters
Append Portfolio History1Files / mediaRead Write Filewrite
Convert Holdings to CSVTransformConvert To FileSee node parameters
Convert Summary to CSVTransformConvert To FileSee node parameters
Append Daily SummaryFiles / mediaRead Write Filewrite

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • gmailOAuth2

Workflow notes

Portfolio Intelligence Agent - Complete with RAG

Portfolio Intelligence Agent - Complete with RAG

Purpose and structure

This folder contains the Portfolio Intelligence Agent - Complete with RAG workflow. Its executable nodes use code, convertToFile, gmail, httpRequest, manualTrigger, readBinaryFile, readWriteFile, scheduleTrigger, splitOut. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Manual Trigger, Schedule Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

Nik Bear Brown; rights confirmed 2026-10-19 MIT; preserve source notices.

More in AI & research