Back to Catalog

Validate newsletter quality with GPT-5 quality gate before sending

Emir BelkahiaEmir Belkahia
59 views
2/3/2026
Official Page

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.

Validate Newsletter Quality with GPT-5 Quality Gate Before Sending

This n8n workflow automates the process of validating newsletter content using an AI agent (GPT-5) to ensure it meets a defined quality standard before it is sent out. It acts as a quality gate, providing a human-in-the-loop (HITL) mechanism for review and approval.

What it does

This workflow streamlines the newsletter quality assurance process through the following steps:

  1. Triggers on Demand: The workflow is designed to be executed by another workflow, suggesting it's part of a larger automation pipeline for content creation or distribution.
  2. AI Agent Quality Check: An AI Agent (likely configured with GPT-5) evaluates the incoming newsletter content based on predefined criteria.
  3. Structured Output Parsing: The AI Agent's output is parsed into a structured format, making it easy to extract key quality metrics or a pass/fail decision.
  4. Conditional Routing (Quality Gate): An If node acts as a quality gate, checking the structured output from the AI.
    • If the newsletter meets the quality standards (e.g., passes the AI check), it proceeds for further processing.
    • If the newsletter does not meet the quality standards, it is flagged for review.
  5. Human-in-the-Loop (HITL) for Review (Conditional): If the newsletter fails the AI quality check, a Gmail node is used to send an email, likely to a human reviewer, informing them of the failed quality check and prompting for manual intervention.
  6. Delay for Review (Conditional): A Wait node introduces a pause, presumably to allow time for the human reviewer to act on the email notification if the quality check fails.
  7. Data Transformation (Optional): An Edit Fields (Set) node is included, which can be used to modify or add fields to the data, such as marking the newsletter as "approved" or "rejected" after review.
  8. Informational Sticky Note: A Sticky Note provides additional context or instructions within the workflow.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance.
  • OpenAI API Key: For the AI Agent and OpenAI Chat Model nodes to interact with GPT-5 (or a similar large language model). This will require an OpenAI account with access to their API.
  • Gmail Account: Configured as a credential in n8n for sending email notifications.

Setup/Usage

  1. Import the Workflow: Import the provided JSON into your n8n instance.
  2. Configure Credentials:
    • Set up your OpenAI API Key credential for the AI Agent and OpenAI Chat Model nodes.
    • Set up your Gmail account credential for the Gmail node.
  3. Customize AI Agent: Configure the AI Agent node with the specific quality criteria and prompts for evaluating your newsletter content. Ensure it's set to use a capable model like GPT-5.
  4. Define Output Parser Schema: Adjust the Structured Output Parser node to match the expected JSON schema from your AI Agent's output.
  5. Set If Node Conditions: Modify the If node to evaluate the parsed output from the AI Agent against your desired quality thresholds (e.g., quality_score > 80, pass_fail == "pass").
  6. Configure Gmail Notifications: Customize the Gmail node to send relevant information (e.g., newsletter content, AI feedback, link to review) to the appropriate recipient(s) when a newsletter fails the quality check.
  7. Adjust Wait Node: If used, set the duration of the Wait node according to your desired review time.
  8. Integrate: Connect this workflow to your newsletter creation or sending workflow using the Execute Workflow Trigger node. Pass the newsletter content as input to this workflow.
  9. Activate: Enable the workflow in n8n.

Related Templates

Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger — Manually start the workflow or schedule it to run periodically. Input Setup — Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) — Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring — Clean and convert GPT output into JSON format. Data Storage (Google Sheets) — Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the “Set Input Fields” node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors → Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection → Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report → Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization → Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs → Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

Ranjan DailataBy Ranjan Dailata
161

Create personalized email outreach with AI, Telegram bot & website scraping

