🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

YouTube to Google Sheets, comment ideas ready to use

Lisa Granqvist Partner Workflow Automation Expert

You know the feeling: you find a goldmine of YouTube comments, then lose an hour copying them into a doc, trying to spot patterns, and still walking away with “maybe” ideas.

This YouTube comment automation hits creators and content marketers first. But strategy leads and small agency teams feel it too, because the backlog is always hungry and your time is not.

This workflow pulls comments from any YouTube video, filters the ones worth turning into content, then writes research-backed topics, hooks, and outlines directly into Google Sheets. You’ll learn what it does, why it’s useful, and how to set it up without getting buried in tech details.

How This Automation Works

Here’s the complete workflow you’ll be setting up:

n8n Workflow Template: YouTube to Google Sheets, comment ideas ready to use

Why This Matters: Turning comment chaos into repeatable content

YouTube comments are basically free audience research. People tell you what confused them, what they disagree with, what they tried, what failed, and what they want next. The problem is the workflow around it is messy. You open a video, scroll forever, copy chunks into notes, and later you can’t remember which comment came from where. Then you try to “summarize the vibe” in your head, which is how good ideas quietly slip through the cracks.

It adds up fast. Here’s where it breaks down.

  • Copy-pasting comments into a doc takes long enough that you do it once, then avoid it for weeks.
  • You end up chasing the loudest comments, not the most useful ones, because there’s no consistent way to filter ideas.
  • Without a spreadsheet log, you can’t track which topics you’ve used, which hooks worked, or which video the insight came from.
  • “AI ideas” can feel flimsy if they aren’t grounded in real comments and fresh research, so you spend extra time rewriting anyway.

What You’ll Build: YouTube comments to research-backed video ideas

You’ll set up an n8n workflow that starts with a simple input: a YouTube URL pasted into a chat-style trigger inside n8n. From there, Apify scrapes the video’s comments and basic metadata through an HTTP request, so you’re not manually hunting and copying anything. Each comment gets assessed by GPT‑4.1‑mini, which decides if it can inspire a real content idea (a clean “Yes/No,” not a vague maybe). Every comment is logged to Google Sheets first, so you keep a complete source-of-truth dataset. Then the “Yes” comments get enriched: Tavily pulls fresh context from the web, and GPT generates a topic, a strong hook, and a simple outline. Finally, the workflow updates the exact same row in your sheet with the new fields, keeping everything organized and searchable.

The flow starts with one link. It scrapes comments, filters them, and saves them. Then it adds research plus ready-to-use writing (topic, hook, outline) back into the same spreadsheet row so your backlog stays tidy.

What You’re Building

Expected Results

Say you review comments from 3 competitor videos each week. Manually, you might spend about 40 minutes per video collecting comments, then another hour trying to turn the best ones into usable angles, so call it roughly 3 to 4 hours weekly. With this workflow, you paste each URL (a minute), let Apify pull the comments, and let GPT + Tavily generate topics, hooks, and outlines while you do other work. In practice, most teams get the same “idea backlog” in about 30 minutes of hands-on time.

Before You Start

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Apify to scrape YouTube comments at scale.
  • Google Sheets to store, sort, and track ideas.
  • OpenAI API key (get it from the OpenAI API dashboard).
  • Tavily API key (get it from your Tavily account settings).

Skill level: Beginner. You’ll connect accounts, paste a few IDs/keys, and point the Google Sheets nodes to the right spreadsheet.

Want someone to build this for you? Talk to an automation expert (free 15-minute consultation).

Step by Step

Paste a YouTube link to trigger the run. The workflow starts from a chat intake trigger in n8n, where you drop in a YouTube URL you want to mine for ideas.

Pull the comments automatically. An HTTP request calls Apify to retrieve comments plus useful metadata (like author and likes), so you’re working with structured data rather than a messy scroll.

Decide what’s worth keeping. GPT‑4.1‑mini reads each comment and labels it as a potential idea or not. The workflow logs everything to Google Sheets, so you can audit the decisions later (honestly, this is underrated).

