Vision is the core of Airtribe’s operations: about 1.4M actions a month flow out of it to thirteen systems, from lead routing and AI call grading to payments, queues and a 316-table Postgres, and back.
Vision
Looks Like a CRM. Runs the Whole Company.
2024–now · Main backend owner · Airtribe
daily users
120
across 5 teams
sales registered
₹42 Cr+
in 2026
workflow runs
700K+
52K a month now
LLM tokens
10B+
12+ AI tasks in prod
Built most of Airtribe's CRM backend, where sales, ops, finance, career services and HR all work. It logs 1.4M actions a month, sends 795K emails a month and registered ₹42 Cr+ in sales in 2026, with AI doing the busywork.
By the numbers
1.4M
actions a month
every click and call, logged
795K
emails a month
sent by workflows
389K+
leads
in the system
281K+
opportunities
tracked end to end
48K+
payments
reconciled with Razorpay
1,140
API endpoints
one Fastify backend
57
background queues
BullMQ on Redis
520
commits
mine, since Sep 2024
Objective
Sales, ops, finance, career services and HR were running on sheets, inboxes and separate tools. Leads went to whoever saw them first. Payments were checked by hand. Nobody knew what a rep had promised on a call until a learner complained.
01
Every lead to the right rep, instantly
Routing that ops can change themselves, without waiting for a deploy.
02
Payments that confirm themselves
Gateway status, installments and course access, synced without anyone checking.
03
AI does the busywork
Call notes, grading and follow-ups written by AI, not typed by reps.
04
One system for five teams
120 people a day work in it, so it has to be fast and never lose an action.
Approach
One Fastify backend on PostgreSQL, with BullMQ queues on Redis for anything slow. Every team gets its own workspace on top of the same data, and AI jobs run in the background so nobody waits on them.
01 · workflows
A visual workflow engine
Ops draw routing as a graph: triggers, conditions and round-robin nodes with weights and working-hours rules. Each workflow is versioned. It has run 700K+ times, about 52K a month now.
02 · payments
Payments that sync themselves
Razorpay webhooks update the opportunity, split fees into installments, verify each part and unlock course access. Each payment's whole life plays out in one Slack thread.
03 · ai
12+ AI tasks in production
Every sales call is transcribed and graded against a weighted rubric. WhatsApp agents re-engage cold leads and fill the CRM while they chat. Over 10B LLM tokens so far.
04 · speed
Dashboards that stay fast
Heavy aggregations moved into summary tables kept current by PostgreSQL triggers, so dashboards read one indexed row instead of millions.
Features
queue empty
Priya Shah
PM · Meta ads
Arjun Mehta
Analytics · Google
Sana Qureshi
PM · referral
working hours?
sales pool · round-robintoday
Ananya R.×3+112
Karan S.×2+19
Meera J.×2+18
Rohit P.×1+14
Leads routed in seconds
Round robin with weights and working hours.
Ops change who gets what by editing a graph, not by asking an engineer.
call 8812 · 12:48--/100
greeting10%9
needs20%7
problem-solving25%8
communication15%8
engagement10%6
closure20%5
overpromise: placement guarantee
Every call graded by AI
Transcribed, then scored on six weighted categories.
Overpromises like guaranteed placements are flagged to the rep's manager in Slack.
whatsapp
What do you do?
I'm Rahul, backend at a fintech for 3 years
System design
lead form
nameRahul
current_roleBackend · fintech
experience3 years
courseSystem Design
handed to rep · Ananya R.
A WhatsApp agent that fills the CRM
It chats with cold leads and collects their details.
It stands down the moment a human rep replies.
order AT-2291₹85,000
1/2₹3,000verifiedpaid
2/2₹82,000verifieddue
razorpaypayment.captured
Course access
Locked until fully paid
Payments that close themselves
Installments verified against Razorpay.
When the last part clears, course access unlocks with no one checking.
# paymentsthread
V
Visionapp10:42
Payment initiated · ₹1,25,000
Sneha Iyer · Data Analytics
Vpayment.captured10:44
payment.capturedretryskipped
1 replydedup by event id
One thread per payment
Initiated, captured or failed, all in one Slack thread.
Webhooks are de-duplicated by event id, so nobody sees a payment twice.
support inboxauto-triage
Refund for my second installment?2m
Refundlow
Can't join tonight's live session1m
Sessionhigh
Move me to the March batchnow
Enrollmentlow
avg resolution49h
Support that triages itself
Requests tagged by category and urgency.
Email and WhatsApp land in one inbox, with an average resolution of 49 hours.
total talk time4.2s38ms
1,284h 36m
M
T
W
T
F
S
S
from calls
trigger-backed summary table
Dashboards in milliseconds
Trigger-maintained summary tables.
Talk time and activity counts are read from one row, not summed from millions.
SalesSupportFinanceCareer servicesLXD
menu4 of 8
Leads
Calls
Payments
Refunds
Tickets
Placements
Courses
Reports
role-based120 daily users
Five teams, one system
Sales, support, finance, career services and LXD.
Permission groups decide what each team sees, on the same data.
Inside Vision
Real screens from a local copy of the app, not production.
Workflow builder. Ops build routing without code: a condition fans out to round-robin nodes, each with its own members, weights and working-hours rule.
Money
vision.airtribe.live/finance/#opportunity/payment
Installments. Fee, installments and gateway status in one place. Each part is verified against Razorpay automatically.
Every other team
vision.airtribe.live/#support/home
Support dashboard. Every learner request, broken down by category and urgency, with open, resolved and average resolution time.
Issues faced
01issue
Transcription can't block the call log
Calls take minutes to transcribe, and the request that logs a call can't wait for that. The summary also depends on the transcript, so two stages had to run in order without holding anything open.
fix
Two BullMQ jobs: transcribe, then summarize. The summary worker handles a missing transcript gracefully and retries, so a slow upload never loses a grade.
02issue
GPT kept inventing evidence
Early grading prompts returned inconsistent keys, made-up transcript quotes and scores for things they were told to ignore. A grade nobody trusts is worse than no grade.
fix
Detailed example outputs inside the prompt, temperature: 0, and a fixed JSON shape. It took three rounds of prompt changes before the scores stayed stable.
03issue
Cheaper audio broke the timestamps
Transcribing at 1.5× speed cut API cost by about a third, but every timestamp came back wrong for playback against the real recording.
fix
A small utility rewrites every WebVTT timestamp by the speed factor, so the transcript lines up with the original audio, even in hour-long calls.
04issue
The AI argued with our own reps
When a rep replied to a lead on WhatsApp, the AI agent sometimes replied too, because the check ran after the message was already queued.
fix
The operator check moved to the webhook, before anything is queued. If a human sent it, the AI never sees it.
05issue
Payment events arrive twice, or hours late
Razorpay delivers webhooks at least once, and a capture can arrive hours after the payment started, long after any cache entry is gone.
fix
Event ids are de-duplicated in Redis, and each payment's Slack thread id is stored in Postgres, so a late event still lands in the right thread.
06issue
Dashboards summed millions of rows
The team dashboard recomputed talk time and activity counts from the full call log on every load, and got slower every week.
fix
Summary tables kept current by PL/pgSQL triggers, backfilled 50K rows at a time with no table locks, so it ran alongside live traffic.