Skip to main content

Analyze your stock portfolio daily using Google Sheets, RSS, Groq LLM and Gmail

Workflow preview

Workflow preview
100%
Analyze your stock portfolio daily using Google Sheets, RSS, Groq LLM and Gmail preview
Open on n8n.io

1. Workflow Overview

AI Portfolio Analysis & Reporting using Google Sheets, RSS, Groq LLM & Gmail This n8n workflow automatically analyzes your stock portfolio every day at 4 PM. It fetches portfolio data from Google S...

Best for

  • Crypto Trading automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.rssfeedread, n8n-nodes-base.sort, n8n-nodes-base.limit, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgroq

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Analyze your stock portfolio daily using Google Sheets, RSS, Groq LLM and Gmail
Workflow name
Analyze your stock portfolio daily using Google Sheets, RSS, Groq LLM and Gmail

AI Portfolio Analysis & Reporting using Google Sheets, RSS, Groq LLM & Gmail

This n8n workflow automatically analyzes your stock portfolio every day at 4 PM. It fetches portfolio data from Google Sheets, enriches it with latest market news via RSS, generates AI-powered stock insights using LLM models and sends a professional portfolio report directly to your email.

Quick Implementation Steps

  1. Import the workflow into your n8n account
  2. Connect Google Sheets account and map your portfolio sheet
  3. Add a valid RSS feed URL in the news node
  4. Configure Groq API credentials for AI nodes
  5. Set your recipient email in Gmail node
  6. Activate the workflow

What It Does

This workflow provides a fully automated system for analyzing your stock portfolio using both quantitative data and qualitative insights. It starts by reading your portfolio data from Google Sheets, including stock symbols, quantities and pricing details. It then calculates key performance metrics such as invested value, current value, profit/loss and return percentage for each stock.

Each stock is processed individually. The workflow fetches recent news articles from an RSS feed, filters the most relevant updates and combines them with stock performance data. Using an AI model, it generates professional-grade insights that evaluate performance, interpret news sentiment and assess the stock’s impact on your portfolio.

After analyzing all stocks, the workflow aggregates the insights and generates a high-level portfolio summary. This includes overall performance, key drivers, risks and strategic outlook. Finally, everything is formatted into a clean report and delivered via email automatically.

Who It's For

  • Retail investors tracking their personal portfolios
  • Financial analysts looking for automated insights
  • Portfolio managers needing quick daily summaries
  • Traders who want news-driven analysis
  • Anyone interested in combining AI with investment tracking

Requirements to Use This Workflow

  • n8n login (self-hosted or cloud)
  • Google Sheets account with portfolio data
  • Groq API credentials (for LLM access)
  • Gmail account (for sending reports)
  • RSS feed URL for stock/market news

How It Works & Setup Guide

Step 1: Schedule Trigger

  • The workflow runs automatically every day at 4 PM
  • No manual intervention required once activated

Step 2: Configure Google Sheets

  • Connect your Google Sheets account
  • Use the following structure:
Column Name Description
Symbol Stock ticker (e.g., INFY, TCS)
Quantity Number of shares held
Avg Price Average purchase price
Current Price Latest market price

Step 3: Portfolio Metrics Calculation

  • Automatically calculates:
  • Invested Value
  • Current Value
  • Profit/Loss (PnL)
  • Return Percentage

Step 4: Stock Iteration

  • Each stock is processed individually using batch iteration

Step 5: Configure RSS Feed

  • Add a valid RSS feed URL in “Fetch Stock News (RSS)” node
  • This is required to fetch latest market news

Step 6: AI Stock-Level Analysis

  • Connect Groq credentials
  • AI evaluates:
  • Performance strength
  • News sentiment
  • Portfolio impact
  • Actionable stance

Step 7: Rate Limiting

  • A wait node ensures API rate limits are respected

Step 8: Aggregate Insights

  • Combines all stock-level AI outputs into structured data

Step 9: Portfolio-Level AI Analysis

  • Generates:
  • Overall portfolio view
  • Key drivers
  • Risks
  • Strategy

Step 10: Report Formatting

  • Converts structured data into a readable text report

Step 11: Email Delivery

  • Configure recipient email in Gmail node
  • Sends final report automatically

How To Customize Nodes

  • Google Sheets Node

Modify sheet ID or add more columns as needed

  • RSS Node

Replace with any preferred financial news feed

  • AI Prompts

Adjust prompts to match your analysis style in:

  • “Generate Stock Insight”

  • “Generate Portfolio Insight”

  • Wait Node

Adjust delay if hitting API limits

  • Email Node

Change subject, format or switch to Slack/Telegram

Add-ons (Extend Functionality)

  • Add Slack or Microsoft Teams notifications
  • Store historical reports in a database
  • Add stock price API for real-time updates
  • Include charts or visual dashboards
  • Integrate risk scoring or alerts

Use Case Examples

  1. Daily automated portfolio performance tracking
  2. News-driven investment monitoring
  3. AI-assisted portfolio review for decision support
  4. Risk identification in multi-stock portfolios
  5. Generating investor-ready summary reports

There can be many more use cases depending on how you customize the workflow.

Troubleshooting Guide

Issue Possible Cause Solution
No data from Google Sheets Incorrect sheet ID or permissions Reconnect account and verify sheet access
No news fetched RSS URL not configured Add a valid RSS feed URL
AI node not working Missing/invalid Groq credentials Reconfigure API credentials
Empty email output Parsing issue or no data Check Code nodes and AI output format
Workflow not running Schedule not active Activate workflow in n8n
Email not sent Gmail not configured Reconnect Gmail OAuth

Need Help?

If you need assistance setting up this workflow, customizing AI prompts or building advanced automation solutions, our n8n automation developers at WeblineIndia are here to help.

Whether you want to extend this workflow with dashboards, alerts or deeper analytics, feel free to reach out and get expert support.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Fetch Portfolio (Google Sheets)

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 2 - Iterate Stocks

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 3 - Fetch Stock News (RSS)

Type / Role
n8n-nodes-base.rssFeedRead - rssFeedRead
Config choices
Version 1.2

Block 4 - Sort News by Date

Type / Role
n8n-nodes-base.sort - sort
Config choices
Version 1

Block 5 - Limit News (Top 5)

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 6 - Merge Stock Data + News

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Generate Stock Insight

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 8 - LLM (Stock Analysis)

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 9 - Rate Limit (Wait)

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 10 - Aggregate Stock Insights

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 11 - Parse Stock AI Output

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Generate Portfolio Insight

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 13 - LLM (Portfolio Analysis)

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 14 - Parse Portfolio AI Output

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Merge Stocks + Portfolio Insight

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 16 - Format Email Report

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - Send Email (Gmail)

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 18 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Analyze your stock portfolio daily using Google Sheets, RSS, Groq LLM and Gmail
Complexity advanced
Nodes 26
Categories Crypto Trading, AI Summarization
Author WeblineIndia
Published 12 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15670/15670.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Analyze your stock portfolio daily using Google Sheets, RSS, Groq LLM and Gmail do?

AI Portfolio Analysis & Reporting using Google Sheets, RSS, Groq LLM & Gmail This n8n workflow automatically analyzes your stock portfolio every day at 4 PM. It fetches portfolio data from Google S...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, AI Summarization use case.