Enrich the “Yes” comments with real context. For comments marked “Yes,” Tavily pulls current web research, and GPT turns that into a clear topic, a hook you can open with, and a simple outline. Then the workflow updates the same Google Sheets row with those new fields.

You can easily modify the filter strictness to capture more (or fewer) ideas based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Chat Trigger

Set up the workflow entry point so a chat message provides the YouTube URL used to fetch comments.

  1. Add Chat Intake Trigger as the trigger node (chatTrigger).
  2. Leave the default Options as configured unless you need a custom chat setup.
  3. Confirm the trigger outputs {{$json.chatInput}} which will be used downstream.

Step 2: Connect the Comment Source

Retrieve comments using the Apify endpoint and pass the chat input URL as the target.

  1. Add Retrieve Video Comments after Chat Intake Trigger.
  2. Set Method to POST and URL to https://api.apify.com/v2/acts/mExYO4A2k9976zMfA/run-sync-get-dataset-items.
  3. Enable Send Body, Send Headers, and set Specify Body to json.
  4. Set JSON Body to ={ "customMapFunction": "(object) => { return {...object} }", "maxItems": 100, "sort": "top", "startUrls": [ "{{ $json.chatInput }}" ] }.
  5. In Header Parameters, set Accept to application/json and Authorization to Bearer [CONFIGURE_YOUR_TOKEN].

⚠️ Common Pitfall: Replace [CONFIGURE_YOUR_TOKEN] with your Apify API token, or the request will fail.

Step 3: Set Up Comment Relevance Scoring

Use AI to determine whether each comment is a viable content idea, then filter out non-viable results.

  1. Add Assess Comment Relevance after Retrieve Video Comments.
  2. Credential Required: Connect your openAiApi credentials.
  3. Confirm JSON Output is enabled and the message uses {{ $json.text }} for comment content.
  4. Add Filter Viable Ideas after Assess Comment Relevance.
  5. Set the filter condition Left Value to {{ $json.choices[0].message.content.output }} and Right Value to Yes.

Step 4: Connect Google Sheets

Log filtered comments to a sheet and prepare records for enrichment.

  1. Add Log Raw Comments after Filter Viable Ideas.
  2. Credential Required: Connect your googleSheetsOAuth2Api credentials.
  3. Set Operation to appendOrUpdate.
  4. Set Document ID and Sheet Name to your target spreadsheet and tab (replace [YOUR_ID] placeholders).
  5. Map columns using the expressions, for example id to {{ $('Retrieve Video Comments').item.json.id }} and contentIdea to {{ $json.choices[0].message.content.output }}.
  6. Add Iterate Comment Records after Log Raw Comments to process each row in batches.

Step 5: Configure AI Research and Outline Creation

Generate topics, run web research, and craft a hook and outline for each viable comment.

  1. Add Derive Topics & Research after Iterate Comment Records.
  2. Credential Required: Connect your openAiApi credentials.
  3. Ensure the message references the comment with {{ $json.text }}.
  4. Connect Web Research Tool to Derive Topics & Research as an AI tool and set its URL to https://api.tavily.com/search.
  5. Set the JSON Body to { "query": "{searchTerm}", "topic": "general", "search_depth": "advanced", "chunks_per_source": 3, "max_results": 1, "time_range": null, "days": 7, "include_answer": true, "include_raw_content": false, "include_images": false, "include_image_descriptions": false, "include_domains": [], "exclude_domains": [] }.
  6. Because Web Research Tool is an AI tool node, add its credentials to Derive Topics & Research (the parent). Set the tool headers to include Authorization: Bearer [CONFIGURE_YOUR_TOKEN] and Content-Type: application/json.
  7. Add Craft Hook & Outline after Derive Topics & Research and ensure it reads {{ $json.choices[0].message.content.topic }} and {{ $json.choices[0].message.content.research_overview }}.
  8. Credential Required: Connect your openAiApi credentials for Craft Hook & Outline.

