- Home
- Case Studies
- YourComments.ai
Written by Shubham, Founder at BestlaTech · Published June 26, 2026
Engagement Type
Full-Stack AI Platform — Built from Ground Up
Core Tech
YouTube Data API · OpenAI · NDJSON · Metabase
Delivered For
YourComments.ai
Client
YourComments.ai
Duration
Ground-up build
Category
AI Analytics · NLP · Creator Intelligence
Markets
US
Comments Processable at Launch
1M+
Full ingestion and scoring pipeline
Report Types in Metabase
15+
Covering creator, brand, and competitor use cases
Per-Comment Score Time
~2s
Fetch → normalise → score → store
Comment-Level Granularity
100%
Every comment and reply individually classified
The Challenge
Creators Flying Blind
A YouTuber with 500,000 subscribers gets 4,000 comments per video and reads 30. The remaining 3,970 contain loyalty signals, purchase intent, and early churn warnings — unread and lost within 48 hours.
Brands Ignoring a Free Research Channel
A competitor's YouTube comment section fills with unfiltered customer reactions the moment a product launches. Most brands never look. Those that do read manually — which doesn't scale past a few hundred comments.
No Tool Built for Comment-Level Depth
Existing social listening tools score at video level. None delivered per-comment sentiment, intent detection, reply-chain analysis, and trend data — the granularity that makes the intelligence actually useful.
Use Cases
Know Your Audience Better Than They Know Themselves
Every comment on every video — sentiment-classified, intent-flagged, loyalty-scored. A creator can see which videos drive the strongest positive sentiment, which topics generate purchase-intent language, and which comment patterns indicate a subscriber moving from casual viewer to loyal advocate.
- Purchase intent language ("where can I buy", "link?", "just ordered")
- Loyalty indicators (returning commenters, positive sentiment trend over time)
- Negative sentiment clusters (early warning before a video underperforms)
- Question patterns (what your audience wants you to make next)
Your Competitor's Comment Section is a Free Focus Group
A brand analyst selects a competitor's channel or specific videos, the platform ingests all comments, runs sentiment analysis via OpenAI, and surfaces structured intelligence: top themes, sentiment breakdown, feature mentions, and emotional tone over time. No surveys. No interviews. No waiting.
- Competitor product sentiment (what customers love and complain about)
- Feature gap analysis (what users wish the competitor's product did)
- Audience emotional profile (how a competitor's launch landed in the market)
- Trend data (how sentiment shifted from launch day to 30 days out)
Start with the Data Problem. Then Build the Intelligence Layer.
Before any code was written, we mapped the exact intelligence each buyer type needed, the architectural constraints of building at scale, and what consistent AI output actually requires in practice. Those questions shaped every decision.
Define the Business Questions First
Reports were designed before the pipeline was built. For creators: purchase intent, loyalty signals, negative sentiment clusters. For brands: competitor sentiment breakdown, feature gap analysis, emotional tone over time.
Engineer for Consistency, Not Just Accuracy
We solved the structured AI output problem through prompt architecture: JSON output format, temperature control, per-edge-case fallback instructions, and confidence scoring on every result.
Build for Scale from Day One
NDJSON streaming and a per-comment PostgreSQL schema were chosen at design stage. The architecture handles 10,000 comments and 10,000,000 comments the same way — no redesign needed as the platform grows.
Weekly Demos Against Real Channel Data
Every sprint ended with a live demo using actual YouTube channels. Edge cases surfaced during demos, not after launch.
A Five-Stage AI Pipeline That Turns Raw Comments into Structured Intelligence
Every layer purpose-built: data ingestion, normalisation, AI scoring, storage, and reporting. Not a plugin, not a wrapper, not a low-code workflow.
YouTube Data API v3
Quota-aware ingestion layer fetching every comment and reply for any public video or channel. Pagination automatic, large jobs queued as background tasks, rate limits managed, partial-job recovery built in.
Cleaning Before Scoring
Language detection, spam filtering, deduplication, thread structure preservation. Only clean, structured data reaches OpenAI.
OpenAI with Structured Prompt Engineering
Deterministic JSON output per comment: sentiment classification, intensity score, intent category, confidence rating. Temperature controlled. Edge cases handled with specific prompt logic.
NDJSON Streaming into PostgreSQL
Scored results stream as NDJSON — one record per line — into a structured PostgreSQL schema. One row per comment with full sentiment metadata, queryable at any granularity.
Metabase Dashboards Built Around Business Questions
15+ report types built around specific buyer questions — not around the data model. Creator dashboards: sentiment trend, purchase intent volume, loyalty score, negative spike alerts. Brand dashboards: competitor breakdown, feature mentions, emotional tone, launch comparison.
The Full Stack — From YouTube API to Business Dashboard
YourComments.ai is not a wrapper around an existing tool. It is a full-stack AI analytics platform built from the ground up — data ingestion, NLP pipeline, storage architecture, and a reporting layer.
FETCH
YouTube Data API Ingestion
The platform connects to the YouTube Data API v3 and fetches comments and replies for any video or channel on demand. Pagination is handled automatically — whether a video has 200 comments or 200,000 — with rate limit management and retry logic built in.
PARSE
Cleaning and Normalisation
Raw YouTube comment data passes through a normalisation layer: language detection, spam filtering, deduplication, thread structure preservation (comment → reply chains maintained), and structured formatting before any analysis runs.
SCORE
OpenAI Sentiment Analysis
Each normalised comment is sent to OpenAI's API with a structured prompt returning consistent output: sentiment classification (positive / negative / neutral), intensity score, intent signals (purchase, complaint, question, praise), and a confidence rating. Every comment and reply scored individually — not the video.
STORE
NDJSON Pipeline into PostgreSQL
Scored results are streamed as NDJSON — one record per line, processed and written without loading the full dataset into memory. Results land in a structured PostgreSQL schema: one row per comment, with sentiment scores, intent flags, metadata, and thread context all queryable.
VISUALISE
Metabase Dashboards
The PostgreSQL data powers a Metabase reporting layer with 15+ dashboard types — built to answer specific business questions per channel, per video, per time range, and per sentiment type.
Technologies Used
The Hard Parts
YouTube API Quota Management
The YouTube Data API v3 has strict daily quota limits. We built a quota-aware job scheduler that batches requests, prioritises high-value channels, queues large jobs overnight, and recovers gracefully without losing progress or corrupting partial datasets.
Prompt Engineering for Consistent AI Output
We engineered a prompt system that returns deterministic JSON output for every comment — sentiment, intensity, intent category, and confidence score — with temperature set to minimise variance. Edge cases (sarcasm, mixed sentiment, non-English text, emoji-only comments) each handled with specific prompt instructions and fallback logic.
Handling Scale Without Memory Collapse
We chose NDJSON as the streaming format precisely because it handles arbitrarily large datasets as a stream — one record per line, processed and written without ever loading the full dataset. Processing 1,000 comments and processing 10,000,000 comments uses the same architecture.
Building Reports That Answer Business Questions
We worked with YourComments.ai to define the specific questions each report needed to answer — for creators: 'which of my videos has the highest purchase intent?', for brands: 'how did sentiment on my competitor's channel change after their product launch?' — and built Metabase queries around those questions, not around the data structure.
Key Features
YouTube Data API v3 integration with automatic pagination, rate-limit management, and full retry logic
Comment normalisation engine — language detection, spam filtering, deduplication, thread structure preservation
OpenAI sentiment scoring pipeline — per-comment classification, intent detection, intensity scoring via structured prompt engineering
NDJSON streaming layer for high-volume data ingestion without memory bottlenecks
PostgreSQL data model storing every comment with full sentiment metadata, queryable at any granularity
15+ Metabase report types — sentiment trends, loyalty scores, intent maps, competitor breakdowns, time-series analysis
Job queue and rate limit manager — large channel ingestion as background jobs with progress tracking
Multi-channel support — analyse any public YouTube channel or video, own or competitor
Results & Impact
1M+ comments processable through the full ingestion and scoring pipeline
15+ report types live in Metabase covering creator, brand, and competitor use cases
100% comment-level granularity — every comment and reply individually classified
Per-comment scoring end-to-end (fetch → normalise → score → store) in approximately 2 seconds
Manual comment reading eliminated — replaced by automated sentiment intelligence at scale
Creator and brand intelligence previously impossible now available on demand for any public YouTube channel
YourComments.ai can now ingest any public YouTube channel, score every comment and reply individually via OpenAI, and deliver structured intelligence in real time — whether that's a creator understanding their audience's purchase intent or a brand analyst reverse-engineering a competitor's launch reception. The platform turned the most underutilised data source on the internet into a business intelligence tool.
Before vs After
| Before | After | |
|---|---|---|
| Comment analysis | Manual reading — 30–50 comments per video | Automated — every comment on every video |
| Sentiment data | None — gut feel only | Per-comment: sentiment, intent, intensity, confidence |
| Brand intelligence | No competitor comment data | Full competitor channel analysis on demand |
| Reporting | None | 15+ live dashboards — trend, intent, loyalty, competitor |
| Scale | Doesn't scale past a few hundred comments | Designed for millions |
"
BestlaTech took a complex idea — analysing sentiment across millions of YouTube comments in real time — and turned it into a system that actually works at scale. The dashboards gave us insight into audience intent we'd never had before. They built something we didn't think was possible in the timeline we had.
— Founder, YourComments.ai
If You Work with Audience Data at Scale, This Architecture Applies to You.
YourComments.ai is one implementation. The underlying system — data ingestion at scale, AI-powered classification, structured storage, business intelligence dashboards — is applicable to a broader set of problems.
YouTube Creators & Agencies
You publish content at scale and need to understand what your audience actually thinks. Comment-level intelligence changes how you brief content, monetise audiences, and grow.
Brand & Marketing Teams
Your competitors' YouTube channels are a live, unfiltered focus group. Comment intelligence tells you how product launches land and where sentiment is shifting — before it shows up in sales data.
SaaS Founders & Product Teams
Any product touching user-generated content at scale — reviews, support tickets, community posts, social comments — can use the same NLP pipeline. If you have a large text corpus and need structured intelligence, this is the architecture.
Want to Build Something Like This?
Whether you need a YouTube intelligence platform, a custom NLP pipeline, or AI features built into an existing product — book a call and we'll tell you exactly what's buildable and in what timeframe.
Book Your Free Discovery Call →Fixed scope. Fixed price. Zero surprises. Serving US, UAE & Singapore.
Frequently asked questions
Talk to an expert
Get expert advice from our official advisors
More of Our Case Studies
Explore our diverse portfolio of successful projects and innovative case studies that showcase our expertise in delivering top-notch solutions.



