Engineering a WhatsApp co-pilot for 250+ account managers and a network of 100,000+ sellers: 17 million messages processed, 28% faster replies among platform users, and nearly 10× faster responses among our most active users.
It’s 9:30 on a Monday. An account manager picks up their phone.
By evening, 35 different sellers will have messaged them on WhatsApp. 402 messages in one day. A shipment stuck in transit. A COD payment that hasn’t arrived. “Any update?” “Pls check.” “Sir, urgent.”
Every one of those messages comes from a business owner. And every message that goes unanswered is a small push towards a question no one wants a seller to ask: is this platform still worth it?
That day is real. It’s the busiest day we recorded in the last month. Here’s what a normal month looks like.
The problem, in numbers
At Shiprocket, our account managers talk to sellers on WhatsApp, from their own business numbers. It’s where the relationship lives. Over the last 30 days:
| Account managers and team leads onboarded | 250+ |
|---|---|
| Active in the last 30 days | 158 |
| Seller companies in our account managers’ WhatsApp network | 100,000+ |
| Sellers spoken to since March | 58,000+ |
| Sellers spoken to in the last 30 days | 15,000+ |
| Messages a month | ~1.5 million |
| Seller messages per account manager, typical weekday | 57 |
| Days with 100+ seller messages | 1 in 4 |
| Busiest single day | 402 messages from 35 sellers |
| Median time to first reply | 20 minutes |
| Sellers who messaged and got no reply that day | 1 in 5 |
That last number is the one that matters.
One in five sellers who reached out heard nothing back that day. That doesn’t mean our account managers don’t care. It means one person cannot hold 20 conversations at once, every day, on a phone. Nobody notices the seller who went quiet. They just drift away.
Churn rarely starts with a complaint. It starts with an unanswered “any update?”.
What we set out to build
We didn’t want another dashboard nobody opens. We wanted to answer three questions, in order:
See: where is the pressure?
For the first time, managers can see what their team’s WhatsApp actually looks like:
- Who is overloaded: messages, sellers and reply volume per account manager, every day.
- How fast we respond: first-reply time per person and per seller.
- Who we’re missing: assigned sellers nobody has spoken to in weeks.
Predict: which sellers are at risk?
Not every message is equal. A seller who has asked three times about a stuck remittance is not the same as one saying “thanks”. We combine silence (how long a seller has been waiting) with sentiment (whether they’re frustrated) into one list: the chats waiting on you, most urgent first.
The order matters. Waiting time is the primary signal: the longer a seller has waited, the higher they rank. Sentiment only boosts that score, and the boost scales with the model’s confidence, so an uncertain “negative” can’t push a fresh message above a seller who has waited for hours.
Act: reply for them
Account managers can reply to sellers from the same screen, from their own business number, and we’re adding AI-drafted replies that use the order and shipment data the seller is asking about. The routine “where is my shipment?” gets answered in seconds, so the account manager’s time goes to the conversations that need a person.
What changed
We’re still early: a growing group of account managers handle their sellers through the platform today. Their numbers already tell the story.

| Median time to first reply, last 30 days | |
|---|---|
| Account managers not yet using the platform | 20 minutes |
| Account managers replying through the platform | 14.5 minutes (28% faster) |
| Our most active users | about 2 minutes |
For our most active users, even the slowest 10% of first replies arrive within 42 minutes. For everyone else, that slowest 10% takes over 3 hours.
If every account manager replied the way our early adopters do, a seller’s typical wait would drop from 20 minutes to under 15, across a network of 100,000+ sellers and 1.5 million messages a month. Our most active users show how much further it can go.
A fair caveat: this compares account managers who chose the platform with those who haven’t yet, and early adopters may simply be different. Our most active users also handle lighter loads (a median of 17 seller messages a day against 63). The direction is clear; a like-for-like comparison is the next thing we’re measuring.
Managers got something they never had: visibility. Team leads can see each account manager’s coverage, which sellers are waiting on whom, and how fast their team responds, without asking anyone for a status update. In the first two months after the rollup went live, the share of sellers left without a same-day reply fell from 27% to 19%.
Measured as the share of seller-days on weekdays where a seller messaged and their account manager sent no reply the same day: March against May 2026.
Under the hood
Behind a simple “waiting on you” list is a system that never sleeps: always connected, always listening, analysing every conversation as it happens.

| The engineering, by the numbers | |
|---|---|
| WhatsApp accounts held open, 24×7, by a single pod | 146 |
| Messages stored | 17.2 million, growing by ~1.5 million a month |
| From a seller hitting send to the message in our database | under 1 second (median) |
| Messages saved within 5 minutes | 97.6% |
| Conversations analysed for sentiment | 1.29 million |
| Daily productivity rows rolled up per account manager and seller | 400,000+ |
| Log lines a day the system produces, searchable | ~8 million |
| API pods that scaled up, down or redeployed in 30 days | 70, with zero dropped connections |
| Session-takeover events, last 7 days | 0 |
Two notes on those numbers. 17.2 million includes chat history imported when an account first connects, and live volume has grown from about 850,000 to about 1.5 million messages a month over the past year. The 2.4% of messages saved after five minutes are mostly that same older history arriving on first connection, not live messages running late.
A few decisions made that possible:
- Stateful and stateless, separated. One pod holds every live WhatsApp connection; an autoscaling tier serves everything else. Each side scales, deploys and fails on its own terms.
- Fail closed, everywhere. A misread config flag, an unreachable pod, a model that’s down: each one returns an honest “not now”, never a silent success that did nothing.
- Fail fast for broken sessions. A disconnected account used to make every send wait 8 seconds before failing, hundreds of times a day. Now the second attempt fails instantly, and the moment the account reconnects, everything flows again.
- Numbers computed overnight, not on page load. A nightly job rolls every account manager’s day into one row per seller, so a manager’s view of the whole team loads in a blink instead of scanning millions of messages.
- A simple, indexed data layer. Messages live in MongoDB, indexed by chat and time and by account manager; WhatsApp session keys live in Postgres; productivity numbers come from a nightly rollup. Every hot query hits an index.
- Measured, not guessed. Every live endpoint has an automated regression check, the core insight logic is covered by tests (94.7% on the sentiment input cleaner), and AI changes go through a labelled evaluation before they ship.
- Security as a feature. Account managers see only their own chats, team leads see only their team’s, and admin actions are written to an audit log. We closed every finding from an internal security audit, removed hard-coded credentials, and stopped requests from being rerouted after authentication.
- Efficient by default. The whole platform runs on ARM-based (Graviton) nodes.
Chapter 1: Our servers looked like intruders to WhatsApp
Each account manager connects their WhatsApp to our platform once. Our service then keeps a long-lived connection open for each account, so new messages reach the platform in under a second.
When traffic grew, we scaled the service to two pods. Each pod restored every account’s connection on startup. So each account manager suddenly had two live connections, one from each pod.
WhatsApp allows only one active connection per session, so the pods spent all day replacing each other:
- a constant stream of “session replaced” events
- the same account flipping between pods within seconds
- one pod reconnecting 19 accounts in 1.3 seconds
An account whose session keeps getting taken over looks like a security problem, and WhatsApp is right to protect accounts that look compromised. For an account manager, losing their number means losing their sellers.
We first tried leader election with a Postgres advisory lock. Then we tested what happens when the leader is killed hard. The lock stayed held for over 150 seconds: a killed container never closes its connection, so Postgres keeps the lock until TCP keepalive gives up, which is about two hours by default. One bad crash could have disconnected every account manager for up to two hours.
So we split the work instead:
- One connection pod owns every WhatsApp connection. It runs one replica, and deploys stop the old pod before starting the new one. There’s always exactly one owner, with no election.
- An autoscaling API tier owns no connections. It reads straight from the database and forwards the few live actions, like sending a message, to the connection pod.
- It fails closed. A typo in the config makes a pod a non-owner, never a second owner. If the connection pod is unreachable, users get a clear error, never a silent “sent” that went nowhere.
Today, in production:
| Accounts on one connection pod | 146, with 143 connected |
|---|---|
| Session-takeover events in the last 7 days | 0 |
| API pods started and stopped in 30 days | 70, without disturbing a single account |
| Messages saved within 5 minutes of delivery | 97.6% (median: under a second) |
The trade-off we accepted. One connection pod is, by design, a single owner, and therefore a single point of failure. If it dies, Kubernetes starts a replacement, and every account’s session is restored from Postgres without the account manager re-linking their phone. Until then, reads keep working from the database, and sends fail with a clear error rather than vanishing. In the last 30 days that pod restarted once, across three releases. We chose a few seconds of reconnection over a constant fight between two owners; how we take it further without reintroducing that fight is the next problem.
Lesson: never scale stateful connections together with a stateless API. Split them by responsibility.
Chapter 2: Our AI was confident, and wrong
The “waiting on you” list uses sentiment as a boost: a NEGATIVE chat moves up the queue. Account managers told us the list felt off, so we read 500 chats the model had labelled NEGATIVE:
| What the chat really was | Share |
|---|---|
| Routine, no real signal | 46.8% |
| Polite chasers (“pls update”, “any status?”) | 21.2% |
| A genuine complaint | 21.0% |
| Mixed | 10.6% |
Only about 1 in 5 was a real complaint, and 98% of those labels came with confidence of 0.7 or higher. The model wasn’t unsure. It was sure, and wrong.
That audit is our baseline: precision of roughly 21–32% on the NEGATIVE label, depending on how you count mixed chats. It also taught us that a confidence score isn’t calibrated: 0.7 doesn’t mean “right 70% of the time”.
The causes were ours, not the model’s:
- We fed it the account manager’s replies too, so it judged the whole conversation, not the seller.
- Logistics words sound angry. “Refund”, “delay” and “escalate” are everyday vocabulary in a status check.
- Our code disagreed with our prompt about where “neutral” ends.
The fixes were boring:
- Send only the seller’s messages, without media placeholders, tracking numbers or one-word replies.
- Align the alert threshold with the prompt’s own definition of a strong negative.
- Scale urgency by confidence.
- When the model is unreachable, say “neutral, low confidence” instead of guessing “negative”.
Next, a rewritten prompt ships only when a labelled evaluation shows precision up 15 points without recall falling more than 10. No more “it feels better”. The same labelled set will measure recall for the first time, which the original audit couldn’t.
Lesson: most LLM problems are input problems, and a confidence score is not a correctness score.
Why this matters
When we started, the only way to know whether a seller was being looked after was to ask the account manager, who was too busy replying to answer.
Now we can see it: 57 messages on a normal day, 402 on the worst. And we can see what changes when account managers work through the platform: replies 28% faster, and about 2 minutes for our most active users.
The goal isn’t to replace account managers. It’s to make sure no seller who reaches out is left waiting, by taking the routine replies off their plate so their time goes to the sellers who need a person.
If you’re building AI on top of WhatsApp, or you manage a team drowning in messages, I’d love to hear how you’re handling it.