Fig. 1 · Vision, the core everything runs on

EDGE · 26PVISION · CORE BOARDAIRTRIBE · 13 SYSTEMSU2 POSTGRESQLU3 LLM CO-PROCESSORU4 DASHBOARDSU5 AI CALL GRADINGU6 SLACKU7 PAYMENTSU8 SUPPORT DESKU9 CAREER SERVICESU10 EMAILU11 LEAD ROUTINGU12 SESSIONS · LXDU13 WHATSAPP AI AGENTU14 BULLMQ · REDISPOSTGRESQL · 316 TABLESWAL · INDEX · ROWS316 TABLESQ 1–19Q 20–38Q 39–57REDISWORKERS57 QUEUESLLM10B+ TOKENS12+ AI TASKSTOKENSFORMAI AGENTTRIGGERLEADS · PAIDSUMMARY TABLESLIVELIVE SESSION · LXDSCHEDULEVISIONCORE · 1.4M ACTIONS / MOFASTIFY · POSTGRES · BULLMQJTAGREC · CALLTRANSCRIBE · 1.5×102025151020GRADE · 6700,012WORKFLOW RUNS · 52K / MO#ALERTS · THREADSRAZORPAYWEBHOOK123INSTALLMENTSACCESS₹42 CR+ SALES · 2026795,020EMAILS/ MONTHOUTBOUNDINBOXP1 · P2 · P3I/O CONTROLLERJOBSPARTNERSCR2032 · RTC
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

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.

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.

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.

Payments that close themselves

Installments verified against Razorpay.

When the last part clears, course access unlocks with no one checking.

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 that triages itself

Requests tagged by category and urgency.

Email and WhatsApp land in one inbox, with an average resolution of 49 hours.

Dashboards in milliseconds

Trigger-maintained summary tables.

Talk time and activity counts are read from one row, not summed from millions.

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.

Sales

vision.airtribe.live/sales/#workflows/call-scheduled
Vision dashboard, Workflow builderVision dashboard, Routing graphVision dashboard, AutomationsVision dashboard, Call recordingsVision dashboard, AI call notesVision dashboard, Calls scheduled
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
Vision dashboard, InstallmentsVision dashboard, Invoices
Installments. Fee, installments and gateway status in one place. Each part is verified against Razorpay automatically.

Every other team

vision.airtribe.live/#support/home
Vision dashboard, Support dashboardVision dashboard, Support inboxVision dashboard, WhatsApp ticketsVision dashboard, Job listingsVision dashboard, Hiring partnersVision dashboard, SessionsVision dashboard, MentorshipVision dashboard, Permissions
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.

  • Lead routing
  • Payments sync
  • Automated workflows
  • AI call grading
  • WhatsApp agents
  • MCP server