Skip to main content

🗞️ AI-powered sustainability newsletter for marketing with Gmail, GPT-4o

Workflow preview

Workflow preview
100%
🗞️ AI-powered sustainability newsletter for marketing with Gmail, GPT-4o preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Tags: Sustainability, Web Scraping, OpenAI, Google Sheets, Newsletter, Marketing Context Hey! I’m Samir, a Supply Chain Engineer and Data Scientist from Paris, and the foun...

Best for

  • Social Media automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.googlesheets, n8n-nodes-base.gmail, n8n-nodes-base.code, n8n-nodes-base.html, n8n-nodes-base.scheduletrigger

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
🗞️ AI-powered sustainability newsletter for marketing with Gmail, GPT-4o
Workflow name
🗞️ AI-powered sustainability newsletter for marketing with Gmail, GPT-4o

Tags: Sustainability, Web Scraping, OpenAI, Google Sheets, Newsletter, Marketing

Context

Hey! I’m Samir, a Supply Chain Engineer and Data Scientist from Paris, and the founder of LogiGreen Consulting.

We use AI, automation, and data to support sustainable business practices for small, medium and large companies.

I use this workflow to bring awareness about sustainability and promote my business by delivering automated daily news digests.

> Promote your business with a fully automated newsletter powered by AI!

This n8n workflow scrapes articles from the official EU news website and sends a daily curated digest, highlighting only the most relevant sustainability news.

📬 For business inquiries, feel free to connect with me on LinkedIn

Who is this template for?

This workflow is useful for:

  • Business owners who want to promote their service or products with a fully automated newsletter
  • Sustainability professionals staying informed on EU climate news
  • Consultants and analysts working on CSRD, Green Deal, or ESG initiatives
  • Corporate communications teams tracking relevant EU activity
  • Media curators building newsletters

What does it do?

This n8n workflow:

  1. ⏰ Triggers automatically every morning
  2. 🌍 Scrapes articles from the EU Commission News Portal
  3. 🧠 Uses OpenAI GPT-4o to classify each article for sustainability relevance
  4. 📄 Stores the results in a Google Sheet for tracking
  5. 🧾 Generates a beautiful HTML digest email, including titles, summaries, and images
  6. 📬 Sends the digest via Gmail to your mailing list

How it works

  1. Trigger at 08:30 every morning
  2. Scrape and extract article blocks from the EU news site
  3. Use OpenAI to decide if articles are sustainability-related
  4. Store relevant entries in Google Sheets
  5. Generate HTML email with a professional layout and logo
  6. Send the digest via Gmail to a configured recipient list

What do I need to get started?

You’ll need:

  • A Google Sheet connected to your n8n instance
  • An OpenAI account with GPT-4 or GPT-4o access
  • A Gmail OAuth credential setup

Follow the Guide!

Follow the sticky notes inside the workflow or check out my step-by-step tutorial on how to configure and deploy it.

🎥 Watch My Tutorial

Notes

  • You can customise the system prompt to adjust how AI classifies “sustainability”
  • Works well for tracking updates relevant to climate action, green transition, and circular economy

This workflow was built using n8n version 1.85.4
Submitted: April 24, 2025

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 - If

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

Block 2 - OpenAI Chat Model3

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

Block 3 - Agent Classification

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

Block 4 - Get Sustainability News

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 5 - Send to your mailing list

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

Block 6 - Generate Email HTML

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

Block 7 - Parse Article Blocks

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

Block 8 - Extract Articles Blocks

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

Block 9 - Trigger at 08:30 am

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

Block 10 - Query EU News Website

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

Block 11 - Split Out by Article Block

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

Block 12 - Loop Over Articles

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 13 - Sustainability Flag

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Merge Article + Flag

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 15 - Record Results

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 16 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 17 - Sticky Note1

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

Block 18 - Sticky Note

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

Block 19 - Sticky Note2

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

Block 20 - Sticky Note3

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

Block 21 - Sticky Note4

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

3. Summary Table

Workflow 🗞️ AI-powered sustainability newsletter for marketing with Gmail, GPT-4o
Complexity advanced
Nodes 21
Categories Social Media, AI Summarization
Author Samir Saci
Published 24 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3684/3684.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 🗞️ AI-powered sustainability newsletter for marketing with Gmail, GPT-4o do?

Tags: Sustainability, Web Scraping, OpenAI, Google Sheets, Newsletter, Marketing Context Hey! I’m Samir, a Supply Chain Engineer and Data Scientist from Paris, and the foun...

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 Social Media, AI Summarization use case.