%%{init: {'theme':'base','themeVariables':{'primaryColor':'#FFF1E6','primaryTextColor':'#1a1a1a','primaryBorderColor':'#F77020','lineColor':'#F77020','secondaryColor':'#FFE4D1','tertiaryColor':'#ffffff','clusterBkg':'#FFF8F2','clusterBorder':'#F77020','fontFamily':'Inter','fontSize':'14px'},'flowchart':{'curve':'basis','htmlLabels':true}}}%%
flowchart TD
classDef trust fill:#F77020,stroke:#c4541a,stroke-width:2px,color:#ffffff
classDef action fill:#FFF1E6,stroke:#F77020,stroke-width:2px,color:#1a1a1a
classDef ai fill:#FFE4D1,stroke:#F77020,stroke-width:2px,color:#7a3a10
classDef user fill:#ffffff,stroke:#F77020,stroke-width:2px,color:#1a1a1a
classDef success fill:#F77020,stroke:#9c4214,stroke-width:3px,color:#ffffff
classDef decision fill:#ffffff,stroke:#F77020,stroke-width:2px,stroke-dasharray:4 2,color:#1a1a1a
HRAdmin([HR Admin])
Recruiter([Recruiter])
Candidate([Candidate])
HRAdmin --> AdminPortal[Admin Dashboard Login]
Recruiter --> AdminPortal
Candidate --> CareerPortal[Career Portal]
AdminPortal --> RoleCheck{Role-Based Access}
RoleCheck -- HR Admin --> CompanyMgmt[Multi-Company & Branch Management]
RoleCheck -- Recruiter --> Pipeline[Pipeline & Candidate Mgmt]
CompanyMgmt --> JobCreate[Create Job Openings]
JobCreate --> ConfigQ[Configure Questionnaires]
ConfigQ --> PublishJob[Publish Job to Career Portal]
PublishJob --> CareerPortal
CareerPortal --> Browse[Browse Jobs & Filters]
Browse --> ApplyStart[Start Application]
ApplyStart --> Step1[Step 1: Basic Details]
Step1 --> Step2[Step 2: Email OTP Verification]
Step2 --> ExistingCheck{Existing Profile?}
ExistingCheck -- Yes --> PullSaved[Pull Saved Profile Details]
ExistingCheck -- No --> NewProfile[Proceed as New Candidate]
PullSaved --> Step3
NewProfile --> Step3
Step3[Step 3: Resume Upload] --> AIParse[AI Resume Parsing & OCR]
AIParse --> SkillExt[Skill & Experience Extraction]
SkillExt --> Step4
Step4[Step 4: Screening Questions] --> KO{Knockout Check}
KO -- Pass --> Step5[Step 5: Voluntary Self-ID]
KO -- Fail --> AutoRej[Auto-Rejected]
Step5 --> Step6[Step 6: Review & E-Signature]
Step6 --> Submit[Submit Application]
Submit --> ATS[ATS Pipeline Entry: Applied]
SkillExt --> AIScore[AI Weighted Scoring]
AIScore --> Rank[Candidate Ranking]
Rank --> ATS
ATS --> AIScreen[AI Screened Stage]
AIScreen --> Threshold{Score Threshold?}
Threshold -- Above --> Shortlist[Shortlisted]
Threshold -- Below --> TalentPool[Talent Pool]
Shortlist --> Pipeline
Pipeline --> HRReview[HR Review]
HRReview --> Interview[Schedule Interviews]
Interview --> Decision{Hire Decision?}
Decision -- Yes --> Offer[Offer Letter]
Decision -- No --> TalentPool
Offer --> Onboard[Onboarding & Compliance]
Onboard --> Hired([Hired & Active])
CompanyMgmt --> Reports[Reports & AI Insights]
Pipeline --> Reports
AutoRej --> TalentPool
class HRAdmin,Recruiter,Candidate user
class AdminPortal,CareerPortal,JobCreate,Browse,ApplyStart,Step1,Step2,Step3,Step4,Step5,Step6,PullSaved,NewProfile,Submit,Pipeline,HRReview,Interview,Offer,Onboard,CompanyMgmt,ConfigQ,PublishJob action
class AIParse,SkillExt,AIScore,Rank,AIScreen ai
class RoleCheck,ExistingCheck,KO,Threshold,Decision decision
class ATS,Shortlist,TalentPool,AutoRej,Reports trust
class Hired success