How nagavardhini22/careerpilot-ai-agent works
CareerPilot is a web-based AI career agent. Users authenticate, build a candidate profile, discover and save jobs, then request compatibility analysis and interview preparation; the agent plans controlled tool calls and returns a data-grounded synthesis. The graph preserves the documented profile, job-search, analysis, application-history, dashboard, and audit capabilities. Several routes and services were not excerpted, so uncertain connections are omitted; README-documented agent and tool relationships are cited to the README.
Main entry points: server.js Express server · db.js MySQL data store · app.js Career workspace · jobRoutes.js Job routes
Components 28
User interface
- Career workspace
frontend/js/app.js - Browser API client
frontend/js/api.js - Interface rendering
frontend/js/ui.js - Agent timeline
frontend/js/agent.js
API and identity
- Express server
backend/server.js - Auth routes
backend/routes/authRoutes.js - Auth controller
backend/controllers/authController.js - Identity service
backend/services/authService.js - Session security
backend/middleware/authMiddleware.js
Career workflows
- Profile routes
backend/routes/profileRoutes.js - Profile builder
backend/services/profileService.js - Job routes
backend/routes/jobRoutes.js - Saved jobs
backend/controllers/jobController.js - Job discovery API
backend/controllers/jobSearchController.js - Job aggregator
backend/services/jobProviders/jobAggregatorService.js - Job-board providers
backend/services/jobProviders - Analysis and activity routes
backend/routes/analysisRoutes.js - Dashboard and history
backend/controllers/analysisController.js
Agent reasoning
- Agent routes
backend/routes/agentRoutes.js - Agent endpoint
backend/controllers/agentController.js - Agent orchestrator
backend/services/agentService.js - LLM planner
backend/services/llmService.js - Tool registry
backend/tools/index.js - Career analysis tools
backend/tools
Persistence
- MySQL data store
backend/config/db.js
Other components
- CareerPilot user
- External job boards
- LLM provider APIs
Connections 31
- CareerPilot user → Career workspace: uses
- Career workspace → Browser API client: requests
frontend/js/app.js - Career workspace → Interface rendering: renders
- Career workspace → Agent timeline: shows activity
- Browser API client → Express server: calls API
- Express server → Auth routes: mounts
backend/server.js - Express server → Profile routes: mounts
backend/server.js - Express server → Job routes: mounts
backend/server.js - Express server → Analysis and activity routes: mounts
backend/server.js - Express server → Agent routes: mounts
backend/server.js - Auth routes → Auth controller: routes to
backend/routes/authRoutes.js - Auth controller → Identity service: delegates
backend/controllers/authController.js - Session security → Identity service: verifies sessions
backend/middleware/authMiddleware.js - Profile routes → Profile builder: routes to
- Job routes → Saved jobs: routes to
backend/routes/jobRoutes.js - Job routes → Job discovery API: routes to
backend/routes/jobRoutes.js - Job discovery API → Job aggregator: delegates
backend/controllers/jobSearchController.js - Job aggregator → Job-board providers: queries providers
backend/services/jobProviders/jobAggregatorService.js - Analysis and activity routes → Dashboard and history: routes to
backend/routes/analysisRoutes.js - Agent routes → Agent endpoint: routes to
backend/routes/agentRoutes.js - Agent endpoint → Agent orchestrator: delegates
backend/controllers/agentController.js - Agent orchestrator → LLM planner: requests plans
backend/services/agentService.js - LLM planner → LLM provider APIs: calls provider
- Agent orchestrator → Tool registry: dispatches tools
backend/services/agentService.js - Tool registry → Career analysis tools: executes
backend/tools/index.js - Career analysis tools → MySQL data store: reads and writes
backend/tools/generateInterviewQuestions.js - Job aggregator → MySQL data store: saves jobs
backend/services/jobProviders/jobAggregatorService.js - Job-board providers → External job boards: searches
- Identity service → MySQL data store: stores accounts
backend/services/authService.js - Profile builder → MySQL data store: stores profiles
backend/services/profileService.js - Dashboard and history → MySQL data store: queries history
backend/controllers/analysisController.js