Skip to main content
Case Study / 05

HireFlow AI Recruitment Platform

Autonomous 5-agent AI recruitment pipeline compressing weeks into 3 minutes

01 / Summary

Executive Summary & Facts

Problem: Traditional technical recruitment is plagued by severe operational latency. Evaluating hundreds of applicants requires human recruiters to manually parse resumes, manually author domain assessments, grade answers, coordinate exploratory calls, and compile candidate dossiers—stretching hiring cycles across 2 to 4 weeks and introducing cognitive fatigue and unconscious bias.

Result: Architected AgenticHire (HireFlow), an event-driven multi-agent AI hiring swarm orchestrated across Apache Kafka 7.5 and Groq-hosted LLaMA 3 70B. The pipeline autonomously screens encrypted resumes in-memory (AES-256), generates dynamic role-specific technical assessments, grades submissions against rubrics, conducts live Web Speech voice interviews, and synthesizes weighted executive hiring dossiers—reducing the active evaluation cycle from 2–4 weeks to ~3 minutes.

Role: Lead AI Systems Architect; authored the distributed multi-agent state machine, Kafka event topologies, Groq JSON schema contracts, in-memory crypto security layer, and dual Next.js 14 / Streamlit presentation layers.

Role & OwnershipLead AI Systems Architect
Timeframe & StatusFeb 2026 – Apr 2026 · Production Distributed Pipeline (Docker Compose)
Core Stack
Groq (LLaMA 3 70B) · Apache Kafka · PostgreSQL 16 · Redis 7 · Node.js 20 · Next.js 14 · Streamlit · Docker
Artifacts & References
02 / Problem

Problem & Operational Constraints

Technical talent acquisition suffers from a fundamental mismatch between applicant volume and human review bandwidth. High-volume inbound pipelines overwhelm talent teams, leading to delayed offer letters, loss of top-tier engineering talent to faster competitors, and inconsistent evaluation standards across candidate cohorts:

The 2–4 Week Recruiting Bottleneck

In conventional enterprise hiring, each applicant stage acts as a serialized barrier: 2–4 days for initial resume screening, 1–2 days to draft take-home tests, 1–3 days to score submissions, 3–5 days for phone-screen scheduling, and 1–2 days to manually compile interviewer notes. When candidate volumes surge into the hundreds, total turnaround stretches to nearly a month, with over 85% of elapsed time spent idling in email queues.

Audited Engineering & Operational Constraints:
• Decoupled Asynchronous Resilience: Agents must never block each other or rely on synchronous REST chains. Downstream consumer downtime or network partitions must queue events durably with zero applicant data loss.
• Strict In-Memory Security & PII Isolation: Candidate resumes must be stored encrypted (AES-256-CBC with prepended IV). Decryption must execute strictly in volatile memory during screening, ensuring zero plaintext candidate PII touches the host filesystem.
• Multi-Tenant Data Boundary: Enterprise accounts must be structurally isolated. Every SQL query via Prisma ORM and every WebSocket room via Socket.io must enforce mandatory tenant parameter scoping (tenantId).
• Sub-Second LLM Ingestion: Generation of customized assessments, rubric evaluations, and final synthesis must complete in sub-second execution windows to prevent interactive candidate stall (powered by Groq Cloud LLaMA 3 70B).
03 / Architecture

Event-Driven Multi-Agent Swarm Architecture

AgenticHire replaces brittle synchronous webhooks with a resilient, event-driven architecture orchestrated across an Apache Kafka message backbone:

Autonomous 5-Agent Event-Driven PipelineApache Kafka · Groq LLaMA 3 70B · Redis 7
APACHE KAFKA 7.5 EVENT BUS (DECOUPLED ASYNC WORKERS)AGENT 1: SCREENERIn-Memory AES-256 PDFGroq LLaMA 3 70B (Score ≥60)AGENT 2: ASSESSORDynamic Test SynthesisBespoke Questions & SMTPAGENT 3: EVALUATORRubric-Based ScoringMulti-criteria (Score ≥50)AGENT 4: INTERVIEWERLive Voice Dialogue RoomWeb Speech TTS/STT + 24h JWTAGENT 5: SYNTHESIZERExecutive Hiring Dossier30% Screen + 30% Test + 40% VoiceVerdict: STRONG_HIRE / HIRE / REJECT
Figure 3: Event-driven 5-agent pipeline topology. Asynchronous Kafka streaming connects in-memory AES-256 screening, bespoke assessment synthesis, rubric grading, live Web Speech voice interviews, and weighted executive hiring verdicts.

Agent 1: Resume Screener (agent1.screener.js)

Consumes resume-submitted events from Kafka. Ingests the candidate's encrypted PDF, performs in-memory AES-256-CBC decryption, extracts raw text via pdf-parse, and evaluates candidate qualifications against the job description using Groq LLaMA 3 70B. Employs a strict JSON schema returning an objective score (0–100), key strengths, concerns, and qualitative justification. Candidates scoring ≥ 60 emit screening-passed; sub-threshold candidates automatically receive constructive rejection feedback.

Agent 2: Assessment Architect (agent2.assessor.js)

Triggered by screening-passed. Dynamically synthesizes a bespoke 5-question technical assessment tailored directly to the candidate's resume gaps and job requirements (practical open-ended challenges rather than generic multiple choice). Stores a unique cryptographic assessment token with TTL in Redis, and automatically dispatches a personalized invitation email via Nodemailer SMTP.

Agent 3: Answer Evaluator (agent3.evaluator.js)

Triggered upon test submission (assessment-submitted). Grades candidate responses against per-question rubrics using Groq LLaMA 3 70B in structured JSON mode. Evaluates technical depth, correctness, edge-case coverage, and communication clarity. Submissions scoring ≥ 50/100 emit interview-invited; failing candidates are gracefully archived.

Agent 4: Voice Interview Coordinator (agent4.interviewer.js)

Triggered by interview-invited. Signs a single-use 24-hour HS256 JWT room token validated against Redis and sends an interview room link. The candidate enters a dedicated browser voice room powered by the Web Speech API (TTS & STT), engaging in an interactive, timed voice interview. Responses are captured, transcribed question-by-question, and emitted as an interview-completed event.

Agent 5: Executive Synthesizer (agent5.evaluator_final.js)

Ingests all four preceding evaluation vectors: Resume Screening Score, Assessment Evaluation Score, Voice Interview Transcript & Behavioral Metrics, and Job Requirements. Calculates a weighted holistic baseline score:

Composite Score = (ScreeningScore × 0.3) + (AssessmentScore × 0.3) + (InterviewScore × 0.4)

Invokes Groq LLaMA 3 70B with PROMPTS.FINAL_EVALUATOR to generate comprehensive qualitative reasoning and issues a definitive hiring recommendation: STRONG_HIRE (≥80), HIRE (≥65), CONSIDER (≥50), or REJECT. Dispatches real-time WebSocket events to update the HR Kanban board instantly.

Dual-Frontend Architecture (Next.js 14 + Streamlit)

The platform separates interactive candidate workflows from executive data exploration:

  • Next.js 14 Web Portal: React 18 App Router, Tailwind CSS, real-time Socket.io Kanban boards, candidate dossier views, and interactive Web Speech voice rooms.
  • Streamlit Executive Dashboard: Python 3.10+ data application providing high-density candidate filtering, score distribution histograms, and rapid cross-job analytics with zero frontend build overhead.
04 / Key Decisions

Engineering Decisions & Defenses

Decision: Architecture: Apache Kafka Event Bus over Synchronous REST / Webhooks
Selected Approach:Decoupled Kafka 7.5 message bus with independent consumer groups
Alternatives Evaluated:Direct HTTP POST chains, BullMQ / Redis queues, RabbitMQ
Engineering Rationale:

Synchronous HTTP chains are fragile: if an evaluation takes 25 seconds or an agent process restarts, the entire candidate pipeline drops. Kafka guarantees at-least-once message delivery, durable event log replay, and backpressure isolation across heavy LLM workloads.

Decision: LLM Engine: Groq-Hosted LLaMA 3 70B over GPT-4o / Claude 3.5 Sonnet
Selected Approach:Groq Cloud LPU inference with strict JSON mode schemas
Alternatives Evaluated:OpenAI GPT-4o, Anthropic Claude 3.5 Sonnet, Local Ollama LLaMA-3-8B
Engineering Rationale:

Recruitment evaluation requires high reasoning capabilities coupled with sub-second execution speed. Groq's Language Processing Units (LPUs) deliver LLaMA 3 70B responses at ~300+ tokens/second, enabling real-time voice interview evaluation and instant test generation at a fraction of frontier API pricing.

Decision: Security: In-Memory AES-256-CBC Decryption over Plaintext Storage
Selected Approach:Encrypted storage on arrival; decryption strictly in-memory during screening
Alternatives Evaluated:Unencrypted S3 buckets, local plaintext filesystem storage, database BLOBs
Engineering Rationale:

