Content & Social Media · n8n

Daily YouTube Comment Sentiment Digest to Slack with AI

An n8n workflow that pulls the latest comments on your newest YouTube videos, has Claude score sentiment and surface the most useful feedback, and posts a tidy morning digest to Slack — so your team spots praise, complaints and content ideas without scrolling the comment section.

difficulty Intermediatesetup 45 minresult One Slack digest each morning: overall mood, top praise, top complaints, and 3 content ideas from your audience
  1. 1

    Schedule the daily run

    Add a Schedule Trigger set to Days at hour 8. Running once each morning keeps you well inside the free YouTube API quota and lands the digest before the team starts work.

  2. 2

    Fetch your latest videos

    An HTTP Request to https://www.googleapis.com/youtube/v3/search with channelId, order=date, part=id and your API key returns your most recent uploads. Keep the last 3–5 video IDs — that's where fresh comments live.

  3. 3

    Pull recent comments

    For each video ID, an HTTP Request to commentThreads with part=snippet and maxResults=100 returns the newest comment threads. A Filter node keeps only comments published in the last 24 hours so the digest is always fresh.

  4. 4

    Analyze with Claude

    Send the comment texts to Claude in one call. Ask for strict JSON: an overall mood label, a 0–100 positivity_score, the top 3 praise quotes, top 3 complaints, and 3 content_ideas your audience is implicitly asking for. Batching all comments into one request keeps cost to a fraction of a cent.

  5. 5

    Post the digest to Slack

    A Slack node posts a formatted message: a mood emoji and score header, then three short sections. Use Slack Block Kit for clean spacing. Add a link back to each video so anyone can jump in and reply.

Frequently asked questions

Do I need the official YouTube Data API for comments?

Yes — comment threads aren't in the RSS feed. Create a free Google Cloud project, enable the YouTube Data API v3, and generate an API key. The free daily quota (10,000 units) is far more than a daily comment pull needs, so most creators never pay anything.

How does it avoid re-reading the same comments every day?

The workflow filters comments by publish time, keeping only those newer than 24 hours before it runs. If you run it less often, widen the window in the filter node. You can also store the last-seen comment ID in a Google Sheet or n8n static data for exact de-duplication.

Can it flag toxic or spam comments for moderation?

Absolutely. The Claude prompt already tags each comment; add a category like 'needs_moderation' and route those to a separate Slack channel with an `IF` node. Some teams pair this with the YouTube API's moderation endpoint to auto-hold flagged comments for review.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.