anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An n8n chat agent that answers questions about YouTube. It finds channels, lists videos, reads descriptions and comments, fetches transcripts and judges thumbnails, and it keeps each chat’s history in Postgres.
Chat agent that researches YouTube channels and comments 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.
Chat message
It starts when someone sends a message in the chat, and it needs:
An answer in the chat about a channel, a video, its comments or its thumbnail, with the chat’s earlier messages in mind
What you need before you start.
Channel, video and comment data
Returns channel details, search results, descriptions and comments through the YouTube Data API.
NeedsA Google API key with the YouTube Data API turned on
Transcripts
Runs an actor that returns the transcript of a video.
NeedsApify API token
Agent and thumbnails
Runs the agent and describes thumbnails.
NeedsOpenAI API key
Chat memory
Stores the history of each chat.
NeedsA Postgres database
Checked by Mindket on 13 Nov 2026
This n8n workflow is a chat you can use to research YouTube. You type a request, and an AI agent chooses among seven tools. They look up a channel by its handle, list its videos, search, read a video’s description and comments, fetch a transcript and judge a thumbnail. Postgres keeps the chat history. 22 nodes run it, beside six sticky notes.
Creators, marketers and analysts who want to learn from an audience and from rival channels without opening every video. Skip it if you only need the numbers of one channel, since a plain YouTube node gives them without a model.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Content | Creators | See what viewers ask for in the comments | A creator asks for the questions that repeat under a channel’s latest video. |
| Marketing | Social teams | Compare how rival channels package their videos | A team asks the agent to judge the thumbnails of a rival’s five newest videos. |
| Research | Analysts | Read a video without watching it | An analyst asks for the transcript of a talk and a summary of its main claims. |
| Agency | Video agencies | Plan the next video from what already works | An agency asks for a channel’s most viewed videos and what they have in common. |
You need a little n8n: import a file, add four credentials and save the workflow before you chat.
Any n8n that can reach Google, Apify, OpenAI and a Postgres database will run it. The chat works inside n8n, and you can make it public for other people.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. You need a Google API key, an Apify token, an OpenAI key and a Postgres database.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| Google Cloud | A project with the YouTube Data API turned on, and an API key |
| Apify | An account and an API token, for transcripts |
| OpenAI | An API key |
| Postgres | A database for the chat memory |
workflow.json.key and your Google API key. Select it in the five YouTube request nodes: Get Channel Details, Get Video Description, Get Comments, Run Query and Get Videos by Channel.token and your Apify token. Select it in Get Video Transcription.OpenAI Chat Model and OpenAI.Postgres Chat Memory.Ask in plain words. The agent decides which tools to call and in what order, and it asks you when a request looks like a mistake. Each chat keeps its own history, so you can follow up on an answer.
| To change | Where |
|---|---|
| How the agent behaves | The system message in AI Agent |
| The model | OpenAI Chat Model, and OpenAI for thumbnails |
| A new tool | A new Switch output with its request, and a tool node that sets its command |
| The transcript source | The Apify request in Get Video Transcription |
A creator types a request to find the channel with the handle example_handle and say what viewers ask for in the comments on its latest video. The agent looks the channel up, lists its newest videos, reads the comments of the first one and replies with the questions that come up most.
The creator then asks for the transcript and for how the video answers them. The agent fetches the transcript and compares it with those questions, with the same chat history in mind.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. An AI agent is a node that lets a chat model decide which tools to call. A tool here is a small workflow that the agent can run. Postgres is a database, and here it stores what was said in each chat.
For experts. The seven tool nodes are Call n8n Workflow Tool nodes that call this same workflow by {{ $workflow.id }}. Each sets a command, and Execute Workflow Trigger passes the call to a Switch that routes on that command. The agent runs on version 2.2 with a Postgres memory keyed by the chat’s sessionId.
| Node | What it does | What to know |
|---|---|---|
AI Agent | Plans and calls the tools | A tools agent, version 2.2 |
Switch | Routes each tool call by its command | Seven outputs |
Get Comments | Reads up to 100 comment threads | One page, with no further paging |
Get Video Transcription | Runs an Apify actor and waits for it | Charged by Apify, and it can take a minute or more |
The file needed repairs to run on its own, and a few limits apply.
gpt-5-mini, which OpenAI’s page, read on 12 November 2026, shuts down on 11 December 2026. Mindket’s copy names gpt-5.6-terra. The thumbnail model gpt-4o shuts down on 14 January 2027, and Mindket’s copy uses gpt-6-lunaAn n8n chat agent that answers questions about YouTube. You type a request in the chat, and the agent finds a channel by its handle, lists its videos, reads a video's description and comments, fetches a transcript and judges a thumbnail. It keeps the chat history in Postgres. Use it to see what an audience asks for, how top videos are packaged and what to make next.
workflow.json: the workflow as n8n exports it, 28 nodes. 22 of them run and 6 are sticky notes. It holds no credential.README.md: these notes.The file holds two scenarios. The first is the chat agent. The second is a set of tools in the same workflow, which the agent calls through seven sub-workflow tool nodes.
AI Agent was on version 1.6 in OpenAI Functions mode. n8n's source, read on 12 November 2026, marks that mode as deprecated and removed in n8n v3. It is an AI Agent on version 2.2 now, with the same prompt, memory and seven tools.{{ $workflow.id }}, because the second scenario is in the file.OpenAI Chat Model named no model, so n8n used the node's default, gpt-5-mini. OpenAI's deprecation page, read on 12 November 2026, shuts it down on 11 December 2026 and names gpt-5.6-terra. The node names gpt-5.6-terra now.OpenAI node that judges thumbnails used gpt-4o. OpenAI's page shuts that model down on 14 January 2027 and names gpt-6-luna, which takes image input. The node uses it and allows 1500 tokens, up from the default of 300, because that model reasons before it answers.Execute Workflow Trigger are gone, and the file's name is ours.workflow.json.key and give it your Google API key. Select it in Get Channel Details, Get Video Description, Get Comments, Run Query and Get Videos by Channel.token and give it your Apify token. Select it in Get Video Transcription.OpenAI Chat Model and OpenAI.Postgres Chat Memory.When chat message received takes the message, and AI Agent reads it as chatInput. Postgres Chat Memory uses the chat's sessionId, so each chat keeps its own history.get_channel_details, get_video_description, get_list_of_videos, get_list_of_comments, search, analyze_thumbnail or video_transcription. Each tool sends a command and its input to the second scenario.Execute Workflow Trigger takes the call, and Switch sends it to the matching request. The channel, video, search and comments requests go to the YouTube Data API. Edit Fields turns the comments into lines of author: comment. The transcript request runs an Apify actor and waits for its result. OpenAI describes a thumbnail from its address and a prompt.Response returns the result to the agent, which answers in the chat.AI Agent.OpenAI Chat Model for the agent and OpenAI for thumbnails.maxResults in Get Comments, which is set to the most the API gives in one call.Switch output with its own request, then a tool node that sets its command.Get Video Transcription.Postgres Chat Memory.Run Query and Get Videos by Channel are search calls. A long session can reach the limit.Get Comments asks for one page of up to 100 comment threads and does not go further.NOTICE.md 678 B README.md 6 KB workflow.json 34 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
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…
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…
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…