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

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

Needs changes

by Samir Saci ✓ · 3,846 views · created 2025-04-24 · Social Media, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 16 nodes and runs on a schedule (every day at 08:00). Along the way it connects OpenAI Chat Model, Google Sheets and Gmail. It also calls commission.europa.eu over HTTP.

How it runs

Trigger: On a schedule (every day at 08:00).

  1. Query EU News Website (HTTP Request): calls commission.europa.eu
  2. Get Sustainability News (Google Sheets): uses Google Sheets
  3. Extract Articles Blocks (HTML): parses or builds HTML
  4. Generate Email HTML (Code): runs custom JavaScript code
  5. Split Out: splits a list into separate items
  6. Send to your mailing list (Gmail): uses Gmail
  7. Parse Article Blocks (HTML): parses or builds HTML
  8. If: checks a condition and branches into true / false
  9. Loop Over Articles (Loop Over Items (Split in Batches)): loops over the items in batches
  10. Agent Classification (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser

…plus 3 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle SheetsGmail

HTTP calls to: commission.europa.eu

Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Agent Classification (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Agent Classification (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (14)

From the author

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…

Excerpt from Samir Saci's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.