See llms.txt for all machine-readable content.

Back to Templates

Send a weekly YouTube competitor brief with Apify, Groq and email

Quick overview

Know what competing YouTube channels published this week without watching it all. Every Monday you get one email built from their new videos' transcripts and top comments, with video ideas for your own channel.

How it works

  1. Every Monday at 8:00 the workflow loads your competitor list, your channel and its settings.
  2. A Data Table (created on the first run) remembers which videos were already analysed, so nothing is covered twice.
  3. Three Apify Actors collect the data without a YouTube API key: YouTube Channel Scraper (each channel's usual views and your own recent titles), YouTube Scraper (new videos with transcripts) and YouTube Comments Scraper (top comments).
  4. Shorts, live streams and analysed videos are dropped. Videos beating their channel's median views go first; up to maxVideosToRead are read per run and the rest wait for the next run.
  5. An AI model reads one video at a time and returns a structured answer. A Code node checks it: a sponsor must be named in the description or transcript, otherwise it is dropped as a guess.
  6. A second AI step suggests video ideas for your channel. Ideas that don't point to a real competitor video are removed.
  7. The HTML brief is emailed (ideas, breakouts, sponsors, viewer questions, a summary per video), then the videos are saved. Videos the AI couldn't read are saved as pending and read again next run.

Setup

  1. Install the verified Apify node (@apify/n8n-nodes-apify) and add an Apify credential. A run costs a few cents; maxSpendPerRunUsd caps it.
  2. Add a Groq credential (the free tier works) to both chat model nodes, or swap in OpenAI, Claude or Gemini.
  3. Add an SMTP credential to both email nodes.
  4. In 'Your channels and settings', replace competitors, myChannel, myChannelAbout, sendTo and sendFrom.
  5. Run it once and check the email, then set your timezone in the workflow settings and publish.

Requirements

  • n8n with Data Tables (tested on n8n 2.48.6 self-hosted), an Apify account, a Groq API key (free tier) and an SMTP account.

Customization

  • Change the schedule, the brief language (briefLanguage), how many ideas you get (ideasCount), what counts as a breakout (breakoutMultiple) or the AI prompts. On a paid AI plan, lower aiPauseSeconds to make runs faster.

Additional info

Who it's for: YouTube creators, their editors and content strategists, and agencies that run channels for clients.

Error handling: if an Apify run fails (wrong token, spending limit) you get a short email saying why and nothing is saved. A handle that doesn't exist, or videos that couldn't be collected, show as a notice at the top of the brief. If the AI fails or hits a rate limit, the brief still goes out with each video's numbers and the videos are retried next week. A quiet week still sends a short brief with the channel table.

Tested with real channels (@mkbhd, @LinusTechTips, @Dave2D): a full run, a second run on the same table, the per-run limit, a wrong Apify token, a wrong AI key and a handle that doesn't exist.