Block 1 - Calculate Portfolio Metrics
- Type / Role
- n8n-nodes-base.code - code
- Config choices
- Version 2
Client Portfolio Summary Generator Google Sheets, NewsAPI, Gemini AI & Gmail This workflow automatically analyzes your stock portfolio whenever a new row is added to Google Sheets. It fetches ...
n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.gmail, n8n-nodes-base.stickynote, n8n-nodes-base.wait, n8n-nodes-base.set
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.
Original n8n.io source> Google Sheets, NewsAPI, Gemini AI & Gmail
This workflow automatically analyzes your stock portfolio whenever a new row is added to Google Sheets. It fetches live stock prices, calculates gains/losses, gathers relevant news, generates a simple AI-powered summary and emails the report to you.
This workflow automates end-to-end portfolio monitoring and reporting. Whenever a new stock entry is added to your Google Sheet, it triggers a sequence of actions that fetch real-time stock prices and calculates the current value and profit/loss for each holding.
In addition to numerical analysis, the workflow enriches your portfolio insights by pulling the latest news articles related to each stock. This provides valuable context behind market movements, helping users better understand performance drivers.
Finally, the workflow uses Google Gemini AI to generate a simple, human-friendly summary of the portfolio. The summary highlights overall performance, best/worst performers and key insights, which is then automatically delivered via email.
To use this workflow, ensure you have:
rowAddedgemini-3.1-flash-lite-previewGoogle Sheets Node
Stock Price API
News Node
AI Summary Node
Email Node
Automatically monitor your investments and receive updates without manual calculations.
Send periodic portfolio summaries to clients with insights and news.
Add entries regularly and get AI-generated updates with context.
Combine price data and news to assist decision-making.
Use this workflow as a backend for dashboards or reporting systems.
There can be many more use cases depending on how you extend and customize this workflow.
| Issue | Possible Cause | Solution |
|---|---|---|
| No trigger execution | Incorrect Google Sheets setup | Verify sheet ID and trigger settings |
| Stock prices not fetched | API issue or wrong symbol | Check API response and symbol format |
| News not loading | Missing API key | Add valid NewsAPI key |
| Empty AI summary | Incorrect input formatting | Check "Final Data Formatter" output |
| Email not sent | Gmail credentials issue | Reconnect Gmail OAuth |
| Rate limit errors | Too many API calls | Increase wait time node delay |
| Incorrect calculations | Data type mismatch | Ensure numeric fields are properly parsed |
If you need assistance with:
Feel free to reach out to WeblineIndia. Our n8n experts can help you design, implement and scale automation solutions tailored to your requirements.
Let us help you turn your workflows into powerful business tools.
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.
| Workflow | Generate client portfolio summaries using Google Sheets, NewsAPI, Gemini and Gmail |
|---|---|
| Complexity | advanced |
| Nodes | 17 |
| Categories | Crypto Trading, AI Summarization |
| Author | WeblineIndia |
| Published | 27 Apr 2026 |
Use the JSON export at /data/workflows/15338/15338.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
Client Portfolio Summary Generator Google Sheets, NewsAPI, Gemini AI & Gmail This workflow automatically analyzes your stock portfolio whenever a new row is added to Google Sheets. It fetches ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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.