← All projects
AGENTIC AI · PERSONAL PROJECT · OWN PRODUCT

Supportly AI: an AI support agent for WhatsApp and the web

An AI support agent that answers a store's customers on WhatsApp and the website, using the store's own documents and live order data, and passes the chat to a person when it should.

Small online shops in Bangladesh get most of their questions on WhatsApp: is this in stock, what size should I take, where is my order. Someone on the team answers each one by hand, often late at night. I built Supportly so a business can hand the routine questions to an AI agent without losing control of what it says or does.

What I built

A multi-tenant SaaS with a FastAPI backend and a Next.js dashboard. Each business gets its own workspace where it uploads its policies and FAQs, connects its store, and sets how the agent should talk. Customers message the business's WhatsApp number, by text or voice note, or use the website chat widget. The agent answers from the workspace's documents, checks live stock and orders in the store, and replies in the customer's language, including Bangla.

  • One inbox for the team. Every conversation shows what the agent looked up and said. Staff can take over, hand back to the AI, assign and resolve. When a customer asks for a person, the AI steps back and the team is told.
  • Orders without guesswork. The agent can create an order or change its status in WooCommerce, but only after a person clicks Confirm on a card that shows exactly what will change.
  • Connectors and workflows. Ready-made connectors for Shopify, WooCommerce, Google Calendar, Calendly, HubSpot, Zoho and others, plus a custom REST API and SQL connector for in-house systems. A visual workflow editor runs follow-ups after events such as "order created".
  • Private AI chat for the team. Staff can ask questions like "how many orders are processing?" and get an answer built from the store's data and documents, with sources.
  • Bring your own AI models. Each workspace adds its own language, embedding, speech-to-text and text-to-speech providers and pays for its own usage.

Key decisions

  • Confirm before any change. Look-ups run on their own; anything that writes to the store waits for a human click. An AI mistake can't place or cancel an order.
  • Postgres does the heavy lifting. Documents, vectors (pgvector) and the background job queue all live in Postgres, so there is no Redis or separate vector database to run. Workers claim jobs with row locks and retry with back-off.
  • Each workspace is walled off. Every record belongs to one workspace, the tenant always comes from the signed-in user, and platform admins can't read a workspace's conversations.
  • Model-agnostic. LiteLLM sits between the app and the providers, so a workspace can switch models without code changes.

How I made it safe to run

  • 260 backend tests (pytest) and 13 Playwright end-to-end test files for the main flows. The backend tests run against a separate database that is rebuilt for each run.
  • Provider keys and SSO secrets are encrypted in the database, WhatsApp webhooks are signature-checked, and the website widget gets its own limited token and rate limits.
  • Roles and permissions, SSO with any OIDC provider, and an audit log for every security-relevant change.
  • Database changes go through Alembic migrations; the whole stack runs in Docker.

This is a personal project I built for my own use and experiments. It isn't published as a SaaS product.

Python · FastAPI · PostgreSQL · pgvector · SQLModel · Alembic · LiteLLM · Next.js · React · Tailwind CSS · WhatsApp Cloud API · Docker
Supportly AI in 35 seconds
Team inbox: the agent recommends products under 800 Taka and shows which store look-ups it ran.
Staff AI chat: “How many orders are processing?” answered from live store data, with sources.
WooCommerce connector: each action can be switched on or off for the AI.