Skip to main content

Turn YouTube comments into content ideas with GPT-4.1-mini, Tavily & Apify

Workflow preview

Workflow preview
100%
Turn YouTube comments into content ideas with GPT-4.1-mini, Tavily & Apify preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description This n8n template demonstrates how to turn raw YouTube comments into research backed content ideas complete with hooks and outlines . Use cases include: Quickly mining a competitor’s au...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.splitinbatches, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.filter, @n8n/n8n-nodes-langchain.toolhttprequest, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Muhammad Bello.

Original n8n.io source

1.1 Workflow description

Title
Turn YouTube comments into content ideas with GPT-4.1-mini, Tavily & Apify
Workflow name
Turn YouTube comments into content ideas with GPT-4.1-mini, Tavily & Apify

Description

This n8n template demonstrates how to turn raw YouTube comments into research-backed content ideas complete with hooks and outlines.

Use cases include:

  • Quickly mining a competitor’s audience for video ideas.
  • Generating hooks and outlines for your own channel’s comments.
  • Validating content opportunities with live audience feedback.

Good to know

  • Apify is used to scrape YouTube comments (requires an API token).
  • GPT-4.1-mini is used for both filtering and content generation.
  • Tavily provides fresh research to ground the AI’s responses.
  • All outputs are stored in Google Sheets, making it easy to manage and track ideas.

How it works

  1. Trigger – Paste a YouTube URL into the chat trigger.
  2. Scrape Comments – Apify fetches all comments and metadata.
  3. Filter – GPT-4.1-mini decides if each comment could inspire a content idea.
  4. Store – Comments and “Yes/No” decisions are appended to Google Sheets.
  5. Research & Enrich – For “Yes” comments, Tavily provides context, and GPT generates a topic, hook, and outline.
  6. Update Sheet – The same row in Google Sheets is updated with enriched fields.

Google Sheets Setup

Your Google Sheet should include these columns (in this order):

id | text | author | likes | isIdea | topic | research | hook | outline

  • id – unique identifier for each comment
  • text – the full YouTube comment
  • author – commenter’s name/handle
  • likes – number of likes on the comment
  • isIdea – “Yes” or “No” depending on GPT filter
  • topic – extracted video topic
  • research – 300–500 word background from Tavily
  • hook – engaging opening sentence for a video
  • outline – structured video outline

Setup Steps

  • Connect your Apify, OpenAI, Tavily, and Google Sheets credentials in n8n.
  • Point the Google Sheets nodes to your own document and ensure the above headers exist.
  • Replace sample API keys with your own stored in n8n Credentials.

Time to set up: ~15–25 minutes for a first-time n8n user (less if you already have credentials handy).


Customizing this workflow

  • Filter logic – Loosen the GPT filter to allow borderline ideas, or tighten it to only accept the best ones.
  • Research depth – Change Tavily’s search depth (e.g., depth: basic vs depth: advanced) to control how detailed the background research is.
  • Notification channels – Send new “Yes” ideas directly to Slack (#content-ideas), Notion (your content board), or Email (notify the content manager instantly).
  • Alternative outputs – Instead of hooks/outlines, generate:
    • A script draft for YouTube Shorts.
    • Blog post angles based on the same audience comments.
    • A poll question for community engagement.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 3 - Transforming a researched YouTube video topic into a compelling video concept

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 4 - Extracting content topics from YouTube comments

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 5 - Analyzing YouTube comments

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note14

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note17

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note18

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note19

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note20

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Fetch YouTube Comments (Apify)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - Comment Idea Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 18 - Research Context (Tavily)

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 19 - Store Raw Comments

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 20 - Update Idea with Enriched Data

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

3. Summary Table

Workflow Turn YouTube comments into content ideas with GPT-4.1-mini, Tavily & Apify
Complexity advanced
Nodes 20
Categories Content Creation, Multimodal AI
Author Muhammad Bello
Published 16 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7479/7479.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Turn YouTube comments into content ideas with GPT-4.1-mini, Tavily & Apify do?

Description This n8n template demonstrates how to turn raw YouTube comments into research backed content ideas complete with hooks and outlines . Use cases include: Quickly mining a competitor’s au...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.