Mindket

Auto-reply to YouTube comments by type, logged in Supabase

Newversion 1 · updated

Overview

An n8n workflow that answers the newest comments on a YouTube video you paste in n8n’s chat. OpenAI sorts each new comment into praise, a question or criticism, thanks the praise and answers questions from the video’s transcript. Supabase logs every comment and reply.

Auto-reply to YouTube comments by type, logged in Supabase is an n8n workflow in the Marketing & SEO category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

At a glance

Runs in
  • n8n Cloud or your own server: the same file and steps
  • n8n’s chat: where you paste each video link
  • Your YouTube channel: replies appear under the comments, posted by the account the YouTube credential signs in with
  • Supabase: the table holds every comment seen and, where one was posted, its reply

Platform

Connects 3 apps

How it works

Trigger

Chat message

It starts when you paste a link in n8n’s chat:

  • The address of one of your YouTube videos

Actions

  1. Reads the five newest top-level comments, and fetches the transcript from a service you name
  2. Skips comments already in Supabase and saves each new one
  3. OpenAI labels it criticize, compliment or specificdoubt
  4. Thanks praise, answers a question from the transcript and leaves criticism alone
  5. Posts the reply on YouTube and writes it to the comment’s row

Result

Replies under your video’s newest comments, each one logged in Supabase

Integrations

What you need before you start.

YouTube

Comments

Reads the newest comments on the video and posts each reply as your channel.

NeedsYouTube OAuth2 credential for your channel

OpenAI

Labels and replies

Runs chatgpt-4o-latest to label each comment and to write the thank-you or the answer.

NeedsOpenAI API key

Supabase

Comment log

Keeps each comment’s ID, text and reply in the YT_Comment table, so no comment is handled twice.

NeedsProject URL and service role key, and the YT_Comment table

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
22 steps, starting on a chat message
AI
3 steps call an AI model: Specific Doubt Reply, Comment Classifier and Compliment Reply
Sign-ins
Signs in to: YouTube, Supabase and OpenAI
API keys
No API key is left in the file
Step types
Mindket’s checker reads all 12 of its step types

Read from the workflow’s file, not from a run.

About

What it is

This n8n workflow replies to the newest comments on one of your YouTube videos. You paste the video’s link in n8n’s chat. It reads the five latest top-level comments and, in a second branch, fetches the video’s transcript from a service you name. Each comment is looked up in a Supabase table and skipped if it is there, while a new one is saved and then labelled by OpenAI as criticize, compliment or specificdoubt. Praise gets a thank-you. A question gets an answer drawn from the transcript, and criticism gets no reply. Every reply is posted under its comment and written back to that comment’s row.

  1. You paste a YouTube link in n8n’s chat
  2. YouTube returns five comments, your service the transcript
  3. Supabase skips handled comments and saves new ones
  4. OpenAI labels each one and writes a thank-you or an answer
  5. The reply goes up on YouTube and into Supabase

Who it suits

Creators who get more questions under their videos than they can answer, and who accept replies that a model writes and posts under their channel’s name. Skip it if a person must read each reply before it goes up. Nothing in the file waits for approval.

Who uses it, and how
IndustryWho uses itHow they use itExample
Tutorial channelsCreators who teach softwareRun it a few hours after posting so questions get answers from the transcriptA viewer asks which setting a step used, and the reply points to the step in the video.
Product channelsCompanies that publish how-to videosKeep answers tied to what the video showsA software company answers setup questions under its feature videos.
Small channelsSolo creatorsThank every kind comment without typing each replyA new upload gets a thank-you under each compliment.
AgenciesCommunity managers for client channelsRun one copy per client, each with its own Supabase projectAn agency keeps a log of every reply it posted on a client’s channel.

Where to use it

Any n8n signed in to the channel that owns the videos. Replies go out as that channel.

  • n8n Cloud or your own server: the same file and steps
  • n8n’s chat: where you paste each video link
  • Your YouTube channel: replies appear under the comments, posted by the account the YouTube credential signs in with
  • Supabase: the table holds every comment seen and, where one was posted, its reply

Setup

Get it saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Its author puts setup at about 13 minutes. The transcript call had no address in the original copy, so this one holds https://YOUR_TRANSCRIPT_SERVICE_ADDRESS until you name a service.

What you need first
NeedDetail
n8nOn n8n Cloud or on a server of your own
YouTubeA YouTube OAuth2 credential for the channel that will reply, with the YouTube Data API v3 on in its Google Cloud project
OpenAIAn API key, used by three model nodes
SupabaseA project with a table named YT_Comment and three text columns: id_comment, comment and reply
A transcript serviceAn address that accepts the POST body of Get YouTube Transcript and answers with a transcript field
  1. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  2. Add a YouTube OAuth2 credential and select it in Get Video Snippet, Comment Response and Comment Response1.
  3. Add an OpenAI credential and select it in gpt-4o-mini, gpt-4o-mini1 and gpt-4o-mini2.
  4. Create the YT_Comment table in Supabase, add a Supabase credential with your project URL and service role key, and select it in the three Supabase nodes.
  5. In Get YouTube Transcript, replace https://YOUR_TRANSCRIPT_SERVICE_ADDRESS with your service’s address, and change the body if your service expects another shape.
  6. Save, open the chat, paste the link of a video of yours with a few comments, and read the replies on YouTube before you rely on it.

The transcript call sends this body, with the video’s ID filled in. Cleanup transcript then reads transcript from the answer.

{
  "startUrls": ["https://www.youtube.com/watch?v=<video ID>"],
  "language": "Default",
  "includeTimestamps": "No"
}

How to use it

Paste the link of one of your videos, a youtube.com/watch?v= address or a short youtu.be one. Each run handles the five newest top-level comments. A comment already in the table is skipped, so a later run picks up only what is new among the latest five.

What to change for a different result
To changeWhere
How many commentsmaxResults in Get Video Snippet, 5 in the file
The labelsThe prompt in Comment Classifier and the three rules in Switch
The tone of repliesThe prompts in Compliment Reply and Specific Doubt Reply
What your channel coversComment Classifier says the channel is about artificial intelligence, so change that line
Filler cut from the transcriptThe patterns in Cleanup transcript

Example

A viewer writes under a tutorial: “Which plan do I need for the API step?” The comment is new to the table. It is saved and sent to the classifier, which answers:

{ "out": "specificdoubt" }

Specific Doubt Reply reads the comment with the cleaned transcript and writes an answer from what the video says. Comment Response1 posts it under the comment, and Update responce to Database writes it to the row’s reply column.

For newcomers and experts

If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This one has 26 nodes, among them a loop that takes one comment at a time. Supabase is a hosted database, used here as the list of comments already seen. A credential is a key n8n keeps for you. The YouTube one signs in as your channel, which is why the replies carry its name. Try it first on a video with only a few comments.

For experts. The classifier and both reply chains run chatgpt-4o-latest, though their model nodes are named gpt-4o-mini. A structured parser holds the classifier to {"out": "..."}.

How one comment moves
StepNodesWhat happens
Seen before?Get Database Value, then IfLooks up the comment’s ID in YT_Comment. A match goes to a no-op and back to the loop
SavedUpdate comment to DatabaseInserts the ID and the text before anything else
LabelledComment Classifier, then Switchcriticize goes to a no-op. The other two get replies
AnsweredCompliment Reply, or Merge then Specific Doubt ReplyThe question chain gets the cleaned transcript through Merge
Posted and loggedComment Response or Comment Response1, then Update responce to DatabasePosts to the comments endpoint with the comment as parent, then stores the reply’s text

Cleanup transcript decodes HTML entities, drops filler words such as So, Now and Okay, and strips patterns for one channel’s usual greeting, sign-off and subscribe line.

Good to know

Replies go out under your channel’s name, and no one checks them first.

  • No approval step: a wrong answer is posted as written, so read the first runs’ replies on YouTube
  • Saved first: a comment is written to the table before it is labelled, so if its reply fails it is never tried again
  • Criticism: those comments stay in the table with no reply
  • The newest five: older comments outside that window are never read
  • Other labels: Switch has no fallback, so a label outside the three leaves that comment unanswered and ends the loop there
  • Several questions: the transcript joins the question chain through one Merge, so on your first run check that a second question also gets its answer
  • Billing: up to two OpenAI calls per new comment, plus whatever your transcript service charges
  • Privacy: comments and the transcript go to OpenAI, and comments and replies to your Supabase project
  • The original copy: its Get Video ID and Cleanup transcript code had lost their backslashes, which stopped the first from compiling and made the second turn every letter s into a space. This one has them back
  • Credentials: the JSON holds none, and nothing from its author’s accounts

