📱 Validate newsletter quality with GPT-5 quality gate before sending

⚡ 88 views · 📱 Social Media & Email Marketing

Description

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

How to customize

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

đź”— Nodes Used

Gmail, Execute Workflow Trigger, AI Agent, OpenAI Chat Model, Structured Output Parser

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup