Case studies — AI APP · SAAS

ReplyMagic

Multi-tenant SaaS that connects to Instagram Business accounts, monitors incoming comments in real-time, and generates brand-voice-aware replies.

ZipLyne built the entire platform on Cloudflare, Workers, D1, KV, R2, with an 8-layer spam gate that classifies every comment before spending a single AI credit. Each merchant gets an isolated brand profile; replies either auto-send or queue for human review.

Every layer, from scratch.

Spam Gate 8-Layer Comment Classifier

Bot detection → keyword filter → language detection → sentiment pre-screen → rate limit → block-list → pattern match → confidence threshold. Every comment classified before touching the LLM.

Brand Voice Tone Extraction Onboarding

Merchants paste examples of their ideal replies. The system extracts tone, style rules, and vocabulary constraints, embedded into every generation prompt. Replies sound like the brand, not a bot.

Dual Reply Mode Auto-Send vs. Review Queue

High-confidence comments fire immediately. Edge cases route to a human approval queue. Merchants set their own confidence threshold per campaign, full control without manual overhead.

Multi-Tenant Isolation 100% Cloudflare Stack

Each merchant has isolated D1 tables, separate KV namespaces, and a separate brand profile. Workers, D1 (SQLite), KV (session/cache), R2 (media), zero external infrastructure.

How the AI works.

GENERATION GEMINI FLASH VIA OPENROUTER

Fast, cheap reply generation. Brand voice system prompt injected on every call. Falls back to secondary model automatically on rate-limit.

CLASSIFICATION CUSTOM SPAM GATE LOGIC

Rule-based layers run before any LLM call. Only comments that pass all 8 gates consume AI credits, keeps cost-per-reply low at scale.

DASHBOARD REPLY ANALYTICS

Reply volume, approval rate, spam catch rate, cost per reply, surfaced per merchant in real-time. Know exactly what the system is doing and what it costs.

What it runs on.

Compute / routing Cloudflare Workers

SQLite per tenant Cloudflare D1

Session + cache Cloudflare KV

Media storage Cloudflare R2

Model routing + fallback OpenRouter

Reply generation Gemini Flash

Comment webhooks Instagram Graph API

On the bench.

  • Cloudflare Workers
  • Cloudflare D1
  • Cloudflare KV
  • Cloudflare R2
  • OpenRouter
  • Gemini Flash
  • Instagram Graph API

Next file

Ringwell →