Templates / Analyze YouTube niche trends with Apify and OpenAI

Analyze YouTube niche trends with Apify and OpenAI

Ready for 3.0

by Sedge Labs · 1 views · created 2026-11-06 · Market Research, AI Summarization

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 8 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI. It also calls api.apify.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Settings (Edit Fields (Set)): sets 4 fields: niche, topVideos, maxComments…
  2. Search YouTube (HTTP Request): calls api.apify.com (POST)
  3. Pick top videos (Code): runs custom JavaScript code
  4. Get comments (HTTP Request): calls api.apify.com (POST)
  5. Build prompt (Code): runs custom JavaScript code
  6. Summarise with OpenAI (OpenAI): message (text)
  7. Report (Code): runs custom JavaScript code

Services it uses

OpenAI

HTTP calls to: api.apify.com

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 (5)

From the author

Quick overview This workflow runs manually to find this week’s most popular YouTube videos for a niche using Apify, collects top comments from the highest-viewed videos, and uses OpenAI to produce a concise audience insight report with themes, questions,…

Excerpt from Sedge Labs'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.