๐Ÿ“Š Detect client portfolio news impact with Gemini AI, Gmail, and Google Sheets

โšก 11 views ยท ๐Ÿ“Š Market Research & Insights

Description

Client Portfolio News Impact Detection with AI & Gmail

This workflow automatically fetches the latest business news, analyzes its impact on clients using AI and sends alerts for high-impact articles while logging all processed data in Google Sheets. It ensures no duplicate processing using URL normalization and maintains a complete audit trail.

Quick Implementation Steps

  1. Add your News API key in the HTTP Request node in your n8n account.
  2. Connect Google Sheets (Client Dataset + Article Log).
  3. Configure Gemini AI credentials.
  4. Set up Gmail node for alerts.
  5. Activate the workflow (runs daily at 8 AM).

What It Does

This workflow continuously monitors business news and evaluates its relevance to a predefined client dataset. It fetches the latest articles, validates them and ensures that only new articles are processed by comparing normalized URLs against previously logged entries.

Each article is enriched with structured client data and sent to an AI model for classification. The AI determines the impact level (High, Medium, Low) and identifies which clients are affected along with precise reasoning.

High-impact articles trigger automated email alerts, ensuring timely communication. All articlesโ€”regardless of impactโ€”are logged in a Google Sheet along with metadata such as processing time, impact level, affected clients and email status.

Who Itโ€™s For

Requirements

How It Works & Setup

Step 1: Trigger Setup

Step 2: News API Configuration

Step 3: Google Sheets Setup

Step 4: Client Data Preparation

Step 5: Deduplication Logic

Step 6: AI Configuration

Step 7: Email Setup

Step 8: Workflow Execution Flow

  1. Fetch news articles
  2. Validate and split articles
  3. Process one article at a time
  4. Check for duplicates
  5. Attach client dataset
  6. Send to AI for classification
  7. Filter high-impact results
  8. Send email alerts (if high impact)
  9. Log all articles
  10. Wait 1 minute before next article

How To Customize Nodes

Add-ons

Use Case Examples

There can be many more use cases depending on how the workflow is extended.

Troubleshooting Guide

IssuePossible CauseSolution
No articles fetchedInvalid API keyVerify News API key
Workflow stops earlyEmpty articles arrayCheck API response
Duplicate articles processedURL normalization mismatchVerify normalization logic
AI output errorInvalid JSON responseEnsure strict JSON prompt
Emails not sentGmail not configuredReconnect Gmail credentials
Clients not mappedIncorrect sheet structureValidate column names

Need Help?

If you need assistance setting up this workflow, customizing it for your business or adding advanced features, feel free to reach out to our n8n automation developers at WeblineIndia.

We can help you:

Contact WeblineIndia to accelerate your automation journey.

๐Ÿ”— Nodes Used

Google Sheets, HTTP Request, Gmail, Schedule Trigger, Google Gemini

๐Ÿ“ฅ Import

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

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup