Digital Products · SaaS · Conversational AI

Building a Multi-Tenant AI Chat Platform Any Business Can Embed in One Line

How we designed and built aiDesker — a full-stack SaaS platform that lets businesses deploy an intelligent, knowledge-grounded chat assistant on their website, powered by their own AI key, with per-tenant data isolation, lead capture and a complete admin layer.

1-Line
Embed to go live
2
AI providers supported
10+
API endpoints
Live
Production status
The Challenge

Businesses Wanted an AI Assistant on Their Site — Without Building One

Companies wanting a website chat assistant faced a hard choice: pay for rigid off-the-shelf bots that knew nothing about their business, or commit engineering time to build, host and maintain a custom one. Neither gave them a bot grounded in their own knowledge base, control over their AI spend, or visibility into the leads a conversation produced.

The need was a single platform where any business could register, feed in their own knowledge (company description, services, PDFs, scraped web pages), bring their own AI key, and drop a working assistant onto their site — while keeping every tenant's data, conversations and leads fully isolated from each other, all under one operator's oversight.

The Solution

A Purpose-Built, Multi-Tenant Conversational AI Platform

We built aiDesker from the ground up — a tenant-isolated SaaS platform covering the full lifecycle from knowledge ingestion to embedded widget, lead capture, CRM sync and platform-wide administration.

Bring-Your-Own-Key AI Proxy
Chat is proxied server-side to Claude (Anthropic) or ChatGPT (OpenAI) using each tenant's own API key, encrypted at rest and never exposed to the browser. No markup on AI usage.
Knowledge-Grounded Responses
Company description, service listings, uploaded PDFs and scraped URLs are injected into the system prompt. Scope control keeps the bot on-topic.
One-Line Embeddable Widget
A self-contained script renders a floating bubble or centre-popup panel, fetches tenant config from a public endpoint, and works cross-origin on any site.
Intelligent Lead Capture
The AI naturally captures name, email, company and role mid-conversation when intent signals appear, storing each lead with visitor type and a full profile.
Visitor Intelligence
Each session captures country, city, device, OS, browser, referrer, UTM source and pages visited via IP geolocation, surfaced in a per-lead profile.
CRM & Automation Hooks
Per-tenant HubSpot token and Zapier Catch Hook fire on every lead capture, auto-creating contacts and pushing payloads to 5,000+ downstream apps.
Tenant Dashboard
A multi-page workspace: overview stats, leads with status and CSV export, grouped conversation transcripts, knowledge base, API & usage, embed code and settings.
Stripe Billing
Checkout sessions, signature-verified webhooks for upgrade/downgrade/renewal, and a customer portal — across Starter, Growth and Business plans.
Super Admin Layer
Platform-wide oversight: tenant management, cross-tenant leads and conversations, impersonation for support, and team roles with scoped permissions.
The Results

From a Blank Page to a Live, Self-Serve AI Chat Product

aiDesker reached production as a complete self-serve platform — a business can register, configure its knowledge base, paste an AI key and have a grounded assistant live on its site, while the operator manages every tenant from a single admin console.

Live
In production
3
Self-serve plan tiers
100%
Per-tenant data isolation
Real-Time
Lead & usage tracking
"Any business can now have an AI assistant that actually knows their company — live on their site in minutes, on their own AI key, with every lead and conversation captured automatically."
— iDataOne
How We Built It

Technology & Approach

Full-Stack Development
Next.js 14 (App Router, Server Components, API routes) front end, Supabase (PostgreSQL) backend, deployed on Vercel with staging and production environments.
Multi-Tenant Isolation
Every table is scoped by tenant_id, enforced at the application layer and by Supabase Row Level Security — cross-tenant data access is structurally prevented.
Secure Key Handling
Tenant AI keys are encrypted before storage and decrypted in memory only during server-side calls. JWT auth with bcrypt; separate scoped tokens for tenants and super admins.
Provider-Agnostic AI
A unified chat proxy abstracts Anthropic and OpenAI behind one interface, with per-tenant model selection and knowledge injected into every system prompt.
CI/CD & Test Coverage
GitHub Actions pipeline runs API tests against staging and end-to-end tests against production, covering tenant isolation, leads, documents, scrape and billing flows.
Embeddable by Design
A dependency-free IIFE widget with CORS handling and a public config endpoint means the assistant drops onto WordPress, Webflow, Shopify, Wix, Squarespace or custom HTML.

Need a Similar Platform?

Let's discuss how we can build one for your business.

Book a Discovery Call