Techlithy CRM
Multi-tenant SaaS for sales teams that sell through WhatsApp and Instagram
A CRM that brings WhatsApp, Instagram and email conversations into one real-time screen, with a kanban pipeline, automated campaigns and AI agents with human approval. Used by 4 companies that together run more than 20 schools.
The problem
Sales teams, such as school and course admissions teams, handle leads on WhatsApp, Instagram, email and ad forms at the same time. With conversations spread across apps and spreadsheets, leads get lost, nobody knows who is handling whom, and management has no reliable numbers.
The product
- WhatsApp, Instagram and email in one screen, in real time, showing who is online and letting the team assign and transfer conversations. Besides the official WhatsApp API, a company can connect its own phones with a QR code.
- Kanban pipeline where the card moves forward when the lead replies or books a visit, with automatic distribution among agents and reassignment of leads that stall.
- Configurable triage bot that creates leads, follows each unit's opening hours and holidays, and places the card in the pipeline and stage the company picks.
- Leads book their own visit from a button in the WhatsApp message and get an automatic reminder before it.
- WhatsApp and email campaigns by segment, automated sequences for each funnel stage, and visual editors for flows and emails.
- AI Center with agents that diagnose each unit daily, review conversations and prepare follow-ups for stalled conversations, which agents approve one by one or in bulk. Nothing goes out without human approval.
- Grammar checker in the chat box, with custom rules for common Portuguese mistakes and each company's own dictionary.
- KPI dashboards by role, cost control by unit, internal team chat, training tracks and an audit log of access and downloads.
Architecture
The frontend is a React 19 SPA with TanStack Router and Query. The backend is a NestJS API organized in layers (domain, application, infrastructure and presentation), with architecture rules enforced by lint and tests.
A single deployment serves every client. Data is isolated per company in the database, and one person can belong to several companies and switch between them during a session without logging in again. BullMQ queues process messages, campaigns, imports and AI jobs, and Socket.IO delivers messages to the screen in real time.
A change of role, permission or unit takes effect right away, on the open screen, without logging in again. Each feature is enabled per company; when it's off, it disappears from the CRM and its data is kept.
- PostgreSQL, Redis and S3-compatible storage (MinIO).
- Observability with OpenTelemetry and self-hosted SigNoz.
- Integrations with the WhatsApp Cloud API, Instagram, Meta Lead Ads, Gmail and AI providers, with encrypted keys and a monthly cost cap per company.
- Grammar checking with self-hosted LanguageTool, so messages never leave the server.
- Compliance with the LGPD, Brazil's data protection law: lead anonymization, per-company retention and an audit trail.
Infrastructure and deployment
- Zero-downtime deployment on a VPS without an orchestrator: the new version starts next to the old one, migrations run before the switch, and traffic only moves once the container is healthy.
- Continuous backup of the database and files, encrypted and stored off the server, with an automatic restore test. From the back-office, the database can be restored to any minute within the retention window, with an automatic rollback if the switch fails and an alert when the backup stops.
- CI with automatic failover across runner providers, including ephemeral EC2 spot runners on AWS. A job interrupted by AWS runs again on its own.
- AWS infrastructure in Terraform, with plan on the PR, apply on merge, and access through OIDC instead of static keys.
- The same CI, deployment and dependency update standards apply across every company repository.
Platform back-office
Techlithy runs every client from its own back-office, separate from the CRM and open only to the platform team. Every action taken there goes into the affected company's audit log.
- Companies: creation with their admin, usage limits, deactivation with a reason that keeps whatever arrives until reactivation, and entering a company as support, with a banner on screen and an audit record.
- Features and limits: each module is turned on or off per company without a deployment, and changing a default limit shows how many companies it reaches before saving.
- Platform health: CPU, memory, disk with a forecast of when it fills up, services, BullMQ queues and each company's usage, with issues flagged in the menu.
- Backups: the status of continuous shipping, the copies and the restore test, and restoring to any minute within the retention window, with two-step confirmation before touching production.
- AI and external API: the monthly cap on the platform's AI key, companies' requests for more, and external API tokens, with each one's usage and calls.
Quality
- On every pull request: unit and integration tests on the backend, with real Postgres and Redis through Testcontainers and one database per test file, and every migration applied to an empty database.
- Component and business rule tests on the frontend.
- Demo mode that runs entirely in the browser, with mocks that follow the API contract, used in sales demos.
- New features start from written, reviewed business rules, and every architecture decision is recorded in an ADR. That way, new team members find the reasoning behind each choice, and code is reviewed against what was agreed.
Problems it solves
Sales operations
Leads left without a reply
Problem
Leads wait too long or sit forgotten with one agent.
How the system solves it
Automatic distribution among agents and reassignment of stalled leads.
Control and reliability
Updating the system during business hours
Problem
The team talks to leads live and can't stop for an update.
How the system solves it
The new version only gets traffic once it's ready.


