workflows.fit
Back to n8n workflows
n8n templateFreeBy Emir Belkahia

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

CommunicationHITLAILangchainCore NodesSticky NoteGmailWait
Loading interactive preview...

Template notes

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