Loading introduction
Loading stats
Loading about
Loading projects
Loading project
Skip to content
Md Nayeem Hossain
Explorer
home.tsx
emarze.md
emarze.md
projects.js

// SaaS / AI Social Commerce

Emarze

A multi-tenant SaaS for Facebook sellers in Bangladesh: an AI agent answers Messenger chats and post comments in Bangla, English and Banglish, quotes from the real catalogue, and turns conversations into confirmed orders — backed by a full order, inventory, courier and reporting system.

Live Demo
Emarze cover

Overview#

Emarze is a multi-tenant SaaS platform for social-commerce businesses in Bangladesh. An AI agent answers customers on Facebook Messenger and post comments in Bangla, English and Banglish. It quotes prices and stock from the seller's real catalogue and turns conversations into confirmed orders. Around this sits a complete order, inventory, courier and reporting system. A separate admin panel runs the business side of the platform: clients, packages, subscriptions and billing.

Panels & Roles#

  • Seller Dashboard — Business Owner: full control of the shop: orders, catalogue, team, integrations and profit reports
  • Seller Dashboard — Staff: day-to-day work on orders, customers, products, inbox and comments, with no access to profit data, deleting orders or managing the team
  • Admin Panel — Super Admin: full platform control, including managing the admin team
  • Admin Panel — Manager: manages clients, packages, subscriptions and billing
  • Public Website — Visitors: landing, features, pricing, integrations, FAQ and sign-up

AI Sales Agent#

  • Replies to Messenger chats on its own, using the business's actual products, prices and stock, so it never makes up a price
  • Understands Bangla, English and Banglish ("dam koto?", "2 ta lagbe")
  • Sends a private reply to high-intent post comments and ignores casual ones such as "nice"
  • Remembers the conversation: once a customer shares their phone number and address, it reuses them in later messages
  • Spots out-of-stock items and suggests alternatives
  • Creates a real order from the chat, finds or creates the customer by phone number, and deducts stock
  • Each Facebook post can be linked to products and seller notes, so comments on that post get accurate answers
  • Webhooks are verified with HMAC signatures, so fake events are rejected

Seller Dashboard#

  • Overview: today's orders and sales, pending orders, customer count, low-stock alerts and a 7-day sales trend
  • Inbox: every Messenger conversation in one place. The seller can read what the AI said, reply personally, or turn the chat into an order
  • Comments: all comments from the Page, with tabs for unreplied, starred, spam and hidden. Includes one-click quick replies, saved reply templates, and replies posted straight to Facebook
  • Posts: imports Page posts and links them to products, with filters for "needs reply" and "no products"
  • Orders: create orders with multiple products and a live total. Orders move through Pending → Confirmed → Processing → Shipped → Delivered / Cancelled / Returned, and invalid status jumps are blocked. Also includes bulk status and courier updates, a duplicate-order warning (same customer and products within 48 hours), and printable invoices
  • Inventory: product CRUD with variants, SKU, buying and selling price, and a low-stock level per product. Stock comes back automatically when an order is cancelled or returned
  • Customers: search, tags and notes. Customers can be marked Risky or Blocked, and duplicate records can be merged
  • Courier: books parcels with Steadfast, Pathao and RedX from the order page and tracks every shipment by status
  • Delivery zones: the delivery charge is set automatically from the customer's address (for example, inside or outside Dhaka)
  • Reports: sales, profit (owner only), courier performance and product performance
  • Team: the owner can add, edit and remove staff accounts
  • Integrations: Facebook Page via OAuth, plus two-way sync with Shopify, WooCommerce or a custom website through an API key. Products are imported and orders are sent back to the store

Admin Panel#

  • Dashboard: revenue collected over the last 12 months, signups per month, overdue payments, and renewals or trials ending within 7 days
  • Clients: onboard a business, create the owner login and start a package in one step. Admins can disable or reactivate a client (a disabled client's team is signed out within 15 minutes) and reset the owner's password
  • Packages: monthly and yearly pricing in BDT or USD, trial days, and limits on conversations, Pages, seats and products
  • Subscriptions: assign, renew, change package, extend or cancel. Monthly invoices are generated automatically
  • Invoices: one-off invoices, payment recording, voiding, and tracking of outstanding amounts
  • AI usage and cost: Gemini cost per client, per feature and per message, by day or by month
  • System logs: server errors and Messenger/comment activity, with automatic cleanup after 7 days
  • Admin team: role-based access for Super Admin and Manager

Engineering Highlights#

  • Multi-tenant isolation: every query is scoped by businessId, and tests confirmed that one business cannot read another's data
  • Race-safe stock handling: stock is deducted atomically with MongoDB transactions, with a rollback fallback when transactions aren't available. In a test of 5 simultaneous orders for the last unit, exactly one succeeded and stock never went negative
  • Security: JWT with a refresh token in an httpOnly cookie, email verification, password reset, rate limiting, input sanitization, Zod validation, and encrypted credentials for connected stores
01

Key Features

  • AI sales agent that answers Messenger chats and post comments in Bangla, English and Banglish
  • Answers only from the seller's real catalogue, prices and stock, so it never makes up a price
  • Turns a conversation into a real order: finds or creates the customer by phone number and deducts stock
  • Unified inbox, comment moderation and post-to-product linking for the Facebook Page
  • Order pipeline with enforced status transitions, bulk updates, duplicate-order warnings and printable invoices
  • Courier booking and tracking with Steadfast, Pathao and RedX, with automatic delivery charges by zone
  • Two-way sync with Shopify, WooCommerce or a custom website through an API key
  • Owner and Staff roles, with profit data and team management limited to the owner
  • Admin panel for clients, packages, subscriptions, invoices and per-client AI cost tracking
  • Multi-tenant isolation by businessId and race-safe stock deduction with MongoDB transactions
02

Gallery

Landing page — AI support and sales for social commerce
Landing page — AI support and sales for social commerce
Feature overview — one inbox, trained on the catalogue, chats become orders
Feature overview — one inbox, trained on the catalogue, chats become orders
Seller dashboard — pending orders, low-stock alerts and the 7-day sales trend
Seller dashboard — pending orders, low-stock alerts and the 7-day sales trend
Admin panel — recurring revenue, collections, clients and signups
Admin panel — recurring revenue, collections, clients and signups

Details

project.json
1{2 "name": "emarze",3 "category": "SaaS / AI Social Commerce",4 "stack": [5 "Next.js",6 "React",7 "TypeScript",8 "Tailwind CSS",9 "Redux Toolkit",10 "Express.js",11 "MongoDB",12 "Mongoose",13 "Zod",14 "JWT",15 "Google Gemini",16 "Meta Graph API",17 "AWS S3"18 ]19}
PreviousClickTech