📈 Generate client portfolio summaries using Google Sheets, NewsAPI, Gemini and Gmail

⚡ 27 views · 📈 Crypto Trading & Stock Market

Description

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 live stock prices, calculates gains/losses, gathers relevant news, generates a simple AI-powered summary and emails the report to you.

Quick Implementation Steps

  1. Login to your n8n account
  2. Connect your Google Sheets Trigger to your portfolio sheet.
  3. Add your NewsAPI key in the “Fetch Stock News” node.
  4. Configure Google Gemini API credentials.
  5. Connect your Gmail account for email delivery.
  6. Add stock entries (Name, Quantity, Purchase Price) in Google Sheets.
  7. Sit back >> your portfolio summary will be emailed automatically.

What It Does

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.

Who It’s For

Requirements

To use this workflow, ensure you have:

How It Works & Setup Guide

1. Google Sheets Trigger

2. Data Cleaning

3. Fetch Live Stock Prices

4. Calculate Portfolio Metrics

5. Fetch Stock News

6. Combine News Articles

7. Merge Data

8. Format Final Output

9. Generate AI Summary

10. Send Email Report

How To Customize Nodes

Google Sheets Node

Stock Price API

News Node

AI Summary Node

Email Node

Add-ons (Enhancements)

Use Case Examples

  1. Personal Portfolio Tracking

Automatically monitor your investments and receive updates without manual calculations.

  1. Client Reporting for Advisors

Send periodic portfolio summaries to clients with insights and news.

  1. Daily Market Monitoring

Add entries regularly and get AI-generated updates with context.

  1. Investment Research Automation

Combine price data and news to assist decision-making.

  1. Automated Financial Dashboards

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.

Troubleshooting Guide

IssuePossible CauseSolution
No trigger executionIncorrect Google Sheets setupVerify sheet ID and trigger settings
Stock prices not fetchedAPI issue or wrong symbolCheck API response and symbol format
News not loadingMissing API keyAdd valid NewsAPI key
Empty AI summaryIncorrect input formattingCheck “Final Data Formatter” output
Email not sentGmail credentials issueReconnect Gmail OAuth
Rate limit errorsToo many API callsIncrease wait time node delay
Incorrect calculationsData type mismatchEnsure numeric fields are properly parsed

Need Help?

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.

🔗 Nodes Used

HTTP Request, Gmail, Google Sheets Trigger, Google Gemini

📥 Import

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

📖 Importing guide · 🔑 Credential setup