πŸ“± Create AI newsletters from YouTube with LangChain, Gemini, Apify & Gmail

⚑ 464 views Β· πŸ“± Social Media & Email Marketing

πŸ’‘ Pro Tip β€” YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β€” no quota limits, just structured data.

View All Scrapers

Description

Video β†’ Newsletter AI Agent

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.

How it works (step-by-step)

  1. Trigger β€” On form submission accepts Brand Name, Brand Website, and YouTube video link.
  2. Site scrape & colour study β€” HTTP requests + Information Extractor β†’ AI agent derives brand color theme (primary/secondary/accent/background).
  3. Transcript retrieval β€” Two YouTube transcript scrapers (Apify acts) fetch the video transcript and thumbnail; a small Code node merges transcript chunks.
  4. Summarization & journalism β€” AI Agent2 (LangChain/Gemini) cleans the transcript, extracts thesis + key points, and writes 3 newsletter sections in a journalistic tone.
  5. HTML conversion β€” 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).
  6. Aggregate & merge β€” Merge + Aggregate assemble files, assets, and parsed outputs.
  7. Save & send β€” Save the email draft to Google Sheets (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.
  8. Batching & looping β€” Split In Batches handles large subscriber lists; Loop Over Items triggers the HTML-conversion per recipient batch.

Quick Setup Guide

πŸ‘‰ Demo & Setup Video πŸ‘‰ Sheet Template πŸ‘‰ Course

Nodes of interest

What you’ll need (credentials & resources)

Customization ideas

Tags

n8n newsletter youtube transcript langchain gemini apify gmail google-sheets html-email automation batching ai content-ops

πŸ”— Nodes Used

Google Sheets, HTTP Request, Gmail, AI Agent, Structured Output Parser, n8n Form Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup