cd /news/ai-tools/why-i-built-a-zero-ai-review-monitor… · home › topics › ai-tools › article
[ARTICLE · art-182737] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Why I Built a Zero-AI Review Monitor with Regex, FastAPI, HTMX, and PostgreSQL

A developer built ReviewRadar, a review-monitoring service that classifies public Google Business and Trustpilot reviews using deterministic regex keyword rules instead of LLM inference. The FastAPI and PostgreSQL backend sorts 1-3 star reviews into eight e-commerce complaint buckets, uses PostgreSQL ON CONFLICT deduplication to prevent duplicate alerts, and sends idempotent low-rating alerts plus a weekly competitor complaint digest, priced at $9-$19 per month after a trial.

recommendation

Before adding an LLM to a fixed-category classification task, test deterministic boundary-anchored regex rules first; they keep per-item cost near zero and latency predictable.

more in playbook: Controlling LLM cost
by read3 min views2 publishedDec 6, 2026

If you sell physical products on Shopify or run a local business, your sharpest landing-page copy usually lives in your competitors' 1-star reviews. When buyers complain about 14-day shipping delays, denied refunds, or misleading sizing, they are telling you exactly what to promise and prove on your product page.

When I looked at existing review tools for small operators, I ran into two problems:

So I built ReviewRadar with zero LLM inference in the pipeline. It runs deterministic keyword rules over public Google Business and Trustpilot reviews, sends instant idempotent 1-2 star alerts for your own store, and mails a Monday 08:00 UTC competitor complaint digest. Pricing is $9/mo (Starter) or $19/mo (Growth) after a 7-day free trial, and anyone can run a free 30-second competitor audit on the homepage without signing up.

Here is how the core backend is built, why regex beat an LLM for this workload, and where deterministic rules fall short.

ReviewRadar does not need microservices, GPU workers, or vector databases:

pg_dump backups) Keeping classification deterministic means per-audit compute cost stays near zero, latency stays predictable under concurrency, and there are no surprise API bills when a competitor has hundreds of reviews.

In app/services/rule_tagger.py, every 1-3 star review runs through 8 curated e-commerce complaint buckets:

shipping_delay (Shipping Delay & Lost Parcel)refund_return_friction (Refund & Return Friction)product_defect_damage (Product Defect & Damage)customer_support_ghosting (Unresponsive Customer Support)billing_subscription_trap (Billing & Subscription Trap)sizing_expectation_mismatch (Sizing & Expectation Mismatch)packaging_missing_parts (Packaging & Missing Parts)website_checkout_bug (Website & Checkout Glitch) To avoid substring false positives (like bot matching bottle), each keyword uses strict alphanumeric boundary assertions and normalizes curly apostrophes (\u2019 -> ') before scanning:

def _compile_keyword_pattern(keyword: str) -> re.Pattern[str]:
    escaped = re.escape(keyword.strip().lower())
    return re.compile(rf"(?<![a-z0-9]){escaped}(?![a-z0-9])", re.IGNORECASE)

def tag(self, rating: int, title: str | None, body: str, rules=None) -> list[str]:
    active_rules = [r for r in (rules if rules is not None else self._default_rules) if r.is_active]
    haystack = f"{title or ''} {body or ''}".lower().replace("\u2019", "'")

    matched: list[str] = []
    for rule in active_rules:
        patterns = self._patterns_for(rule)
        if any(pat.search(haystack) for pat in patterns):
            matched.append(rule.tag_key)

    if not matched and rating <= 2:
        return ["other_complaint"]
    return sorted(set(matched))

A few practical details make this work cleanly in production:

other_complaint instead of silently disappearing.render_reply() verifies no {placeholder} remains unreplaced. Polling external review pages runs on a schedule (daily on Starter, twice daily on Growth). The last thing a store owner wants is receiving the same 1-star alert three times because a collector retried.

In app/services/deduplicator.py, PostgreSQL handles deduplication atomically during ingestion:

INSERT INTO reviews (
  target_id, source, external_review_id, rating, author_name,
  title, body, review_url, published_at, tags
)
VALUES (
  %(target_id)s, %(source)s, %(external_review_id)s, %(rating)s, %(author_name)s,
  %(title)s, %(body)s, %(review_url)s, %(published_at)s, %(tags)s
)
ON CONFLICT (source, target_id, external_review_id) DO NOTHING
RETURNING id, rating;

Only rows actually returned by RETURNING id, rating with rating <= 2 are queued for email or Slack/Webhook alerts, and every poll logs fetched_count, inserted_count, duration_ms, and http_status into scrape_runs.

Regex rules are not magic, and I would rather be upfront about the limits:

"Wow, my package really enjoyed touring three continents before seeing my porch" may land in "not a shipping issue, the zipper broke" can match both Even with those tradeoffs, showing small store owners exact complaint counts and verbatim 1-star quotes in 30 seconds for $9-$19/mo turns out to be far more useful than a $300/mo black-box sentiment score.

You can run a free competitor review audit without creating an account at reviews.solokit.vip (for example, test Gymshark London or any storefront on Google Business). Feedback on rule false positives or ingestion edge cases is very welcome in the comments.

── more in #ai-tools 4 stories · sorted by recency
── more on @reviewradar 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/why-i-built-a-zero-a…] indexed:0 read:3min 2026-12-06 · —