How thanhhbinh023/presaleee works
Presaleee is an AI-assisted presales and proposal platform: staff use a web workspace to manage clients, leads, discovery meetings, knowledge, and proposals; the API applies business workflows and persists organization-scoped data. Its documented discovery flow includes transcript intake, meeting lifecycle management, AI inspection, gap analysis, and follow-up questions carried into later meetings. The AI engine is an optional Python service, with backend fallback capability. Some connections below are documented at product level; unsampled implementation links are omitted or marked unverified.
Main entry points: App.tsx Web application · apiClient.ts API client · RAGController.ts Knowledge endpoints · IngestDocumentUseCase.ts Document ingestion
Components 22
Staff workspace
- Web application
frontend/src/App.tsx - Session and access
frontend/src/hooks/useAuth.tsx - Client directory
frontend/src/components/ClientsDirectory.tsx - Discovery workspace
frontend/src/components/AIWorkspace.tsx - Proposal studio
frontend/src/components/ProposalsStudio.tsx - API client
frontend/src/services/apiClient.ts
Business API
- HTTP routes
backend/src/presentation/routes/index.ts - Authentication
backend/src/application/services/AuthTokenService.ts - Client and lead workflows
backend/src/application/use-cases/LeadUseCases.ts - Meeting lifecycle
backend/src/application/use-cases/MeetingUseCases.ts - Proposal endpoints
backend/src/presentation/controllers/ProposalController.ts - Proposal generation
backend/src/application/use-cases/GenerateProposalUseCase.ts - Knowledge endpoints
backend/src/presentation/controllers/RAGController.ts - Document ingestion
backend/src/application/use-cases/IngestDocumentUseCase.ts - Hybrid knowledge search
backend/src/application/use-cases/SearchHybridRAGUseCase.ts
AI capabilities
- Python AI engine
ai/server.py - AI gateways
backend/src/infrastructure/ai/FastAPILMGateway.ts
Persistence and integrations
- PostgreSQL and vectors
backend/src/infrastructure/database/connection.ts - Persistence adapters
backend/src/infrastructure/database/repositories - Proposal exports
backend/src/infrastructure/services/ExcelProposalExporterService.ts
Other components
- Presales staff
- Meeting transcript sources
Connections 22
- Presales staff → Web application: uses
README.md - Web application → Session and access: manages session
frontend/src/App.tsx - Web application → Client directory: opens directory
frontend/src/App.tsx - Web application → Discovery workspace: opens workspace
frontend/src/App.tsx - Web application → Proposal studio: opens studio
frontend/src/App.tsx - Client directory → API client: requests data
frontend/src/components/ClientsDirectory.tsx - Session and access → API client: calls API
frontend/src/hooks/useAuth.tsx - Web application → API client: uses API
README.md - API client → HTTP routes: sends requests
README.md - HTTP routes → Authentication: guards sessions
- Meeting transcript sources → Meeting lifecycle: provides transcripts
README.md - Meeting lifecycle → AI gateways: requests inspection
README.md - Knowledge endpoints → Document ingestion: invokes ingestion
backend/src/presentation/controllers/RAGController.ts - Knowledge endpoints → Hybrid knowledge search: invokes search
backend/src/presentation/controllers/RAGController.ts - Knowledge endpoints → Proposal generation: invokes generation
backend/src/presentation/controllers/RAGController.ts - Document ingestion → Persistence adapters: writes documents
backend/src/application/use-cases/IngestDocumentUseCase.ts - Document ingestion → AI gateways: creates embeddings
backend/src/application/use-cases/IngestDocumentUseCase.ts - Hybrid knowledge search → Persistence adapters: searches knowledge
backend/src/application/use-cases/SearchHybridRAGUseCase.ts - Proposal endpoints → Proposal generation: dispatches generation
backend/src/presentation/controllers/ProposalController.ts - Proposal endpoints → Proposal exports: dispatches exports
backend/src/presentation/controllers/ProposalController.ts - AI gateways → Python AI engine: calls engine
README.md - Persistence adapters → PostgreSQL and vectors: persists records
README.md