Candidate resumes contain sensitive Personally Identifiable Information (PII). By encrypting PDFs immediately on upload with random IVs and decrypting them strictly into RAM buffers for parsing, plaintext candidate data is never exposed on disk or accessible in server logs.

Decision: Presentation: Dual Next.js 14 + Streamlit Architecture
Selected Approach:Next.js for interactive candidate UX; Streamlit for executive analytics
Alternatives Evaluated:Single monolithic Next.js app, pure Streamlit frontend, Retool dashboard
Engineering Rationale:

Next.js delivers low-latency SSR, WebSocket responsiveness, and Web Speech API audio room stability. Streamlit allows data science teams and HR leadership to rapidly explore candidate distribution statistics and build ad-hoc cohort filters in Python without requiring custom React UI releases.

05 / Evaluation

Audited Pipeline Efficiency & Turnaround Comparison

An operational audit comparing standard technical recruitment cycles against the autonomous AgenticHire pipeline reveals dramatic latency reduction across every hiring stage:

Recruitment StageTraditional HiringAgenticHire SwarmAgent ResponsibleExecution Engine
Resume Screening2–4 Days~15 SecondsAgent 1: ScreenerIn-Memory AES-256 + Groq
Assessment Synthesis1–2 Days< 5 SecondsAgent 2: AssessorDynamic JSON + SMTP
Answer Evaluation1–3 Days~25 SecondsAgent 3: EvaluatorRubric Scoring (0–100)
First-Round Interview3–5 Days (Scheduling)On-Demand (10m)Agent 4: InterviewerWeb Speech TTS/STT + JWT
Executive Dossier1–2 Days~10 SecondsAgent 5: Synthesizer30/30/40 Weighted Verdict
Total Turnaround2 to 4 Weeks~3 Minutes Active5-Agent SwarmKafka + Redis + Groq
Comparative audit: Based on enterprise HR operational latency vs. measured agent processing logs under standard technical interview workloads.
06 / Cost & Latency

Throughput, Latency & Speed Layer

Active Evaluation Time~3 Minutes TotalComplete 5-stage pipeline vs. 2–4 weeks of manual coordination
Redis Speed Layer< 1 ms QueriesSub-millisecond Kanban polling leaving PostgreSQL unburdened
LLM Generation Speed~300+ Tokens/secSub-second inference via Groq LPU Cloud hardware
07 / Deployment

Containerized Multi-Service Deployment

The production system is orchestrated via Docker Compose into six interconnected microservices:

•Apache Kafka 7.5 & Zookeeper: High-throughput distributed message bus managing candidate event streams across consumer partitions.
•PostgreSQL 16 & Prisma ORM: ACID-compliant relational database enforcing multi-tenant isolation with scoped schemas.
•Redis 7: Ephemeral session store providing sub-millisecond stage caching and expiring JWT interview room tokens.
•Node.js 20 Backend: Houses the REST API, Socket.io real-time server, Kafka producers/consumers, and agent runner routines.
•Next.js 14 Web Portal: Client application providing interactive Kanban boards and timed Web Speech voice interview rooms.
•Streamlit Analytics Engine: Python dashboard serving HR leadership with instant candidate scoring distributions.
08 / Retrospective

Engineering Retrospective: What Failed, Solved & Next Steps

Failure 1: In-Memory Stream Corruptions During PDF Parsing

Decrypted AES-256 binary streams occasionally caused buffer truncation exceptions in pdf-parse when handling complex multi-column resume layouts. Resolution: Engineered a dedicated memory-buffered crypto stream helper with explicit byte-length verification before passing the buffer to the PDF parser.

Failure 2: Non-Deterministic LLM JSON Formats on Edge Cases

Early prompts occasionally returned explanatory prose wrapping the JSON payload, causing JSON.parse errors in Agent 2 and Agent 3. Resolution: Configured Groq SDK's explicit response_format: { type: "json_object" } flag paired with rigorous fallback default question rubrics to guarantee uninterrupted pipeline flow.

Failure 3: Replay Vulnerability on Expiring Voice Rooms

Initial JWT links could be reused if a candidate refreshed the interview room after submission. Resolution: Implemented a dual-token invalidation check: the JWT must match an active key stored in Redis; once the interview state transitions to INTERVIEW_COMPLETED, the Redis token is evicted immediately with zero TTL.

Next Steps & Roadmap

  • Incorporate real-time speech prosody and audio sentiment analysis to supplement text transcripts during voice interviews.
  • Implement automated bias auditing to statistically verify that agent scoring remains invariant across candidate demographic metadata.
  • Add support for asynchronous coding sandbox execution (e.g. Dockerized runner) for executable programming evaluations.