Skip to main content

Validate newsletter quality with GPT-5 quality gate before sending

Workflow preview

Workflow preview
100%
Validate newsletter quality with GPT-5 quality gate before sending preview
Open on n8n.io

Important notice

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

1. Workflow Overview

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

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.gmail, n8n-nodes-base.wait, n8n-nodes-base.set, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Validate newsletter quality with GPT-5 quality gate before sending
Workflow name
Validate newsletter quality with GPT-5 quality gate before sending

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

Who's it for

E-commerce teams who want to automate newsletter quality checks and prevent broken or incomplete emails from reaching customers. Perfect for ensuring consistent brand quality without manual review.

How it works

  1. Receives newsletter HTML - Triggered by parent workflow with the generated newsletter content
  2. Sends to test inbox - Delivers newsletter to LLM Judge's Gmail inbox to validate actual rendering
  3. Retrieves rendered email - Fetches the email back from Gmail to analyze how it actually renders (catches Gmail-specific issues)
  4. AI-powered validation - GPT-5 analyzes the newsletter against quality criteria:
    • Verifies all 6 product cards have images, prices, and descriptions
    • Checks layout integrity and date range formatting
    • Detects broken images or unprocessed template variables
    • Validates sale prices are lower than original prices
  5. Decision gate - Based on Judge's verdict:
    • PASS: Returns approval to parent workflow → sends to customers
    • BLOCK: Alerts admin via email → requires human review

Set up steps

Setup time: ~5 minutes

  1. Connect your Gmail account for sending test emails
  2. Update the Judge's email address in "Send newsletter to LLM Judge" node
  3. Update the admin alert email in error handling nodes
  4. Connect your OpenAI API credentials (GPT-5 recommended for heavy HTML processing)
  5. (Optional) Adjust quality thresholds in the Judge's system prompt

Requirements

  • Gmail account for test sends and retrieving rendered emails
  • OpenAI API key (GPT-5 recommended)
  • Parent workflow that passes newsletter HTML content

How to customize

  • Adjust validation strictness: Modify the Judge's system prompt to change what triggers BLOCK vs PASS
  • Change product count: Update prompt if your newsletters have different numbers of products
  • Add custom checks: Extend the system prompt with brand-specific validation rules
  • Modify alert recipients: Update email addresses in error handling nodes

💡 Pro tip: The workflow validates the actual Gmail-rendered version to catch image loading issues and ensure consistent customer experience.

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 - Sticky Note2

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

Block 2 - Sticky Note9

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

Block 3 - Sticky Note11

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

Block 4 - Sticky Note12

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

Block 5 - Send newsletter to LLM Judge

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

Block 6 - Get the newsletter

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

Block 7 - Give the email some time to arrive

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 8 - Simplify output before giving to Agent

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

Block 9 - Inform human that there are errors

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

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

Block 12 - Judge happy ?

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

Block 13 - Send approval to parent workflow

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

Block 14 - Judge 👩‍⚖️

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

Block 15 - GPT5 as the input to review is heavy

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

Block 16 - Expected Format

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

Block 17 - Sticky Note3

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

Block 18 - Sticky Note13

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

Block 19 - Sticky Note4

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

Block 20 - Sticky Note5

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

Block 21 - Ask Human to review Newsletter

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

Block 22 - Executed from Newsletter Creation workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

3. Summary Table

Workflow Validate newsletter quality with GPT-5 quality gate before sending
Complexity advanced
Nodes 22
Categories Social Media, AI Summarization
Author Emir Belkahia
Published 11 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10734/10734.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 Validate newsletter quality with GPT-5 quality gate before sending do?

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

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.