Recruitment (ATS)
Relevant source files
The following files were used as context for generating this wiki page:
- apps/gauzy/src/app/pages/candidates/candidates.component.ts
- apps/gauzy/src/app/pages/candidates/candidates.module.ts
- apps/gauzy/src/app/pages/candidates/edit-candidate/edit-candidate-profile/edit-candidate-profile.component.ts
- apps/gauzy-e2e/src/integration/CandidatesTest.ts
- packages/core/src/lib/database/migrations/1642411409517-AlterCandidateEmployeeTable.ts
- packages/mcp-server/src/lib/tools/candidates.ts
- packages/plugins/integration-ai/src/lib/gauzy-ai.service.ts
- packages/plugins/job-search-ui/src/lib/components/apply-job-manually/apply-job-manually.component.ts
- packages/ui-core/i18n/assets/i18n/en.json
- README.md
The Recruitment module, also known as the Applicant Tracking System (ATS), is a core feature of the Gauzy platform's Human Resource Management (HRM) capabilities. It provides a comprehensive set of tools for managing the entire candidate lifecycle, from initial application and interviews to hiring or rejection. The system is designed to streamline recruitment workflows, track candidate progress, manage interviews, and integrate with other platform features like Employees and Organizations.
The module is accessible through the "Candidates" page in the Gauzy application. It supports inviting candidates, creating candidate profiles, managing interviews, and changing candidate status. It also has advanced integrations with an AI service for features like automated proposal generation.
Data Model and Schema
The database schema for the Recruitment module centers around the Candidate entity, which has relationships with several other core entities like User, Employee, and Contact.
Sources: packages/core/src/lib/database/migrations/1642411409517-AlterCandidateEmployeeTable.ts
ER Diagram
This diagram illustrates the key relationships between the candidate table and other related tables in the database.
Candidate Entity
The Candidate entity is the central data structure for the ATS. It stores all information related to a job applicant.
| Field | Type | Description |
|---|---|---|
id | uuid | Primary key. |
user | User | The associated user account for the candidate. |
employee | Employee | A nullable link to an Employee record, used when a candidate is converted to an employee. |
organization | IOrganization | The organization the candidate is applying to. |
contact | IContact | A link to a contact record. |
source | ICandidateSource | The source from which the candidate was acquired (e.g., 'LinkedIn', 'Referral'). |
organizationPosition | IOrganizationPosition | The specific job position the candidate applied for. |
status | CandidateStatusEnum | The current status of the candidate in the hiring pipeline. |
appliedDate | Date | The date the candidate applied. |
hiredDate | Date | The date the candidate was hired. |
rejectDate | Date | The date the candidate was rejected. |
isArchived | boolean | A flag to indicate if the candidate record is archived. |
Sources: packages/core/src/lib/candidate/candidate.entity.ts, packages/core/src/lib/database/migrations/1642411409517-AlterCandidateEmployeeTable.ts:21-22
Candidate Status
The candidate status is managed through an enumeration CandidateStatusEnum, which defines the possible stages in the recruitment pipeline.
| Status | Description |
|---|---|
APPLIED | The candidate has submitted an application. |
HIRED | The candidate has been hired. |
REJECTED | The candidate has been rejected. |
Sources: apps/gauzy/src/app/pages/candidates/candidates.component.ts:18, [packages/mcp-server/src/lib/tools/candidates.ts:8]
UI and Core Components
The primary user interface for the Recruitment module is the CandidatesComponent. This component is responsible for displaying the list of candidates and providing all the necessary actions to manage them.
Sources: apps/gauzy/src/app/pages/candidates/candidates.component.ts
Features
- Layouts: Supports both a
TABLElayout and aCARDS_GRIDlayout for displaying candidates. - Data Fetching: Uses a
ServerDataSourceto fetch paginated candidate data from the/api/candidate/paginationendpoint. - Filtering & Sorting: Allows users to filter candidates by name, email, and status, and to sort the results.
- Actions: Provides UI controls to perform actions such as:
- Add: Opens a
CandidateMutationComponentdialog to create a new candidate. - Edit: Navigates to the candidate's detailed profile page.
- Invite: Opens an
InviteMutationComponentto send an invitation to a potential candidate. - Hire: Marks a candidate as hired.
- Reject: Marks a candidate as rejected.
- Archive: Archives a candidate's record.
- Add: Opens a
Sources: apps/gauzy/src/app/pages/candidates/candidates.component.ts:101-525, apps/gauzy-e2e/src/integration/CandidatesTest.ts:39-93
Candidate Management Flow
The following diagram shows the flow of managing a candidate from the main candidates page.
This diagram shows how the CandidatesComponent handles different user actions, leading to dialogs or new pages for creating, editing, or managing candidates.
Sources: apps/gauzy/src/app/pages/candidates/candidates.component.ts
Interview Management
The system provides robust functionality for scheduling and managing candidate interviews.
- Scheduling: Users can schedule interviews for a candidate, specifying details like title, date, time, location, and interviewers.
- Editing: Existing interviews can be edited or postponed.
- Feedback: Interviewers can leave feedback and ratings for each candidate after an interview.
- Criterions: The system allows for rating candidates based on predefined criteria, such as "Technology Stack" and "Personal Qualities".
Sources: apps/gauzy/src/app/pages/candidates/edit-candidate/edit-candidate-profile/edit-candidate-profile.component.ts:100-143, packages/ui-core/i18n/assets/i18n/en.json:1159-1200
Interview Profile Page
The EditCandidateProfileComponent serves as a hub for all information related to a single candidate, with dedicated tabs for different sections, including interviews and feedback.
This diagram illustrates the structure of the candidate profile page, which uses a tabbed interface to organize different aspects of the candidate's information, including their interviews.
Sources: apps/gauzy/src/app/pages/candidates/edit-candidate/edit-candidate-profile/edit-candidate-profile.component.ts:80-143
API and Backend Automation
The backend provides a set of tools for programmatic access and automation of candidate management, primarily for use with AI agents via the Model-Context-Protocol (MCP).
Sources: packages/mcp-server/src/lib/tools/candidates.ts
Candidate Tools
The following tools are registered with the MCP server to allow for interaction with candidate data:
| Tool Name | Description | Parameters |
|---|---|---|
get_candidates | Get a list of candidates. | page, limit, search, relations, status, etc. |
get_candidate_count | Get the total count of candidates. | status, organizationPositionId, sourceId |
get_candidate | Get a specific candidate by ID. | id, relations |
create_candidate | Create a new candidate. | candidate_data (based on CandidateSchema) |
update_candidate | Update an existing candidate. | id, candidate_data |
update_candidate_status | Update a candidate's status. | id, status |
rate_candidate | Rate a candidate. | id, rating |
delete_candidate | Delete a candidate. | id |
get_candidates_by_position | Get candidates for a specific position. | positionId, page, limit, status |
add_candidate_skill | Add a skill to a candidate. | candidateId, skill |
add_candidate_experience | Add work experience to a candidate. | candidateId, experience |
add_candidate_education | Add education to a candidate. | candidateId, education |
Sources: packages/mcp-server/src/lib/tools/candidates.ts:19-506
AI Integration
The ATS is integrated with Gauzy's AI service to enhance the recruitment process, particularly in job application and proposal generation.
Sources: packages/plugins/integration-ai/src/lib/gauzy-ai.service.ts, packages/plugins/job-search-ui/src/lib/components/apply-job-manually/apply-job-manually.component.ts
AI-Powered Proposal Generation
When a user applies for a job manually, the system can leverage AI to generate a cover letter or proposal.
The flow is as follows:
- The user initiates a manual job application from the
ApplyJobManuallyComponent. - The component calls
preProcessEmployeeJobApplicationin theGauzyAIServiceto create an application record. - It then calls
generateAIProposalto trigger the AI to generate content. - The UI polls the
getEmployeeJobApplicationendpoint until the AI-generated proposal is ready. - Once ready, the proposal content is loaded into the CKEditor for the user to review and submit.
This sequence diagram illustrates the process:
Conclusion
The Recruitment (ATS) module in Gauzy is a full-featured system for managing the hiring pipeline. It provides a clear UI for tracking candidates, scheduling interviews, and collecting feedback. With its robust data model, backend automation tools, and integration with AI services, it offers a powerful and modern solution for an organization's recruitment needs.