In-house CRM and calling system that replaced LeadSquared
A lead management system with click-to-call and WhatsApp built in, saving ₹20L+ (~$25K) a year in subscription costs.
- Company
- hBits Proptech
- Year
- 2024
- Role
- Senior Software Engineer. Led the module, full stack.
- Domain
- Fintech
- Status
- In production: replaced LeadSquared and ran the sales team's calling
The problem
hBits' sales team ran on LeadSquared, a recurring cost of over ₹20 lakh a year.
Try it
Leads
Lead 4821, Mumbai
New lead
Lead 4822, Bengaluru
New lead
Lead 4823, Pune
New lead
Call synopsis
Each call is transcribed and translated to English as it happens, then saved to the lead with who ended it.
Event log
- Place a call to watch its events come in.
A simulation with sample data, built for this page.
How it works
- 1Lead
- 2Scoring
- 3Click-to-call
- 4Live call status
- 5Live transcript and synopsis
- 6WhatsApp follow-up
Architecture
Sales team
- CRM (Next.js), an independently deployed micro-frontend
- Click-to-call
- WhatsApp chat
Backend
- Node.js API
- PostgreSQL
- Calls placed and call events returned
Telephony and messaging
- Exotel (calls)
- Twilio (WhatsApp Business)
- Call events queued, not handled in the request
Background work
- Redis-backed queues
- Celery workers
What I built
- Lead management: generation, scoring, tracking and analytics in one tool, part of a multi-portal platform on one domain.
- Exotel calling system end to end: click-to-call, call routing and live status, with Redis-backed queues and Celery for call events and background jobs.
- Call synopsis: for every call the CRM records whether the customer or the executive ended it or dropped off, and the conversation is transcribed and translated to English live, then logged against the lead for later review.
- WhatsApp Business chat (Twilio) so relationship managers could follow up with customers without leaving the CRM.
The hard parts
One app among six, deployed on its own
The LMS was one of six portals on a single domain, built as Webpack Module Federation micro-frontends: a host shell plus one remote per portal, sharing authentication, the design system and core utilities. I owned the LMS remote end to end, so it could be developed and deployed independently of the other portals.
Calls at sales-floor volume
The calling system handled about 2,000 calls a day. Call events arrive out of order and in bursts, so they're queued in Redis and processed by Celery workers instead of inside the request.
Outcome
Replaced LeadSquared, saving ₹20L+ (~$25K) a year, and handled around 2,000 calls a day with the sales team.
Stack
- Next.js
- TypeScript
- Node.js
- PostgreSQL
- Redis
- Celery
- Exotel
- Twilio
- Material UI