From under $4K to a record $37.8K month of collections within 90 days.
Retrieve product facts, validate generated claims, and require human approval for inbound quotes.
Style checks plus a separate claim-validation pass. The result is business collections, not an isolated causal estimate of the AI service.
Architecture model. Scroll horizontally on smaller screens →
Problem
A new wholesale business with one person running it needed prospect research, outreach, quoting, and support. I built an AI service for the repetitive work, with retrieved product facts, validation before send, and explicit approval for inbound quotes. The design separates drafting, validation, and permission to send.
Architecture
Architecture model. Scroll horizontally on smaller screens →
- Prospect ingestion and researchEach prospect gets an AI research pass over its website before any outreach is drafted.
- Personalized first touchInbox round-robin across warmed sending accounts, a warmup ramp, per-day frequency caps, sending-hours windows, and bounce-rate auto-pause.
- Reply detection and classificationReplies are classified by the Claude API as interested, buying signal, knowledge wall, not interested, or hostile, and routed accordingly.
- Draft-first responses and sequencingMulti-touch follow-ups with distinct angles, auto-cancelled the moment a prospect replies. Scheduled sends re-draft themselves if the thread has moved.
- Buying-signal handoffProspects showing intent are handed to me with the thread, and a daily digest summarizes everything else.
- Inbound quote requestsStorefront form to HMAC-verified webhook to spam filter to a Claude-drafted quote to a Telegram approve, edit, or reject prompt to a delayed send. Unapproved quotes save to drafts instead of sending.
Scheduled jobs operate over explicit status machines, suppression lists, protected contacts, and a RAG knowledge base synced nightly from the product catalog.
Controls that let an AI write to customers
Architecture model. Scroll horizontally on smaller screens →
- Two-layer validation before any send. Programmatic style checks for banned phrasing and formatting, then a second model pass that verifies every product claim against the retrieved knowledge base.
- Knowledge-wall escalation. When the model cannot answer a question from retrieved data, it sends a short holding reply and pings me on Telegram with the conversation. I answer in Telegram, the answer flows back, and the engine composes the final email. It escalates instead of bluffing.
- Approval at defined send boundaries. Inbound quotes go through Telegram approval. Helpdesk and mail integrations are draft-only by design with recipient allowlists. The only way an outbound customer message leaves the helpdesk is a human pressing send.
- Structural leak prevention. Supplier names and internal cost basis are tagged at the field level and excluded from customer-facing retrieval.
- Prompt architecture designed for caching. Modular layers for identity, task, style guardrails, company knowledge, and voice examples are ordered to make use of prompt caching.
- Incident-derived controls. Pre-send guards are covered by unit tests. Append-only correction logs feed a set of codified writing rules.
Numbers
| Monthly collections | under $4K to a record $37.8K, within 90 days |
|---|---|
| Gross margin | 38% |
| Active pipeline | 35 companies, quotes up to $218K |
| Infrastructure cost | ~$34/month |
| Operational stack replacing CRM, ERP, helpdesk, SDR | ~25,000 lines of code |
The operational stack around it
Procurement, storefront, compliance, and document tooling
The engine is one service in a set of tools I built so the business could run without CRM, ERP, helpdesk, or SDR software:
- Procurement analytics over $7.5M of purchase history, 2,715 purchase orders, and 95 suppliers: price trends per material, lead times per supplier, spend rollups, open-order tracking, and supplier reliability.
- B2B storefront of 1,200 products with 80+ SEO ingredient guides, co-built on Astro with Cloudflare Pages and a Cloudflare Worker routing over an existing Shopify store, its quote forms wired directly into the engine.
- Organic growth as a controlled experiment. 87 treated pages against a 45-page holdout, scored on quote requests rather than clicks, with a kill rule for any lever that failed to separate. Treated pages reached 17.9 impressions per page against 6.3, and site-wide clicks rose 81% in 28 days.
- Compliance tooling that reads the PDF text of purchase order, supplier invoice, packing list, and certificate-of-analysis chains and mechanically cross-checks numbers, dates, batches, and organic claims for USDA Organic audits. Now a mandatory pre-ship gate.
- Document generation for invoices, purchase orders, and a self-contained e-signature NDA flow with consent capture and an audit trail.
- Packaging mockup generator that renders all 1,200 catalog products as photoreal pouch mockups in about 30 minutes, using displacement mapping and a custom post-process to restore lighting in dark label regions.