Templates / Generate AI YouTube comments and replies from a video URL using GPT-4 and Google Sheets

Generate AI YouTube comments and replies from a video URL using GPT-4 and Google Sheets

Ready for 3.0

by Alena - Prodigy AI Sol ✓ · 88 views · created 2026-04-20 · Social Media, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 18 nodes and runs when someone submits an n8n form (“YouTube Video Comment Generator”). Along the way it connects OpenAI Chat Model and Google Sheets.

How it runs

Trigger: When someone submits an n8n form (“YouTube Video Comment Generator”).

  1. Extract Video ID from URL (Code): runs custom JavaScript code
  2. Get Video Statistics (HTTP Request): calls an HTTP API
  3. Format Video Data (Code): runs custom JavaScript code
  4. Get Video Comments (HTTP Request): calls an HTTP API
  5. Video Comment Generator (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Video Comment Parser
  6. Extract Comments (Edit Fields (Set)): sets 1 field: items
  7. Add VideoId to VideoComments (Edit Fields (Set)): sets 1 field: videoId
  8. Process Each Comment (Code): runs custom JavaScript code
  9. Merge: merges the data from its input branches
  10. Select Top 10 Comments (Code): runs custom JavaScript code

…plus 4 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

From the author

How it works - A form trigger accepts any YouTube URL: youtube.com/watch?v=ID, youtu.be/ID, youtube.com/embed/ID, or just a plain video ID - A code node normalises the URL and extracts a clean video ID for the YouTube Data API v3 - Calls the API to fetch…

Excerpt from Alena - Prodigy AI Sol's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.