WA Commerce Agent
Multi-tenant SaaS that connects to any WhatsApp Business number. The AI agent replies to buyers instantly, takes orders, tracks deliveries, and gives sellers a real-time dashboard — all without the buyer downloading an app.
Project Overview
WA Commerce Agent is a multi-tenant AI SaaS platform that transforms WhatsApp into a fully autonomous commerce channel for small businesses worldwide.
Sellers connect their WhatsApp Business number and immediately get an AI agent that handles buyer conversations — answering product questions, taking orders, confirming payment methods (COD or digital), and updating delivery status — all within WhatsApp threads the buyer already uses. No app download required.
Sellers manage everything through a Flutter Web dashboard: upload products, view live orders, manage COD settlements, and track revenue analytics. The underlying Node.js backend manages webhook ingestion from the Meta WhatsApp Cloud API, routes messages to Claude AI for context-aware tool calling, and persists state in a Supabase PostgreSQL multi-tenant schema secured by Row-Level Security.
My Engineering Role
Founder, Architect & Full-Stack Engineer — designing the multi-tenant architecture, AI agent tool schema, WhatsApp webhook pipeline, Supabase data model, and Flutter Web seller dashboard.
The Challenge
WhatsApp is unstructured: buyers send free-text messages, images, and voice notes in no predictable format. The AI agent must reliably interpret buyer intent, query live product and order data, and respond in natural language — all within a 15-second Cloud API response window and without hallucinating inventory or delivery details.
The Solution
Built a tool-calling AI agent powered by Claude API that receives structured message context, invokes typed Supabase query tools to fetch live product and order data, and returns context-grounded replies. LangGraph orchestrates multi-step reasoning flows for complex queries. Each seller's data is isolated by Row-Level Security policies on a shared Supabase schema.
High-Level Architecture
- Multi-tenant Supabase PostgreSQL schema with cryptographic Row-Level Security policies isolating each seller's data.
- Meta WhatsApp Cloud API webhook ingestion pipeline with idempotent message deduplication and delivery confirmation.
- Claude API tool-calling agent with typed Supabase query tools — product lookup, order creation, delivery status, and COD confirmation.
- LangGraph multi-step orchestration for complex buyer journeys spanning multiple message turns.
- Flutter Web seller dashboard with real-time Supabase subscriptions for live order notifications.
Key Features & Workflows
- AI agent with tool calling for live product and order queries
- Meta WhatsApp Cloud API webhook pipeline with idempotent delivery
- Multi-tenant Supabase schema with Row-Level Security
- COD workflow with order confirmation and delivery status updates
- Real-time Flutter Web seller dashboard
- LangGraph multi-step reasoning for complex buyer journeys
Technical Challenges Overcome
- Maintaining context across multi-turn WhatsApp conversations within API response windows
- Idempotent webhook delivery handling for duplicate WhatsApp message events
- Isolating per-seller AI tool call access to their own Supabase data partitions
Production Results & Impact
- In development — Beta access open for early sellers
- Zero buyer app downloads required — commerce via WhatsApp threads
- Single codebase serving unlimited seller tenants with isolated data
Featured Case Studies
Explore More Production Architectures
Wasey — Food Multi-Vendor Delivery Platform
Customer, courier, and vendor apps with live GPS tracking and automated dispatch.
Architecture — Social Care Management
Operational social-care workflows on Flutter, Firebase, and offline storage.
Need a similar architecture shipped?
Let's translate your product workflows, real-time requirements, and cloud infrastructure into a dependable production app.