Back to Templates
This n8n workflow converts a YouTube video into a polished, email-ready newsletter. It scrapes the transcript, extracts a thumbnail/logo and brand color theme, uses multiple AI agents to (1) clean & summarize the transcript into three newsletter sections, (2) convert that content into a styled HTML newsletter (color-aware), then saves the draft to Google Sheets and sends the email to subscribers via Gmail. The flow is optimized for batch sending and brand-consistent HTML output.
On form submission accepts Brand Name, Brand Website, and YouTube video link.Information Extractor → AI agent derives brand color theme (primary/secondary/accent/background).Code node merges transcript chunks.AI Agent2 (LangChain/Gemini) cleans the transcript, extracts thesis + key points, and writes 3 newsletter sections in a journalistic tone.Convert Newsletter to HTML (AI) agent applies the fixed layout and injects only text color variables (keeps layout intact) and outputs Subject + HTML body (≤1000 words).Merge + Aggregate assemble files, assets, and parsed outputs.Save Newsletter Draft in Google Sheet) and loop through subscribers from a subscribers sheet; Sending Emails to all the Subscribers (Gmail node) sends the HTML to each address in batches.Split In Batches handles large subscriber lists; Loop Over Items triggers the HTML-conversion per recipient batch.👉 Demo & Setup Video
👉 Sheet Template
👉 Course
On form submission (formTrigger) — entry point for video + brand inputs.You Tube Transcript Scraper, You Tube Transcript Scraper1 (HTTP Request → Apify) — transcript + thumbnail fetching.Information Extractor & AI Agent1 — website color/theme extraction.Code in JavaScript — merges transcript pieces into a single text payload.AI Agent2 (LangChain agent + Gemini Chat Model) — transcript → journalist-style newsletter sections.Convert Newsletter to HTML (AI) (LangChain agent + Structured Output Parser) — builds constrained, brand-aware HTML email and subject.Structured Output Parser1/2 — enforce schemas for color theme / structured outputs.Get row(s) in sheet & Save Newsletter Draft in Google Sheet (Google Sheets) — subscriber list + draft storage.Loop Over Items / Split In Batches — batch processing for sends.Sending Emails to all the Subscribers (Gmail) — SMTP/OAuth send.OpenRouter Chat Model — LM compute provider configured in the workflow.Split In Batches to a conservative batch size (e.g., 50–200) and add delays between batches to avoid provider rate limits and Gmail throttling.max_output_tokens (or equivalent) to avoid runaway costs; enforce the 1000-word HTML hard limit in the prompt.Structured Output Parser nodes with strict JSON schemas to prevent malformed outputs.n8n newsletter youtube transcript langchain gemini apify gmail google-sheets html-email automation batching ai content-ops