πŸ“ˆ Analyze corporate action impact from NSE RSS with Google Sheets, Gemini, and Gmail

⚑ 119 views Β· πŸ“ˆ Crypto Trading & Stock Market

Description

Corporate Actions Impact Analyzer

> n8n, NSE RSS, Google Sheets, Gemini AI and Gmail

This workflow automatically tracks corporate actions from NSE RSS, matches them with a single client’s portfolio stored in Google Sheets, calculates financial impact using AI and sends a structured email summary. Every run is logged for tracking and auditing.

Quick Implementation Steps

  1. Connect credentials in your n8n account:
    • Google Sheets
    • Gmail
    • Google Gemini API
  2. Open Config (Edit Fields) and update client_id and admin_email
  3. Ensure your Portfolio Sheet has required columns (see below)
  4. Run workflow manually once for testing
  5. Activate Run Workflow (Scheduler)

What It Does

This workflow automates corporate action monitoring for a single client portfolio. It starts by fetching the latest corporate actions from the NSE RSS feed and converting raw feed data into structured fields such as company name, dividend amount, ratios and important dates.

It then retrieves the client’s holdings from Google Sheets and intelligently matches them with corporate actions using normalized company names. Only relevant matches are processed further.

For matched actions, the workflow uses Gemini AI to calculate financial impact including dividend benefits, bonus shares and required actions. It generates a clean summary and sends it via email, while logging every run.

Who It’s For

Requirements

Tools Required

Required Google Sheet Structure

Portfolio Sheet (Sheet Name: Portfolio)

Required columns:

client_id, client_name, email, asset_name, company_name, symbol, quantity, avg_buy_price, asset_type

Action_Log Sheet

How It Works & Setup Guide

Step 1: Scheduler

Node: Run Workflow (Scheduler)

Step 2: Configuration

Node: Config (Edit Fields)

Step 3: Fetch RSS Data

Node: Fetch Corporate Actions

Step 4: Normalize Data

Node: Normalize RSS

Step 5: Fetch Portfolio

Node: Fetch Portfolio (Single Client)

Step 6: Match + Build Prompt

Node: Compare Holdings + Build Prompt

Step 7: Match Check

Node: Has Matching Actions?

Step 8: AI Processing

Node: Generate AI Impact Summary

Step 9: Parse Output

Node: Clean + Parse AI Output

Step 10: Validation

Node: AI Output Valid?

Step 11A: Success Flow

Step 11B: No Match Flow

Step 11C: Error Flow

How To Customize Nodes

Add-ons

Use Case Examples

  1. Dividend alerts for clients
  2. Portfolio monitoring automation
  3. Wealth advisor reporting
  4. Corporate action tracking system
  5. Automated financial notifications

There can be many more use cases depending on customization.

Troubleshooting Guide

IssuePossible CauseSolution
No data in outputRSS feed issueCheck RSS URL
No matches foundClient holdings mismatchVerify company names
AI parse errorInvalid AI responseCheck prompt structure
Email not sentGmail credentials issueReconnect Gmail
Sheets not updatingWrong sheet IDVerify Google Sheets config

Need Help?

If you need help setting up, customizing or scaling this workflow, you can reach out to our n8n workflow development experts at WeblineIndia.

We can help you with:

Get expert help and build powerful automation tailored to your business needs.

πŸ”— Nodes Used

Google Sheets, RSS Read, Gmail, Schedule Trigger, Google Gemini

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup