Validate newsletter quality with GPT-5 quality gate before sending
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 12 nodes and runs when another workflow calls it. Along the way it connects Gmail and OpenAI Chat Model.
How it runs
Trigger: When another workflow calls it.
- Send newsletter to LLM Judge (Gmail): uses Gmail
- Give the email some time to arrive (Wait): pauses before continuing
- Get the newsletter (Gmail): get
- Simplify output before giving to Agent (Edit Fields (Set)): sets 1 field: html
- Judge 👩⚖️ (AI Agent): runs an AI agent, with model: GPT5 as the input to review is heavy; output parser: Expected Format
- Judge happy ? (If): checks a condition and branches into true / false
- Inform human that there are errors (Gmail): uses Gmail
- Send approval to parent workflow (Edit Fields (Set)): sets 1 field: output.status
- Ask Human to review Newsletter (Gmail): send and wait for a reply
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Gmail
n8n-nodes-base.gmail - Wait
n8n-nodes-base.wait - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger
From the author
Newsletter Quality Assurance with LLM Judge This sub-workflow validates newsletter quality before sending to customers. It's triggered by the main newsletter workflow and acts as an automated quality gate to catch data issues, broken layouts, or missing…