๐Ÿ“Š Send daily Google Alerts AI digest with GPT-4.1-mini and Gmail

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

๐Ÿ’ก Pro Tip โ€” For competitive intelligence, ScraperNode can automate the data collection โ€” Yelp reviews, Glassdoor company data, and Crunchbase profiles all return structured JSON you can feed straight into this workflow.

View All Scrapers

Description

Quick overview

This workflow runs daily to fetch multiple Google Alerts RSS feeds, uses OpenAI GPT-4.1-mini to score and summarize each alert with sentiment and recommended actions, then compiles the most relevant items into a branded HTML digest and sends it via Gmail.

How it works

  1. Runs every 24 hours on a schedule.
  2. Loads a list of Google Alerts RSS feed URLs (with a name and category for each) and fetches each feed as XML.
  3. Parses each feedโ€™s Atom entries from the last 48 hours and extracts the title, link, summary, published date, and feed metadata.
  4. Skips any feeds that have no recent entries.
  5. Sends each parsed alert to OpenAI (GPT-4.1-mini) to generate a relevance score (1โ€“10), one-sentence insight, sentiment, and recommended action.
  6. Keeps only alerts with a relevance score of 4 or higher, aggregates them into a single list, and builds a grouped, sorted HTML email digest.
  7. Sends the HTML digest email via Gmail with a subject line that reflects the number of relevant alerts.

Setup

  1. Get your Google Alerts RSS feed URL. Go to google.com/alerts, find an existing alert, click the RSS icon at the bottom, and copy the feed URL.

  2. Open node 2. Code โ€” Set Alert Feed URLs and replace YOUR_ALERT_NAME with a descriptive name for the alert, replace YOUR_GOOGLE_ALERTS_RSS_URL with the RSS URL you just copied, and set the category value to any label you want (for example Brand Monitoring or Competitor Intelligence). To add more feeds, duplicate the object inside the array following the commented examples in the code.

  3. Open the OpenAI โ€” GPT-4.1-mini Model step and connect your OpenAI API credential.

  4. Open node 11. Gmail โ€” Send Digest Email, connect your Gmail OAuth2 credential, and replace REPLACE_WITH_YOUR_EMAIL@example.com with your actual email address.

  5. Open node 10. Code โ€” Build HTML Email Digest and find YOUR_BRAND_NAME near the bottom of the code in the footer line โ€” replace it with your company or personal name.

  6. Activate the workflow. It will run automatically every 24 hours. To test immediately, use the manual Execute option on node 1. Schedule โ€” Every 24 Hours.

Requirements

Customization

Additional info

The Google Alerts RSS feed URL must be copied exactly from your Google Alerts dashboard. Go to google.com/alerts, find your alert, and look for the RSS feed icon at the bottom of the alert row. If you do not see the RSS icon, make sure you are signed into your Google account and the alert is set to deliver via RSS.

The workflow parses Atom-format XML which is the format Google Alerts uses for its RSS feeds. Standard RSS XML from other sources uses a different tag structure and may not parse correctly with this workflow without modifying node 4. Code โ€” Parse RSS Entries.

The relevance filter at node 8. IF โ€” Filter Relevance (Score 4 or Above) means alerts GPT scores as 1, 2, or 3 are dropped and never appear in the email. If your digest is empty today, it may mean all alerts scored below 4 โ€” you can temporarily lower the threshold to 1 in that node to test that feeds and parsing are working correctly.

Replace YOUR_BRAND_NAME in node 10. Code โ€” Build HTML Email Digest โ€” this text appears in the email footer and in the subject line that recipients see. Leaving the placeholder unchanged will show YOUR_BRAND_NAME in every email you receive.

๐Ÿ”— Nodes Used

HTTP Request, Gmail, Schedule Trigger, AI Agent, OpenAI Chat Model

๐Ÿ“ฅ Import

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

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