How ashishgoyal197/recruitment-app works
Purpose and Entry Points
This repository implements an AI-assisted recruitment workflow: resume intake, candidate analysis, communication, and interview coordination. The deployable architecture is split into a Python backend and React frontend, with container orchestration in docker-compose.yml. Primary runtime entry points are backend/main.py and frontend/src/index.tsx; the original agent workflow is defined in backend/ai_recruitment_agent_team.py.
Backend API and Agent Orchestration
The backend exposes the application service layer from backend/main.py. Recruitment-domain orchestration and specialized AI-agent behavior live in backend/ai_recruitment_agent_team.py, which is the likely boundary for resume analysis, candidate assessment, email communication, and scheduling actions. backend/role.json supplies backend role-oriented data/configuration.
Candidate Persistence Boundary
Candidate or recruitment records are persisted through the Cosmos DB adapter at backend/db/RecruitmentCosmosDb.py. This isolates application logic from Azure Cosmos DB access and is the main durable-state boundary between agent/API processing and stored candidate data.
Frontend Application Shell
The browser client is a TypeScript React application rooted at frontend/src/index.tsx and composed through frontend/src/App.tsx. It provides the operator-facing recruitment workflow rather than relying on the README’s older Streamlit-only entry point. Container serving is configured by frontend/Dockerfile and frontend/nginx.conf.
Recruitment Workflow UI
The frontend organizes key stages as dedicated components: recruitment setup in frontend/src/components/ConfigurationForm.tsx, individual and batch document intake in frontend/src/components/ResumeUploader.tsx and frontend/src/components/BatchResumeUploader.tsx, candidate browsing in frontend/src/components/CandidateList.tsx, and model/workflow output presentation in frontend/src/components/AnalysisResult.tsx. Document review is separated into PDF and Word viewers.
Client Data and Authentication Boundaries
Frontend-to-backend communication is centralized in frontend/src/services/api.ts; recruitment state and operations are coordinated through frontend/src/hooks/useRecruitment.ts. Authentication configuration and session-facing behavior are isolated in frontend/src/authConfig.ts and frontend/src/hooks/useAuth.ts, separating identity concerns from recruitment processing.
External Services and Deployment
The stated workflow depends on OpenAI GPT-4o, Zoom’s Server-to-Server OAuth APIs, and Gmail via Phidata EmailTools; PDF parsing uses PyPDF2 and scheduling requires timezone handling. Azure Cosmos DB is represented in the backend persistence layer. Dockerized backend and frontend images are defined in backend/Dockerfile and frontend/Dockerfile, coordinated by docker-compose.yml.
Main entry points: ai_recruitment_agent_team.py Recruitment agent team · App.tsx Application shell · main.py Backend API · docker-compose.yml Docker Compose
Components 19
React frontend
Operator-facing recruitment workflow.
- Frontend container · Builds and serves the browser client.
frontend/Dockerfile - Nginx · Serves the compiled frontend.
frontend/nginx.conf - React entry
frontend/src/index.tsx - Application shell
frontend/src/App.tsx - Recruitment state · Coordinates recruitment state and operations.
frontend/src/hooks/useRecruitment.ts - API client · Centralizes frontend-to-backend communication.
frontend/src/services/api.ts - Authentication · Separates session behavior from recruitment processing.
frontend/src/authConfig.ts - Recruitment workflow UI · Setup, resume intake, candidate browsing, and analysis output.
frontend/src/components/ConfigurationForm.tsx
Python backend
API, agent orchestration, and persistence access.
- Backend container · Packages the Python application service.
backend/Dockerfile - Backend API · Application service entry point.
backend/main.py - Recruitment agent team · Runs analysis, assessment, communication, and scheduling workflows.
backend/ai_recruitment_agent_team.py - Role data
backend/role.json - Cosmos DB adapter · Isolates recruitment records from Cosmos DB access.
backend/db/RecruitmentCosmosDb.py
External services
AI, communication, scheduling, identity, and durable storage.
- Azure Cosmos DB · Durable candidate and recruitment records.
- OpenAI GPT-4o
- Gmail · Used through Phidata EmailTools.
- Zoom APIs · Uses Server-to-Server OAuth APIs.
- Identity provider
Other components
- Docker Compose · Coordinates frontend and backend containers.
docker-compose.yml
Connections 19
- Docker Compose → Frontend container: builds and runs
- Docker Compose → Backend container: builds and runs
- Frontend container → Nginx: configures
- Nginx → React entry: serves
- React entry → Application shell: mounts
- Application shell → Recruitment workflow UI: composes
- Application shell → Recruitment state: uses
- Application shell → Authentication: uses
- Recruitment state → API client: calls
- Authentication → Identity provider: authenticates with
- API client → Backend API: requests
- Backend container → Backend API: runs
- Backend API → Recruitment agent team: orchestrates
- Recruitment agent team → Role data: uses
- Recruitment agent team → Cosmos DB adapter: persists through
- Cosmos DB adapter → Azure Cosmos DB: reads and writes
- Recruitment agent team → OpenAI GPT-4o: analyzes with
- Recruitment agent team → Gmail: sends communication
- Recruitment agent team → Zoom APIs: coordinates interviews