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.
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.
| 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 |
Modify sheet ID or add more columns as needed
Replace with any preferred financial news feed
Adjust prompts to match your analysis style in:
“Generate Stock Insight”
“Generate Portfolio Insight”
Wait Node
Adjust delay if hitting API limits
Change subject, format or switch to Slack/Telegram
There can be many more use cases depending on how you customize the workflow.
| 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 |
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.