🗞️ AI-powered sustainability newsletter for marketing with Gmail, GPT-4o
Needs changesWhat 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).
- Query EU News Website (HTTP Request): calls commission.europa.eu
- Get Sustainability News (Google Sheets): uses Google Sheets
- Extract Articles Blocks (HTML): parses or builds HTML
- Generate Email HTML (Code): runs custom JavaScript code
- Split Out: splits a list into separate items
- Send to your mailing list (Gmail): uses Gmail
- Parse Article Blocks (HTML): parses or builds HTML
- If: checks a condition and branches into true / false
- Loop Over Articles (Loop Over Items (Split in Batches)): loops over the items in batches
- 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
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.0 | Replace 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)
- If
n8n-nodes-base.if - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - HTML
n8n-nodes-base.html - Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
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…