projects / whatsapp-bsp
07/internal product

WhatsApp Messaging Platform (BSP)

ShippedH1 2022

In-house WhatsApp Business Service Provider - campaign management, delivery tracking, webhook handling, and CRM synchronization.

role
Sole developer - backend, WhatsApp API integration, internal tooling
period
H1 2022
status
Shipped
impact
₹70,000/quarter saved · turnaround cut from 7+ days to 2–3 days

The Problem

CareerLabs was paying a third-party WhatsApp Business Service Provider every quarter - per message, per campaign, with no ownership over the data, the delivery pipeline, or the roadmap. The vendor controlled the pricing and the limits.

Beyond cost, the dependency created operational friction: getting a new campaign from content to sent took 7+ days navigating vendor approval processes, template submission queues, and coordination overhead.

The question: could an in-house BSP replace the vendor entirely - and work better?


The Solution

I designed and built a complete WhatsApp Business messaging platform from scratch, integrating directly with the Meta Graph API. It replaced the third-party vendor entirely, gave the marketing and engagement teams a purpose-built interface for campaigns and customer management, and connected natively with CareerLabs' CRM ecosystem.

Annual savings: ~₹70,000/quarter. Content-to-send turnaround: from 7+ days down to 2–3 days.


Key Features

Feature Detail
Template Management Create and manage WhatsApp message templates with dynamic variable parameters; WhatsApp-compliant approval workflow
Bulk Campaign System CSV upload for targeting multiple recipients with personalized messages; campaign scheduling
Delivery & Read Receipts Webhook-based tracking of send, delivery, and read status per message
Campaign Analytics Send/delivery/read rates and cohort data for campaign performance analysis
Customer Response Management Interface for viewing and managing incoming replies to outbound messages
CRM Integration Two-way sync with LeadSquared, Mixpanel, and CleverTap for automated lead nurturing and workflow automation

Technical Architecture

Backend: Node.js · Express.js · REST APIs · Microservices
Frontend: Vue.js · Vuetify
Infrastructure: AWS · Docker · AWS SQS
Integrations: Meta Graph API · WhatsApp Business Cloud API · LeadSquared · Mixpanel · CleverTap · Webhooks

Key Design Decisions

AWS SQS for Async Message Queuing
Bulk campaigns involve thousands of messages in a single run. Synchronous delivery would fail under load and provide no retry capability. AWS SQS queues every message individually - ensuring reliable delivery, handling Meta API rate limits gracefully, and providing automatic retry on transient failures.

Webhook-Based Delivery Tracking
Meta sends delivery and read receipt events via webhooks. The platform registers a webhook endpoint, processes all incoming events, and updates per-message status in real time - giving marketing teams accurate campaign performance data without polling.

CRM Middleware Layer
A dedicated middleware handles bidirectional flow between the BSP and LeadSquared/Mixpanel/CleverTap. When a lead responds to a WhatsApp message, it's automatically logged to their CRM profile. When a lead progresses through a funnel stage, the CRM triggers the next WhatsApp sequence automatically. The manual coordination that previously took days now happens in seconds.

Containerized Architecture
All services are containerized with Docker, enabling consistent environments across development, staging, and production, and horizontal scaling during peak campaign periods.


Development Process

  1. Research & cost analysis - Validated that the Meta Graph API provided everything the vendor was offering; quantified development cost vs. ongoing vendor fees
  2. Core messaging system - Built message delivery engine with direct Meta Graph API integration and AWS SQS queuing
  3. Template management - Created template UI with WhatsApp-compliant approval workflow and dynamic variable support
  4. Campaign system - Built bulk campaign creation with CSV upload, personalized delivery, and scheduling
  5. CRM integration - Connected LeadSquared, Mixpanel, and CleverTap with bidirectional webhook and API flows; built workflow automation

Quantified Impact

Metric Before After
Vendor cost ~₹70,000/quarter ₹0
Content-to-send turnaround 7+ days 2–3 days
Data ownership Vendor-held In-house
CRM automation Manual Fully automated

Impact & Takeaway

This project is a clear example of build vs. buy done right. The third-party vendor was expensive, slow, and opaque. The in-house platform is cheaper, faster, and built exactly for how the CareerLabs team works.

The turnaround improvement - from 7+ days to 2–3 days - wasn't just a cost win. It meant campaigns that were previously impossible to run (time-sensitive offers, rapid response sequences) became routine. That's the kind of operational leverage that internal tooling, done well, can deliver.

Replaced a ₹70,000/quarter vendor with an in-house BSP. Turnaround: 7+ days → 2–3 days. Full CRM automation.


Tags: WhatsApp marketing · business messaging · WhatsApp API integration · SMS marketing · campaign management · messaging platform · marketing automation · WhatsApp Business API