README and files

README

Auto-reply to YouTube comments by type, logged in Supabase

An n8n workflow. Paste the link of one of your YouTube videos in n8n's chat. It reads the five newest comments, has
OpenAI label each new one, thanks praise, answers questions from the video's transcript and posts the replies as your
channel. A Supabase table keeps every comment and reply, so none is handled twice.

What is inside

  • workflow.json: the workflow as n8n exports it, 26 nodes. It holds no credential.
  • Changes to the original copy. Its Get Video ID code and its Cleanup transcript code had lost their backslashes:
    the first could not compile, and the second's whitespace step turned every letter s into a space. This copy has
    them back. The transcript call had no address at all, so it now holds https://YOUR_TRANSCRIPT_SERVICE_ADDRESS.
  • README.md: these notes.

Before you start

  • An n8n instance, on n8n Cloud or your own server.
  • A Google Cloud project with the YouTube Data API v3 turned on, and an OAuth client for n8n's YouTube credential. Sign
    in with the channel that should post the replies.
  • An OpenAI API key.
  • A Supabase project with a table named YT_Comment and three text columns: id_comment, comment and reply.
  • A transcript service (below).

Set it up

  1. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  2. Add a YouTube OAuth2 credential and select it in Get Video Snippet, Comment Response and Comment Response1.
  3. Add an OpenAI credential and select it in gpt-4o-mini, gpt-4o-mini1 and gpt-4o-mini2.
  4. Add a Supabase credential with your project URL and service role key. Select it in Get Database Value,
    Update comment to Database and Update responce to Database.
  5. Set the transcript service's address in Get YouTube Transcript.
  6. Save. Open the chat from the canvas, paste the link of a video of yours with a few comments, then read the replies
    on YouTube before you use it on a busy video.

The transcript service

The original copy left this node's address empty. Yours receives this POST body, with the video's ID filled in:

{
  "startUrls": ["https://www.youtube.com/watch?v=<video ID>"],
  "language": "Default",
  "includeTimestamps": "No"
}

Cleanup transcript reads the field transcript from the answer, so the service must return the text under that name.
Change the body in the node if your service expects another shape. Until the address is set, the run stops at this
node.

Change the look

  • Number of comments: maxResults in Get Video Snippet (5).
  • Labels: the prompt in Comment Classifier, which describes a channel about artificial intelligence, and the three
    rules in Switch (criticize, compliment, specificdoubt).
  • Tone: the prompts in Compliment Reply and Specific Doubt Reply.
  • Model: all three model nodes run chatgpt-4o-latest, whatever their names say. Pick a current model there if OpenAI
    has retired that one.

Good to know

  • Nothing waits for approval: every reply is posted as the model wrote it.
  • A comment is saved before it is labelled. If its reply fails, the next run skips it.
  • Criticism gets no reply, and only the five newest comments are read on each run.
  • Switch has no fallback output. A label outside the three ends the loop at that comment.
  • The transcript reaches the question chain through one Merge. On your first run, check that a second question also
    gets its answer.
  • Comments and the transcript go to OpenAI. Comments and replies are stored in your Supabase project.
Files
README.md  4 KB
workflow.json  24 KB

2 files, 28 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-03

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Marketing & SEO

See all in Marketing & SEO

Pixel Art XL

nerijs · Kit

A pixel art style add-on for Stable Diffusion XL that turns text prompts into pixel-style images, with an optional LCM LoRA for faster runs. For game makers, d…

New

Licon MSR for LTX-2.5

LiconStudio · Kit

Keeps characters, clothing, objects and backgrounds consistent in generated video by feeding the model up to five reference images. A LoRA for LTX-2.5 in Comfy…

New

Flux.2-Klein-9B-MatchingPose

nhathoangfoto · Kit

A LoRA for FLUX.2 Klein 9B that puts a character into the pose shown by a mannequin reference while keeping the character's face and style. For artists and des…

New