Web Application / 2026
RevenuePilot
A multi-tenant web application that brings lead capture, customer conversations, qualification, pipeline and revenue attribution into one system, so marketing activity can be traced to recorded revenue.
The problem
Leads were lost between marketing and revenue. Advertising platforms reported clicks, the CRM tracked deals and messaging conversations lived in separate tools, so no one could say which campaigns produced customers or where revenue was leaking.
Marketing spend was measured in clicks rather than customers, and there was no single view of a customer across channels.
Product objective
Build one operating system that carries a lead from first capture to recorded, attributed revenue, normalising every channel into the same pipeline and showing the team what to do next.
- Every lead keeps its acquisition source, so spend can be traced to revenue.
- Qualification and scoring are explainable, so hot and cold mean something specific.
- Revenue is recorded independently of deal status, so a stalled deal is not the only thing that counts.
- The product is channel-agnostic and not locked to a single messaging app.
Users and use cases
RevenuePilot is designed for B2B teams that sell through more than one channel and need marketing and sales to work from the same record.
- Marketing teams comparing spend against qualified leads, customers and revenue per campaign.
- Sales representatives working a prioritised pipeline with SLA-based follow-up instead of an unranked list.
- Revenue operations owners maintaining qualification rules, attribution models and automations.
- Owners and administrators managing team access, security posture and subscription usage.
Product architecture
The product is a pnpm monorepo: a Next.js application plus shared internal packages for the database layer, event handling, permissions, shared types, UI and observability. Marketing pages, the authenticated application and an internal platform console are separate route groups on the same deployment.
A versioned REST surface backs the console, organisation management, security, mail campaigns and tracking. Webhooks, connector callbacks and support tickets each have their own routes, and inbound payloads are validated with idempotency keys and replay protection.
- Supabase provides PostgreSQL with row-level security on tenant tables, with a dedicated migrations history covering identity, permissions, the audit log, contacts and leads, pipeline and deals, revenue events, risk and business intelligence.
- A unified inbox brings email, WhatsApp, web chat, SMS and social conversations into one workspace alongside customer context, qualification state and summaries.
- Automations use When/If/Then rules for follow-up, assignment, tagging, stage changes and notifications, with human approval required for material actions.
- The platform console operates users, organisations, roles, subscriptions, usage, integrations, system health, audit, security, support, announcements, feature flags, incidents, AI operations and settings.
Key features
- Normalised lead captureWebsite forms, webhooks, manual entry, CSV and advertising sources land in one lead pipeline, and every lead keeps its acquisition source so attribution survives the first touch.
- Unified inboxEmail, WhatsApp, web chat, SMS and social conversations sit in one workspace with customer context, qualification state and summaries beside them.
- Explainable qualification and scoringConfigurable qualification schemas and transparent lead scoring replace subjective labels with a defensible next action.
- Revenue recorded independently of deal statusRevenue events are stored separately from pipeline stage, with first- and last-touch attribution back to the acquisition source, so performance is measurable even when deals stall.
- Risk engine and rescue signalsA deterministic risk engine surfaces deadlines and revenue leaks, turning neglected follow-up into an alert with a recommended action rather than silent decay.
- Controlled AI with an audit trailAgents act through authorised, organisation-scoped tools, and human, AI, automation and integration actions are recorded with before-and-after state and correlation IDs.
The revenue loop
- 01 / CaptureForms, webhooks, manual entry, CSV
- 02 / IdentifySource preserved on every lead
- 03 / ConverseAll channels, one inbox
- 04 / QualifyConfigurable schemas
- 05 / ScoreExplainable lead scoring
- 06 / AssignOwnership and routing
- 07 / Follow upSLA alerts and next action
- 08 / SellPipeline stages and deal history
- 09 / Record revenueAttributed to acquisition source
How it was built
The build started from the business problem rather than a feature list: define the revenue loop first, then let each screen answer to a step in it.
- Database-first. The schema and its row-level security policies were designed before the interface, so isolation is enforced by the database instead of by filtering in the browser.
- Capabilities instead of scattered checks. Roles grant capabilities, and every route, RPC and workflow action re-checks them server-side.
- A monorepo with shared packages keeps the database client, event contracts, permission model and UI primitives in one place across the app, console and site.
- Security checks sit in the release gate: tenant-isolation, RLS, authorisation and webhook-replay tests must pass before a feature ships.
- Truthful states throughout. Connectors report real health, and analysis returns not enough data rather than a fabricated figure.
Challenges and decisions
A revenue product fails quietly when the numbers cannot be trusted, so the hard requirements were traceability and isolation rather than surface polish.
- Frontend filtering is never treated as authorisation. Every tenant table carries row-level security enforced server-side and in AI tool authorisation.
- Service-role keys, OAuth secrets and provider tokens stay server-side and never reach browser code.
- The analysis layer is required to answer not enough data when evidence is missing, so decision support never invents a metric.
- Material AI actions require human approval, keeping consequential work with a person.
Current status
RevenuePilot is deployed. The marketing site, pricing, security and resources pages are public; the authenticated application, its onboarding flow and the internal platform console are live behind sign-in.
No usage, customer or revenue metrics are claimed here. The product is presented on its shipped functionality.
Delivery status
- CompletePublic marketing site, product, pricing, security and resources
- CompleteAuthentication, sign-up and password reset
- CompleteMulti-tenant schema, migrations and row-level security
- CompleteCapability-based roles and permission auditing
- CompleteLead capture, identity and source tracking
- CompleteUnified inbox across channels
- CompleteQualification schemas and explainable lead scoring
- CompletePipeline, deals, tasks and appointments
- CompleteRevenue events and multi-touch attribution
- CompleteRisk engine and revenue-leak detection
- CompleteAI analysis with evidence requirements
- CompleteAutomations with human approval gates
- CompleteConnectors, webhooks and mail campaign tracking
- CompleteAudit log with before-and-after state and correlation IDs
- CompletePlatform console for users, organisations, roles, flags and incidents
Operations surface
Platform console
A separate, permission-gated console for operating the platform across tenants, support, security and product configuration.
- Modules
- Overview / Users / Organizations / Roles / Subscriptions / Usage / Integrations / System health / Audit log / Security / Support / Announcements / Feature flags / Incidents / AI operations / Settings
- Permission-gated routes with audited actions
- Tenant-scoped operational views
- Platform health, support and feature controls
Reconstructed from verified console routes. No customer data is shown. Billing and AI-cost figures are not configured, so no revenue or usage metrics are claimed.