AI-native CRM & growth platform
Every customer conversation in one CRM, an AI assistant for every team member that works with their own permissions, and an MCP server that lets external AI agents do the same. One upstream codebase powers independently hosted client deployments.
My role DevOps & Platform Engineer, AI Infrastructure: architecture, infrastructure, CI/CD, security, multi-tenant delivery and AI integration.
- 1,300+automated tests on every change
- 19AI tools over MCP
- 44live production checks after every deploy and every night
- 24languages
- 60versioned database migrations
- 4stablecoin payment rails
What it does
A multi-tenant CRM and growth platform for partner-driven sales organisations. Outlook and Gmail mail, shared inboxes, Telegram, Matrix/Element chat and website forms all land in cases. Every team member gets an AI assistant inside the CRM, external AI agents connect over MCP, a reply bot answers customers on Telegram with a human handover, and multilingual websites and Telegram Mini Apps feed leads straight in. It runs as a web app, an installable PWA and a native mobile app shell, in 24 languages.
AAI & automation
- An AI assistant one keystroke away, answering from live CRM data
- Claude Code, Claude Desktop and claude.ai work in the CRM over MCP
- A Telegram reply bot answers customers in their own language within seconds
- News translated into 22 more languages in the background
- Workflow rules and follow-up reminders run on their own
BOmnichannel inbox
- Outlook and Gmail: each person reads and sends as themselves, inside the CRM
- IMAP shared inboxes for team addresses
- Telegram bots and personal accounts; Matrix/Element chats per case
- Incoming mail files itself into the right case, and only once
- Website visitors start a live chat with their team leader
CCRM core
- Companies, contacts and cases with team-defined statuses and a full timeline
- Custom fields, files from uploads, mail and chat, internal notes
- Admin, leader and member roles with team-based visibility
- Prospect invites by personal or public link; a lead is created only when a person opens it, never a crawler
DGrowth sites & Telegram
- Marketing sites in up to 24 languages, right-to-left for Arabic and Hebrew
- Partner pages with short links and QR codes; one-click sign-up
- Lead forms that open CRM cases directly
- Telegram Mini Apps and narrated videos in every language
EAnalytics
- Leads, open and closed cases, median time to first reply
- Cases by leader, source, country and product
- Sign-up funnel, live-call attendance, ad spend and cost per sign-up
- Every figure computed under the viewer's own data permissions
FBilling
- Prepaid, invoice-driven plans paid in USDT and USDC
- Non-custodial: no private key or seed on any server
- Payments matched to invoices and reconciled against the chain daily
- Service back on within one minute of payment, with no manual step
GMobile
- Installable PWA plus a native iOS and Android app shell
- The app stores no password or token
- Connects to the company's own deployment
- Every web feature is in the app the day it ships
HSecurity & privacy
- Row-level security on every table, tested on every change
- Two-factor sign-in; Google and Telegram sign-in
- Layered sign-up protection against bots and account pre-hijacking
- Personal mailboxes and chats invisible to colleagues, enforced by the database
The AI layer
01 ★
An assistant in every seat
A side panel, one keystroke away, that answers from live CRM data and proposes changes: "summarise this case", "draft a reply to the last message", "add a note with the key decisions". It runs with the signed-in person's own database permissions, so it sees and changes only what they can. It drafts emails and messages but never sends them, and the conversation stays in the browser, never on the server.
02 ★
The CRM as an MCP server
A stateless Streamable-HTTP MCP endpoint, so Claude Code, Claude Desktop and claude.ai work in the CRM directly: 19 tools to search, read and update companies, contacts and cases, set follow-ups, add notes and file emails and chats, plus resource URIs. Personal tokens are shown once, stored as peppered hashes, scoped read or write, with optional expiry. 120 requests per minute per token, and every action is logged as made "via MCP".
03 ★
A reply bot that knows when to stop
Answers customers on Telegram in their own language within seconds, from the company's own knowledge and onboarding steps. It hands over to a human when asked, when the customer is upset, wants to sign or pay, or when it cannot help; it notifies the right person, stays quiet during the handover and resumes on command. Every answer is filed in the CRM like a human reply.
04
One agent core
Tools are defined once, with typed and validated schemas, and serve both the in-app assistant and MCP: a new tool reaches both at once. The same privacy rules apply as in the app, re-checked inside the tools.
05
A production-grade LLM client
Anthropic Claude or Google Gemini by configuration, behind one client: tool schemas adapted per provider with automatic fallback, reasoning budgets handled, retries with backoff. A one-click setup check tells admins exactly what to fix: key, model, quota or region.
06
Translation in the background
News posted to a Telegram channel appears on the websites within seconds and is translated by Claude into 22 more languages, keeping formatting, links, names, numbers and emoji, with a "show original" switch for readers.
How it stays safe
- The database enforces permissions. The assistant acts as the person using it, so row-level security decides what it can see and change. MCP tools re-check the same rules.
- Every write needs approval. Each proposed write is an approval card listing every field it changes. Sensitive changes (a case's owner or contact, a contact's email, a company's mail domain) always ask.
- Outside text is data, not instructions. Emails, subjects, names, notes, chat text and file names reach the model wrapped as data; look-alike tags are defused.
- Model output is sanitised. Answers render as safe UI elements, never model HTML. Translations are rebuilt tag by tag: allowed formatting only, links only to URLs in the original.
- No half-finished answers. An empty, refused or cut-off answer is retried or handed to a human, never sent.
- Bounded and provider-agnostic. Rate limits per person and per token; Claude or Gemini by configuration. The bot's prompt forbids promising income, asking for credentials or money, or sending payment details not in the company's information.
Architecture
How a request flows
- A person asks the in-app assistant, or an external agent calls the MCP endpoint.
- The app hands the request to the shared agent core: one tool registry, one LLM client.
- Every tool reads and writes PostgreSQL as that person. Row-level security decides what exists for them.
- Proposed writes come back as approval cards; drafts are never sent by the assistant.
- The worker syncs mail and chat, runs the reply bot through the same agent core, applies workflow rules, publishes scheduled posts, watches the chains for payments and sends reminders.
- Platform
- AI path
- External
Why it holds
- Each client deployment is fully isolated: its own repository, database, auth, domain, secrets and branding profile.
- A per-client manifest records client-owned files, client-only features and migration renames and skips.
- The sync stops on a version collision or an ownership conflict instead of overwriting client work.
- Every upstream change becomes a sync pull request in every client, gated by the same CI.
How I built and run it
Multi-tenant delivery from one codebase
- Problem
- Every client needs an isolated deployment, yet every improvement has to reach all of them without hand-merging or overwriting client customisations.
- What I did
- Built a sync tool driven by a per-client manifest, with version-collision and ownership-conflict detection, and a GitHub Actions workflow that opens a sync pull request in every client after each upstream change. Branding is a swappable profile.
- Result
- Every upstream change reaches every client as a CI-gated pull request, and a deploy-time instance-ID check makes it impossible for one tenant's app to run against another tenant's database.
Self-hosted data platform
- Problem
- Production tenants ran on a managed cloud database; each needed its own dedicated stack that runs on small servers.
- What I did
- Moved each tenant to its own self-hosted Supabase stack (PostgreSQL 17, auth, REST, storage, API gateway, admin dashboard) on Docker Compose behind nginx, Cloudflare and Let's Encrypt, trimmed for small servers.
- Result
- Data parity verified after the move, nightly backups, and a database reachable only over SSH tunnels.
CI/CD with hard gates
- Problem
- One bad merge or one edited migration could break every tenant and its security rules at once.
- What I did
- GitHub Actions runs lint, strict type-checks, 931 unit tests and 398 database security tests on every change. A migration gate refuses edits to applied migrations and requires new ones to sort after everything in production. The production branch accepts only pull requests from main; deploys run over SSH, with migrations through an SSH tunnel.
- Result
- Nothing reaches production without passing 1,300+ tests and the migration gate, and every secret lives in GitHub Environments, none in code.
Production verification
- Problem
- A green pipeline does not prove the live system works: sign-up, permissions and integrations depend on production configuration.
- What I did
- Playwright live suites after every deploy and every night: 44 CRM checks plus website checks covering sign-up flows, permissions, lead intake, invites, the Telegram Mini App's signed launch data, captcha and security probes against the live API.
- Result
- Every deploy is proven against the real system, and again every night, with throwaway accounts that clean up after themselves.
Observability
- Problem
- Small self-hosted servers need monitoring, and the monitoring tools must not become an exposure of their own.
- What I did
- Uptime monitoring with Telegram alerts, host and container metrics, centralised container logs and container management, and error tracking with secrets and personal data scrubbed.
- Result
- After an exposure audit, every operations tool moved behind TLS on loopback-only ports.
AI infrastructure
- Problem
- An assistant, an MCP server and a reply bot could easily mean three tool sets, three LLM integrations and three sets of safety rules.
- What I did
- One shared agent core: one tool registry and one provider-agnostic LLM client, with token and reasoning budgets, retry and human fallback, injection hygiene, output sanitising, per-person and per-token rate limits, and a translation pipeline.
- Result
- A new tool reaches the assistant and MCP at once, and every AI surface inherits the same safeguards.
AI-assisted engineering and docs-as-code
- Problem
- A platform this broad, across several repositories, has to stay legible to every engineer and every AI session working on it.
- What I did
- I run parallel coding agents with independent adversarial reviewers for reviews, fixes and pre-release verification against replicas of production databases, and keep a living handbook per repository with automated staleness checks.
- Result
- Every engineer and every AI session starts from the true current state, and risky changes are proven on production replicas before release.
Engineering highlights
01 ★
Privilege drift, fixed without downtime
- Challenge
- After the database move, an audit showed that the restore had silently widened database privileges for the public API roles.
- Action
- I rebuilt the intended privileges from the migration history, generated an exact fix, proved it on replicas of production, had it reviewed adversarially and applied it in one transaction per database.
- Outcome
- Gateway logs confirmed nothing had been misused, and a permanent live probe means it cannot come back unnoticed.
02 ★
Shipping to every tenant safely
- Challenge
- An upstream release has to land in every client without colliding with client-specific schema.
- Action
- Automatic, CI-gated sync pull requests for every client, with each release's migrations first tested against the client's real production schema.
- Outcome
- That rehearsal caught a silent object-name collision before it reached production. Along the way I fixed a false failure in the migration gate itself (SIGPIPE under
pipefail).
03
Managed cloud to self-hosted, per tenant
- Challenge
- Move every production tenant off a managed cloud database onto infrastructure of its own.
- Action
- Stood up a dedicated self-hosted database stack per tenant and moved each one across.
- Outcome
- Data parity verified for every tenant, with each stack trimmed to run comfortably on small servers.
04
AI made safe for real customers
- Challenge
- Put an LLM in front of real customers and inside a CRM full of private data.
- Action
- Permissions enforced by the database, approval cards for writes, injection-safe context, sanitised output and guardrails in the bot's prompt.
- Outcome
- The assistant only ever sees what its user can see, and no half-written answer ever reaches a customer.
Stack
- Frontend
- Backend & data
- AI
- Integrations
- Infrastructure
- Quality
Confidentiality. Product, client and company names are withheld. The platform runs as independently hosted client deployments of one upstream codebase; the figures on this page describe that codebase and its pipelines.