🎬 Generate unique product description pools with OpenAI and a Spintax node

⚡ 2 views · 🎬 Content Creation & Video

Description

Quick overview

Workflow canvas

Self-hosted n8n only — this template uses a community node. OpenAI writes one spintax template from your brief; the Spintax node turns it into a pool of unique, linted product description variants, validated and repaired once before rendering.

How it works

  1. Starts when you manually execute the workflow.
  2. Defines the writing brief and fixed product variables (product, brand, audience, feature).
  3. Builds an authoring prompt and sends it to OpenAI to generate a spintax template.
  4. Validates the returned spintax and, if it is invalid, generates a repair prompt, asks OpenAI for a corrected version once, and re-validates.
  5. Renders 12 description variants from the cleaned spintax template using a fixed seed and the provided variables.
  6. Lints each rendered variant to catch issues that only appear after rendering (for example repeated words or punctuation/spacing defects).
  7. Drops near-duplicate variants by similarity scoring and outputs the remaining pool as ready to publish.

Setup

  1. Add OpenAI credentials on “Chat model for authoring and repair” (or replace it with another compatible LLM) — that single node feeds both LLM chain steps.
  2. Edit the brief and the product variables in the “Your brief and product” step to match your item and style constraints.
  3. Adjust rendering and quality thresholds as needed (variant count, seed, lint window/ignore list, and the Jaccard dedup threshold) before activating the workflow.

Requirements

Customization

Additional info

Why two checks and not one. Validate judges the template; it cannot judge the render. A flawless template still turns out the odd broken line, because that defect lives in the combination of choices rather than in the source — two neighbouring slots picking the same word, an unlucky join leaving a space before a comma. Lint reads each rendered document. Uniqueness reads the whole surviving pool and reports the share of five-word windows that repeat across it: measured on real pools of equal size, one template scores about 0.96 and six templates about 0.02, and asking for more variants of the same template cannot move that number — only new templates, or denser variation inside the one you have.

đź”— Nodes Used

Basic LLM Chain, OpenAI Chat Model

📥 Import

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

📖 Importing guide · 🔑 Credential setup