How bhavygandhi125273-sketch/resolveit-ai-incident-intelligence works
ResolveIT is an incident-reporting and IT-service workflow application, with employee and IT-admin access plus a Vapi-powered phone intake channel. Its main flow accepts a report, investigates it, selects a resolution, ticket, or escalation outcome, and records the incident for follow-up. The tree also shows incident dashboards, filtering, and IT actions. Source excerpts confirm API, service, decision, persistence, authentication, and phone-webhook behavior; several UI, workflow, voice, and integration implementations were not sampled, so their internal wiring is not expanded.
Main entry points: service.ts Incident service · workflow.ts Incident workflow · incidents/route.ts Incident API · webhook/route.ts Vapi webhook
Components 23
User access
- Login form
resolveit/src/features/auth/LoginForm.tsx - Login endpoint
resolveit/src/app/api/auth/login/route.ts - Session auth
resolveit/src/server/auth/session.ts
Incident intake
- Incident reporting
resolveit/src/features/incidents/components/IncidentReportingExperience.tsx - Incident API
resolveit/src/app/api/incidents/route.ts - Incident HTTP handlers
resolveit/src/features/incidents/http.ts - Voice report panel
resolveit/src/features/voice/components/VoiceReportPanel.tsx - Vapi webhook
resolveit/src/app/api/vapi/webhook/route.ts - Phone intake handler
resolveit/src/server/phone/vapiWebhook.ts - Vapi provider
resolveit/src/features/voice/providers/vapi.ts
Investigation workflow
- Incident workflow
resolveit/src/server/incidents/workflow.ts - AI investigator
resolveit/src/server/investigation/openAiInvestigator.ts - Decision engine
resolveit/src/features/decisions/engine.ts
IT operations
- Incident service
resolveit/src/features/incidents/service.ts - Incident detail
resolveit/src/app/incidents/[id]/page.tsx - IT update API
resolveit/src/app/api/incidents/[id]/route.ts
Persistence
- Postgres repository
resolveit/src/features/incidents/postgresRepository.ts - Database pool
resolveit/src/server/database/pool.ts - PostgreSQL
Other components
- Employee
- IT staff
- Vapi service
- OpenAI
Connections 30
- Employee → Login form: signs in
- Login form → Login endpoint: submits credentials
- Login endpoint → Database pool: queries users
- Login endpoint → Session auth: creates session
- Employee → Incident reporting: reports issue
- Incident reporting → Incident API: submits report
- Incident API → Session auth: requires session
- Incident API → Incident HTTP handlers: handles request
- Incident API → Incident service: gets service
- Incident API → Incident workflow: runs workflow
- Incident HTTP handlers → Incident service: creates or lists
- Incident workflow → AI investigator: requests investigation
- AI investigator → OpenAI: investigates
- Incident workflow → Decision engine: selects action
- Incident workflow → Incident service: records outcome
- Incident service → Postgres repository: uses repository
- Postgres repository → Database pool: queries database
- Database pool → PostgreSQL: reads and writes
- IT staff → Incident detail: reviews incidents
- Incident detail → IT update API: requests updates
- IT update API → Session auth: requires admin
- IT update API → Incident service: updates incident
- Employee → Voice report panel: reports by voice
- Vapi service → Vapi webhook: sends messages
- Vapi webhook → Phone intake handler: dispatches message
- Vapi webhook → Incident service: provides service
- Vapi webhook → Incident workflow: provides workflow
- Phone intake handler → Vapi provider: uses tool schema
- Phone intake handler → Incident service: creates and updates
- Phone intake handler → Incident workflow: runs workflow