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

⚡ 127 views · 📈 Crypto Trading & Stock Market

Description

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

Requirements to Use This Workflow

How It Works & Setup Guide

Step 1: Schedule Trigger

Step 2: Configure Google Sheets

Column NameDescription
SymbolStock ticker (e.g., INFY, TCS)
QuantityNumber of shares held
Avg PriceAverage purchase price
Current PriceLatest market price

Step 3: Portfolio Metrics Calculation

Step 4: Stock Iteration

Step 5: Configure RSS Feed

Step 6: AI Stock-Level Analysis

Step 7: Rate Limiting

Step 8: Aggregate Insights

Step 9: Portfolio-Level AI Analysis

Step 10: Report Formatting

Step 11: Email Delivery

How To Customize Nodes

Modify sheet ID or add more columns as needed

Replace with any preferred financial news feed

Adjust prompts to match your analysis style in:

Adjust delay if hitting API limits

Change subject, format or switch to Slack/Telegram

Add-ons (Extend Functionality)

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

IssuePossible CauseSolution
No data from Google SheetsIncorrect sheet ID or permissionsReconnect account and verify sheet access
No news fetchedRSS URL not configuredAdd a valid RSS feed URL
AI node not workingMissing/invalid Groq credentialsReconfigure API credentials
Empty email outputParsing issue or no dataCheck Code nodes and AI output format
Workflow not runningSchedule not activeActivate workflow in n8n
Email not sentGmail not configuredReconnect 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.

🔗 Nodes Used

Google Sheets, RSS Read, Gmail, Schedule Trigger, AI Agent, Groq Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup