ProjectsSoftware & AI

Staff & Customer Portal CRM

The first-generation CRM: dual login for staff and leads, webhook automation, and status-driven email sequences.

Result
Replaced manual lead tracking
Context
Internal tool · solo build
Year
2026
Area
Software & AI

01The problem

Leads from forms and registrations arrived in different places and had to be copied and chased by hand.

02What I did

Built a PHP/MySQL CRM with separate staff and customer portals, webhooks that capture form submissions automatically, duplicate detection, colour-coded lead status, automatic follow-up dates, and email sequences triggered by status changes.

03What it did

This was the first CRM, written in PHP on a standard shared host. Staff could import leads from CSV, sort them by show, priority and date, see the funnel and revenue by source, and spot where activity was stalling. A unified inbox pulled each person's email in over IMAP every five minutes and sent SMS and WhatsApp through Twilio, with credentials encrypted at rest. It even had an AI search, built on Google's Gemini, that answered questions using the dashboard's own numbers. Around 46 actions ran behind the dashboard.

04Knowing when to cut

The custom spreadsheet grid I had written was the most fragile part. Replacing it with embedded Google Sheets the team already used removed over 2,000 lines of JavaScript and took the dashboard file from 4,915 lines to 1,166. A migration script also cleaned the legacy free-text statuses into a fixed set, so "happy to proceed" and its variations all became "quotation sent".

Running it day to day showed the limits of one very large dashboard file and a fixed schema, and those lessons shaped the Node.js CRM that replaced it.

05The outcome

Leads were captured and followed up automatically, and the lessons shaped the architecture of the later Node.js CRM.

06Tools & skills

  • PHP
  • MySQL
  • Webhooks
  • Email Automation
  • CRM Design
Prateek Sahni

Thanks for reading. Want to talk?

Hiring?

I'm open to new roles across engineering, software and AI. I'm happy to walk you through this project in more detail, or send my CV.

Book a 30-minute call Request my CV

Need something like this built?

Tell me what you're working on in a few lines. No brief or deck needed, and you'll get an honest answer on whether I'm the right person for it.

Tell me about itMessage me on LinkedIn