How bhavya-dhanwani/easysales works
easySales is a multi-tenant AI business-development platform. Teams configure a sales profile, discover and select prospects, research and qualify leads, then authorize outreach under tenant-defined policy; replies, requirements, proposals, and optional demos continue the sales workflow. The React client exposes these capabilities through an API, while a durable worker runs agent workflows and integrations. The README documents several subsystems whose implementation excerpts were not provided; those capabilities are represented at their documented directory level, and evidence limits are reflected in the edges.
Main entry points: agents AI agents and graphs · outbound.service.ts Outbound and outbox · worker.ts Workflow worker · policy.engine.ts Policy engine
Components 27
Client experience
- Web application
client/src/App.tsx - Authentication UI
client/src/pages/Auth.tsx - Session and organization state
client/src/lib/auth.tsx - API client
client/src/lib/api.ts - Sales workspace views
client/src/app
Prospect and sales workflows
- Lead discovery
server/src/shared/discovery - Lead and opportunity APIs
server/src/modules/private/leads - Research and qualification
server/src/shared/research/research.service.ts - AI agents and graphs
server/src/agents - Replies and requirements
server/src/shared/conversations - Outbound and outbox
server/src/shared/outbound/outbound.service.ts - Proposal workflow
server/src/shared/proposals/proposal.service.ts - Demo prototypes
server/src/shared/prototypes
Policy and controls
- Policy engine
server/src/shared/policy/policy.engine.ts - Human approvals
server/src/shared/approvals - Plans and budgets
server/src/shared/billing
Platform services
- HTTP API
server/src/app.ts - Authentication routes
server/src/modules/public/auth/auth.router.ts - Authentication controller
server/src/modules/public/auth/auth.controller.ts - Workflow worker
server/src/jobs/worker.ts - Tenant context and access
server/src/shared/tenancy - MongoDB
server/src/shared/models
Operations and integrations
- CRM and calendar sync
server/src/shared/integrations - Funnel analytics
server/src/shared/analytics/analytics.service.ts - Email delivery and inbox
server/src/providers/email.provider.ts
Other components
- Workspace user
- Search and web sources
Connections 39
- Workspace user → Web application: uses
client/src/App.tsx - Web application → Authentication UI: routes to
client/src/App.tsx - Web application → Sales workspace views: routes to
client/src/App.tsx - Authentication UI → Session and organization state: authenticates through
client/src/pages/Auth.tsx - Session and organization state → API client: calls
client/src/lib/auth.tsx - Sales workspace views → API client: requests data
client/src/app/Research.tsx - API client → HTTP API: sends requests
- HTTP API → Authentication routes: mounts routes
server/src/app.ts - Authentication routes → Authentication controller: dispatches
server/src/modules/public/auth/auth.router.ts - Authentication controller → Tenant context and access: creates workspace
server/src/modules/public/auth/auth.controller.ts - Workspace user → Lead discovery: sets niche and selects leads
README.md - Search and web sources → Lead discovery: provides search results
README.md - Lead and opportunity APIs → Lead discovery: offers lead discovery
README.md - Lead and opportunity APIs → Workflow worker: queues research
README.md - Workflow worker → AI agents and graphs: runs graphs
server/src/jobs/worker.ts - AI agents and graphs → Research and qualification: researches prospects
server/src/shared/research/research.service.ts - Research and qualification → Policy engine: loads policy
server/src/shared/research/research.service.ts - Research and qualification → AI agents and graphs: invokes research agent
server/src/shared/research/research.service.ts - AI agents and graphs → Replies and requirements: handles replies
README.md - Replies and requirements → Outbound and outbox: proposes replies
README.md - Outbound and outbox → Policy engine: checks actions
README.md - Outbound and outbox → Human approvals: requests review
README.md - Human approvals → Outbound and outbox: authorizes sending
README.md - Outbound and outbox → Email delivery and inbox: delivers messages
README.md - Email delivery and inbox → Replies and requirements: returns replies
README.md - Replies and requirements → AI agents and graphs: starts conversation workflow
README.md - AI agents and graphs → Proposal workflow: drafts proposal
README.md - Proposal workflow → Policy engine: checks proposal action
server/src/shared/proposals/proposal.service.ts - Proposal workflow → Human approvals: requires approval
README.md - Proposal workflow → Outbound and outbox: sends approved proposal
README.md - Workflow worker → CRM and calendar sync: runs sync
server/src/jobs/worker.ts - Workspace user → Demo prototypes: requests demo
README.md - Demo prototypes → Policy engine: checks build eligibility
README.md - Demo prototypes → Human approvals: routes for review
README.md - Workflow worker → Funnel analytics: records workflow outcomes
README.md - Policy engine → Plans and budgets: applies budget limits
README.md - HTTP API → Tenant context and access: resolves tenant access
README.md - Workflow worker → MongoDB: persists workflow state
README.md - Tenant context and access → MongoDB: scopes tenant data
README.md