Skip to content
← All projects
  • AI agents
  • SaaS platforms

Built in

The customer writes at 3am and nobody answers

An AI salesperson answers in their language, quotes real prices, takes the order.

The problem

Merchants lose orders when customers write after hours, and generic chatbots make it worse by quoting prices that do not exist.

What I built

A multi-tenant SaaS where an agent answers on WhatsApp, Instagram and a web widget, quotes real Shopify prices and stock, and creates orders. The code re-checks every price against the catalogue; an ambiguous match goes to a human.

Technical details

  1. Hybrid search in SQL: pgvector HNSW and full text, fused by RRF
  2. Merchant secrets in Supabase Vault, reachable by the server only
  3. Meta webhooks verified on the raw body, replay-safe
  4. Draft orders behind three anti-duplicate locks

Stack

  • TypeScript strict
  • Supabase Postgres + pgvector
  • Claude API
  • Meta Graph API
  • Shopify GraphQL
  • Stripe

The result

Checked by 3,398 automated tests, including ones that prove the margin stays at 55% or more at real AI model prices.

A similar project in mind?

Tell me about your business and when you need it. You get a proposal by email.

I want this system

More projects

ERP & CRM · Warehouse stationThe returned parcel goes back on a shelf, never into stockView the project
1 / 27 : The returned parcel goes back on a shelf, never into stock