Demo Personalized Email This n8n workflow is built for AI and automation agencies to promote their workflows through an interactive demo that prospects can try themselves. The featured system is a deep personalized email demo. --- 🔄 How It Works Prospect Interaction A prospect starts the demo via Telegram. The Telegram bot (created with BotFather) connects directly to your n8n instance. Demo Guidance The RAG agent and instructor guide the user step-by-step through the demo. Instructions and responses are dynamically generated based on user input. Workflow Execution When the user triggers an action (e.g., testing the email demo), n8n runs the workflow. The workflow collects website data using Crawl4AI or standard HTTP requests. Email Demo The system personalizes and sends a demo email through SparkPost, showing the automation’s capability. Logging and Control Each user interaction is logged in your database using their name and id. The workflow checks limits to prevent misuse or spam. Error Handling If a low-CPU scraping method fails, the workflow automatically escalates to a higher-CPU method. ⚙️ Requirements Before setting up, make sure you have the following: n8n — Automation platform to run the workflow Docker — Required to run Crawl4AI Crawl4AI — For intelligent website crawling Telegram Account — To create your Telegram bot via BotFather SparkPost Account — To send personalized demo emails A database (e.g., PostgreSQL, MySQL, or SQLite) — To store log data such as user name and ID 🚀 Features Telegram interface using the BotFather API Instructor and RAG agent to guide prospects through the demo Flow generation limits per user ID to prevent abuse Low-cost yet powerful web scraping, escalating from low- to high-CPU flows if earlier ones fail --- 💡 Development Ideas Replace the RAG logic with your own query-answering and guidance method Remove the flow limit if you’re confident the demo can’t be misused Swap the personalized email demo with any other workflow you want to showcase --- 🧠 Technical Notes Telegram bot created with BotFather Website crawl process: Extract sub-links via /sitemap.xml, sitemap_index.xml, or standard HTTP requests Fall back to Crawl4AI if normal requests fail Fetch sub-link content via HTTPS or Crawl4AI as backup SparkPost used for sending demo emails --- ⚙️ Setup Instructions Create a Telegram Bot Use BotFather on Telegram to create your bot and get the API token. This token will be used to connect your n8n workflow to Telegram. Create a Log Data Table In your database, create a table to store user logs. The table must include at least the following columns: name — to store the user’s name or Telegram username. id — to store the user’s unique identifier. Install Crawl4AI with Docker Follow the installation guide from the official repository: 👉 https://github.com/unclecode/crawl4ai Crawl4AI will handle website crawling and content extraction in your workflow. --- 📦 Notes This setup is optimized for low cost, easy scalability, and real-time interaction with prospects. You can customize each component — Telegram bot behavior, RAG logic, scraping strategy, and email workflow — to fit your agency’s demo needs. 👉 You can try the live demo here: @emaildemobot ---

Michael A PutraBy Michael A Putra
474

Automate event RSVPs with email validation & badge generation using VerifiEmail & HTMLCssToImage

Validated RSVP Confirmation with Automated Badge Generation Overview: This comprehensive workflow automates the entire event RSVP process from form submission to attendee confirmation, including real-time email validation and personalized digital badge generation. ✨ KEY FEATURES: • Real-time Email Validation - Verify attendee emails using VerifiEmail API to prevent fake registrations • Automated Badge Generation - Create beautiful, personalized event badges with attendee details • Smart Email Routing - Send confirmation emails with badges for valid emails, rejection notices for invalid ones • Comprehensive Logging - Track all RSVPs (both valid and invalid) in Google Sheets for analytics • Dual Path Logic - Handle valid and invalid submissions differently with conditional branching • Anti-Fraud Protection - Detect disposable emails and invalid domains automatically 🔧 WORKFLOW COMPONENTS: Webhook Trigger - Receives RSVP submissions Email Validation - Verifies email authenticity using VerifiEmail API Conditional Logic - Separates valid from invalid submissions Badge Creator - Generates HTML-based personalized event badges Image Converter - Converts HTML badges to shareable PNG images using HTMLCssToImage Email Sender - Delivers confirmation with badge or rejection notice via Gmail Data Logger - Records all attempts in Google Sheets for tracking and analytics 🎯 PERFECT FOR: • Conference organizers managing hundreds of RSVPs • Corporate event planners requiring verified attendee lists • Webinar hosts preventing fake registrations • Workshop coordinators issuing digital badges • Community event managers tracking attendance 💡 BENEFITS: • Reduces manual verification time by 95% • Eliminates fake email registrations • Creates professional branded badges automatically • Provides real-time RSVP tracking and analytics • Improves attendee experience with instant confirmations • Maintains clean, verified contact lists 🛠️ REQUIRED SERVICES: • n8n (cloud or self-hosted) • VerifiEmail API (https://verifi.email) • HTMLCssToImage API (https://htmlcsstoimg.com) • Gmail account (OAuth2) • Google Sheets 📈 USE CASE SCENARIO: When someone submits your event RSVP form, this workflow instantly validates their email, generates a personalized badge with their details, and emails them a confirmation—all within seconds. Invalid emails receive a helpful rejection notice, and every submission is logged for your records. No manual work required! 🎨 BADGE CUSTOMIZATION: The workflow includes a fully customizable HTML badge template featuring: • Gradient background with modern design • Attendee name, designation, and organization • Event name and date • Email address and validation timestamp • Google Fonts (Poppins) for professional typography 📊 ANALYTICS INCLUDED: Track metrics like: • Total RSVPs received • Valid vs invalid email ratio • Event-wise registration breakdown • Temporal patterns • Organization/company distribution ⚡ PERFORMANCE: • Processing time: ~3-5 seconds per RSVP • Scales to handle 100+ concurrent submissions • Email delivery within 10 seconds • Real-time Google Sheets updates 🔄 EASY SETUP: Import the workflow JSON Configure your credentials (detailed instructions included) Create your form with required fields (name, email, event, designation, organization) Connect the webhook Activate and start receiving validated RSVPs! 🎓 LEARNING VALUE: This workflow demonstrates: • Webhook integration patterns • API authentication methods • Conditional workflow branching • HTML-to-image conversion • Email automation best practices • Data logging strategies • Error handling techniques ---

Jitesh DugarBy Jitesh Dugar
67