Skip to content

Backend

Product: products/salesos/

SalesOS Backend Services

SalesOS - Founder-Led Sales System

Status: 🚧 Initialization Priority: #2 in Multi-Product Decomposition Plan Integration: Zoho One (Deep Integration)

Product Overview

SalesOS is an AI-powered sales acceleration platform designed for founders. It bridges the gap between high-level product definition and low-level CRM management by automating the “messy middle” of sales: qualification, outreach, and proposal generation.

Key Capabilities

  1. AI Product Management: Define products, generate pricing, and creating positioning statements.
  2. Intelligent Lead Qualification: Score leads based on 4-dimension fit (Budget, Authority, Need, Time).
  3. Automated Outreach: Generate personalized cold emails and follow-ups.
  4. Proposal Generation: Create dynamic proposals with ROI calculators.
  5. Zoho Integration: Bi-directional sync with Zoho CRM, Desk, and Sites.

Architecture

Database Schema (PostgreSQL)

Database Name: salesos_db

Core Domains

  • Products: Product definitions, pricing tiers, features.
  • Sales: Leads, opportunities, activities, proposals.
  • Intelligence: Lead scores, outreach templates, conversation logs.

Tech Stack

  • Backend: Node.js, Fastify
  • Database: PostgreSQL
  • CRM: Zoho CRM (System of Record)
  • AI: Anthropic Claude & OpenAI

Package Info

FieldValue
Name@salesos/backend
Version1.0.0

Key Dependencies

PackageVersion
@fastify/cors^9.0.1
@fastify/jwt^10.0.0
@fastify/swagger^8.15.0
@fastify/swagger-ui^3.1.0
@opentelemetry/auto-instrumentations-node^0.70.0
@opentelemetry/exporter-trace-otlp-http^0.212.0
@opentelemetry/sdk-node^0.212.0
@sentry/node^10.39.0

Scripts

ScriptCommand
npm run buildtsc
npm run devnodemon src/index.ts
npm run startnode dist/index.js
npm run testvitest run --config vitest.unit.config.ts
npm run test:runvitest run
npm run test:unitvitest run --config vitest.unit.config.ts
npm run test:coveragevitest run --coverage
npm run db:init./database/init-db.sh
npm run db:migrateknex migrate:latest
npm run db:seedknex seed:run