The brief
The author used to write comments under other creators’ videos on his topic, and people came to his website after them. Finding the right videos and writing replies by hand took too much time. He needed a system that does this work from his knowledge and rules.
The solution
Knowledge base. The author’s lessons and articles (505 lessons and 420 articles in two languages) were split into 9,695 chunks and loaded into a vector database (ChromaDB). Replies draw only on these chunks.
Channel search. Every day the system searches for new channels across 855 topics, checks subscribers, upload frequency and engagement, and AI (Claude Haiku) decides whether the channel’s topic fits. In 4 months it found 2,419 channels and rejected 11,922.
Comment selection. Only fresh (under 48 hours) videos of medium popularity. Comments pass a filter: no links, spam or sensitive topics (violence, suicide, medical); AI decides whether the person writes about their own experience.
The reply. Claude Sonnet writes 2–3 sentences from the knowledge base chunks, no links or ads, in the video’s language, ending with an open question. It is posted from the author’s channel in the same language as the video.
Rules and limits. Channel and topic blacklists, daily limits, no more than 2 replies per channel and one reply per video per day. The system tracks whether replies stay visible; a channel where a reply was deleted is blacklisted automatically.
CRM dashboard, schedule and reports. Search and replies run automatically on a schedule that can be changed in the browser. The dashboard shows channels, videos, comments, reactions, AI costs, YouTube quota and settings; Telegram notifications. Reports show when people react more: by hour, video age, channel size and language.
Integrations and modules
- YouTube Data API v3 (OAuth, 3 projects)
- Claude API
- OpenAI API
- ChromaDB + LangChain
- MySQL
- Flask
- Telegram Bot API
- Windows Task Scheduler
Result
3,321 replies, 49.7% with a reaction, 1,175 threads where people replied. Replies under videos younger than 4 hours got a reaction 74% of the time, under 1–3-day-old videos 45%; best time 15:00 and 21:00, each language has its own. AI costs: $61.64 for replies ($0.019 per reply) and $11.75 for channel search. Timeline: March – June 2026. Budget: system €890, improvements and support €149/month; AI tokens paid separately, about $73 over 4 months.
What we would add with AI today
Claude Sonnet 4.6 writes replies from the knowledge base (RAG). Claude Haiku 4.5 selects comments, checks channel topics and generates search topics. OpenAI text-embedding-3-small creates the knowledge base vectors. Claude Code (agent) was used to build and improve the system. What a human checked: the author and our team set the rules: which topics to answer, which words and topics to avoid, how to reply and which questions not to answer, blacklists and limits. The author approved the rules and reply style in advance. For four months he read every published reply and takes responsibility for their content; based on his feedback and the reactions we refined the rules and selection criteria.
YouTube CRM
Screenshots
-
AI CRM dashboard: average engagement by hour of day -
AI CRM dashboard: threads where people replied to our reply, with reply and like counts -
AI CRM dashboard: automatic channel search, a table of 2,419 channels found -
AI CRM main dashboard: 3,321 replies and 11,922 blacklisted channels -
AI CRM dashboard: reactions by video age at the time of reply -
AI CRM dashboard: AI costs by task, Claude Sonnet, Claude Haiku and embeddings -
AI CRM settings: run schedule, replies three times a day, channel search at 10:30
FAQ
Frequently asked questions
Where does the AI get the content of its replies?
From the author’s knowledge base: for each reply the AI takes the 3 closest lesson and article chunks for the video’s topic and the comment. The rules set the length, tone and topics that are off limits.
How much does the AI work cost?
In this project AI tokens cost about $73 over 4 months: $61.64 for replies and $11.75 for channel search. On average $0.019 per reply.
How are unsuitable replies avoided?
Sensitive topics are filtered out before the AI, the rules forbid links, ads and medical advice, and channels where replies do not fit are blacklisted.
Does this work for other sources?
Yes. The same principle — search, selection, a reply from a knowledge base and record keeping — fits customer enquiries, forums or email.
Enquiry
A similar solution: AI selection and replies from a knowledge base
Tell us what you want to automate or connect – we will assess it and suggest where to start.
+370 670 99265Mon–Fri 9:00–18:00
info@saitai.ltWe reply within 1 working day
Alaušo g. 1C, LT-08424 VilniusMeetings by prior arrangement by phone only