⚠️ Common Pitfall: Don’t add API credentials directly on Web Research Tool; attach them to the parent Derive Topics & Research node.

Step 6: Configure the Enriched Output Sheet

Write the topic, research, hook, and outline back to the spreadsheet row that matches the original comment.

  1. Add Update Enriched Sheet after Craft Hook & Outline.
  2. Credential Required: Connect your googleSheetsOAuth2Api credentials.
  3. Set Operation to update.
  4. Set Document ID and Sheet Name to match the same spreadsheet used in Log Raw Comments.
  5. Map columns using expressions such as id to {{ $('Iterate Comment Records').item.json.id }}, hook to {{ $json.choices[0].message.content.hook }}, and topic to {{ $('Derive Topics & Research').item.json.choices[0].message.content.topic }}.

Step 7: Test and Activate Your Workflow

Run an end-to-end test to verify comment ingestion, filtering, and enrichment before going live.

  1. Click Execute Workflow and send a chat input containing a YouTube video URL.
  2. Verify that Retrieve Video Comments returns comment items and Filter Viable Ideas passes only Yes results.
  3. Confirm that Log Raw Comments writes rows and Update Enriched Sheet fills topic, research, hook, and outline.
  4. When satisfied, toggle the workflow to Active for production use.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Troubleshooting Tips

  • Apify tokens can fail if the actor permissions changed or the token was rotated. If scraping suddenly stops, check your Apify token in n8n Credentials first, then confirm the actor run succeeds in Apify.
  • If you’re using Wait-style timing (or Apify runs take longer than usual), processing times vary. Bump up any wait duration and rerun if downstream steps act like they received empty comment data.
  • Google Sheets updates often break when headers don’t match. Make sure your sheet columns are in this exact order: id, text, author, likes, isIdea, topic, research, hook, outline.

Quick Answers

What’s the setup time for this YouTube comment automation?

About 15–25 minutes if you already have your API keys ready.

Is coding required for this YouTube comment automation?

No. You’ll connect Apify, OpenAI, Tavily, and Google Sheets, then paste in your sheet ID and credentials.

Is n8n free to use for this YouTube comment automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI, Tavily, and Apify usage costs, which depend on how many comments you process.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I modify this YouTube comment automation workflow for different use cases?

Yes, and you should. You can tighten or loosen the GPT filter in the “Assess Comment Relevance” step, and you can change the enrichment output by adjusting the “Craft Hook & Outline” prompt to generate Shorts scripts, blog angles, or poll questions instead. If you want deeper context, switch Tavily’s search depth in the “Web Research Tool” step. You can also swap the notification/output by adding Slack or email once a comment is marked “Yes.”

Why is my Google Sheets connection failing in this workflow?

Usually it’s permissions or a mismatched spreadsheet setup. Make sure the Google account you connected has edit access to the target sheet, then confirm the worksheet/tab name matches what the node expects. If only the update step fails, it’s often because the workflow can’t find the row to update (wrong ID mapping) or your headers are out of order.

What volume can this YouTube comment automation workflow process?

Plenty for most teams. The practical limit is usually API cost and how many comments Apify returns, not n8n itself. On n8n Cloud, higher plans handle higher monthly executions, and on self-hosting there’s no hard execution limit (your server resources become the constraint). If you’re processing thousands of comments at once, use batching and keep an eye on OpenAI/Tavily rate limits.

Is this YouTube comment automation better than using Zapier or Make?

Often, yes. This workflow uses looping/batching, row updates in Google Sheets, and multiple AI steps, which is where Zapier and Make can get expensive or awkward. n8n also gives you more control over what gets logged first (raw comments) versus what gets enriched later, which matters when you want traceability. If you self-host, you can run as many executions as your server can handle, which changes the economics for high-volume scraping. Zapier or Make can still be fine for a simple “new row → send message” type of flow. Talk to an automation expert if you want a quick recommendation.

Once this is running, your comment research stops being a “someday” task and turns into a system. The workflow handles the repetitive parts so you can focus on choosing the best ideas and making them yours.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal