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
- AI Product Management: Define products, generate pricing, and creating positioning statements.
- Intelligent Lead Qualification: Score leads based on 4-dimension fit (Budget, Authority, Need, Time).
- Automated Outreach: Generate personalized cold emails and follow-ups.
- Proposal Generation: Create dynamic proposals with ROI calculators.
- 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
| Field | Value |
|---|---|
| Name | @salesos/backend |
| Version | 1.0.0 |
Key Dependencies
| Package | Version |
|---|---|
@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
| Script | Command |
|---|---|
npm run build | tsc |
npm run dev | nodemon src/index.ts |
npm run start | node dist/index.js |
npm run test | vitest run --config vitest.unit.config.ts |
npm run test:run | vitest run |
npm run test:unit | vitest run --config vitest.unit.config.ts |
npm run test:coverage | vitest run --coverage |
npm run db:init | ./database/init-db.sh |
npm run db:migrate | knex migrate:latest |
npm run db:seed | knex seed:run |