Skip to main content

Send daily Google Alerts AI digest with GPT-4.1-mini and Gmail

Workflow preview

Workflow preview
100%
Send daily Google Alerts AI digest with GPT-4.1-mini and Gmail preview
Open on n8n.io

1. Workflow Overview

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 t...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.aggregate

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Incrementors.

Original n8n.io source

1.1 Workflow description

Title
Send daily Google Alerts AI digest with GPT-4.1-mini and Gmail
Workflow name
Send daily Google Alerts AI digest with GPT-4.1-mini and Gmail

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 [email protected] 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

  • Active n8n instance (self-hosted or cloud)
  • One or more Google Alerts set up at google.com/alerts with RSS feed enabled
  • OpenAI account with GPT-4.1-mini API access
  • Gmail account connected via OAuth2 for sending the digest
  • No additional accounts or API keys required — Google Alerts RSS feeds are publicly accessible

Customization

  • Add more Google Alerts feeds — in node 2. Code — Set Alert Feed URLs, duplicate the object inside the alertFeeds array and add any additional RSS feed URL with its own name and category; each feed is fetched and analyzed independently every day
  • Lower or raise the relevance filter threshold — in node 8. IF — Filter Relevance (Score 4 or Above), change the value from 4 to any number between 1 and 10 to include more or fewer alerts in the daily digest
  • Change the digest frequency — in node 1. Schedule — Every 24 Hours, change the interval from 24 hours to 12 hours for twice-daily digests or to 48 hours for every-other-day delivery
  • Add a Slack notification for high-priority alerts — after node 9. Aggregate — Collect All Alerts, add a Slack step that filters for alerts with analysis_relevance of 8 or above and posts a quick message to a brand monitoring channel
  • Extend the article lookback window — in node 4. Code — Parse RSS Entries, change the 48 in the hoursDiff comparison to 72 or 96 to catch alerts from the past 3 or 4 days — useful if you run the workflow less frequently

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.

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section — Schedule and Alert Feed URL Config

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section — RSS Fetch and Entry Parse

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section — Has Results Check and GPT-4.1-mini Alert Analysis

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Section — AI Response Parse, Relevance Filter, and Aggregate

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Section — HTML Digest Build and Gmail Send

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - 1. Schedule — Every 24 Hours

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 8 - 2. Code — Set Alert Feed URLs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - 3. HTTP — Fetch RSS Feed

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - 4. Code — Parse RSS Entries

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - 5. IF — Has Results?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 12 - 6. AI Agent — Analyze Alert

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 13 - OpenAI — GPT-4.1-mini Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 14 - 7. Code — Parse AI Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - 8. IF — Filter Relevance (Score 4 or Above)

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 16 - 9. Aggregate — Collect All Alerts

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 17 - 10. Code — Build HTML Email Digest

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - 11. Gmail — Send Digest Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Send daily Google Alerts AI digest with GPT-4.1-mini and Gmail
Complexity advanced
Nodes 18
Categories Market Research, AI Summarization
Author Incrementors
Published 30 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16024/16024.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does Send daily Google Alerts AI digest with GPT-4.1-mini and Gmail do?

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 t...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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 Market Research, AI Summarization use case.