Omnichannel AI Sales Agent
An autonomous LLM agent that sells, verifies payments and delivers orders across WhatsApp, Messenger and Instagram.
Problem
Digital-product sellers answer hundreds of DMs a day on three different apps, then check payment screenshots by hand and deliver each order manually. Response time — and sales — suffer the moment nobody is online.
See it run
Hi! Is the 1-year plan still available? How much?
Yes, it’s in stock — $12 for 12 months. Want it activated on this number?
Perfect, paying now
vision.verify_payment TrxID 9KX2…41 · $12.00 ✓
Payment verified. Your plan is active — details are in your inbox.
order #1042 · completed in 38s · no human needed
How it flows
- Customer DM
- Channel adapters
- Agent + FSM
- LLM & vision OCR
- Payment check
- Fulfilment
- Dashboard
What I built
- One agent across WhatsApp (Baileys) and Messenger / Instagram (Graph API), sharing a single catalog, customer history and order book.
- The sales funnel is a finite-state machine (discovery → product → awaiting payment → completed): the LLM converses freely while state changes stay deterministic and auditable.
- Vision OCR reads payment screenshots (bKash, Nagad, crypto, bank), extracts the transaction ID and amount, and verifies them before anything is delivered.
- Automatic delivery for licences and credentials, plus guided hand-offs for products that need a human step.
- Human-like pacing — typing presence, delays and per-chat queues — to keep messaging accounts healthy.
- An operator dashboard for live catalog and inventory edits, a sandbox to test conversations, payment audit and one-click Facebook / Instagram connection, plus admin chat commands (pause, mute, ban, reload).
- Model routing across Gemini, OpenAI and OpenRouter; sessions, orders, chat history and channel auth all persisted in PostgreSQL.
Notes
An earlier single-channel version added language matching (English, Bangla, Banglish, Hindi, Urdu), bargaining with floor prices and automatic customer tagging.