Better HR (HRMS)
Designed and delivered backend features across Better HR including Expense, KPI, Permission Group, and Indonesia Payroll, then extended the platform with an AI layer: a conversational HRIS agent, AI CV extraction for candidates and employees, JD-driven talent search, and analytics over the extracted data - all while optimizing high-traffic endpoints for a platform used by 100K+ users across eight countries.
Backend engineer on the platform since Nov 2023, with 1,800+ commits: designed and delivered Expense, KPI, Permission Group, and Indonesia Payroll, then added an AI layer on the same backend.
One HRMS serving eight countries had to absorb very different business rules - finance, performance management, access control, and country-specific payroll - without fragmenting into separate systems.
- Country-specific payroll and policy rules had to live on one shared platform
- Permission-sensitive data spans both admin and employee workflows
- Dashboards and other high-traffic endpoints are used daily by a 100K+ user base
- AI features had to work on real HR data without weakening existing access rules
Key Decisions
What I chose, and what I traded for it
- 1
Build AI capability into the existing backend and expose it through the platform's own operations and permission boundaries
Rather than: A separate AI product, or a privileged data path for the model
The model works on real HR data under the same rules as any other client, so AI inherits the platform's access control instead of bypassing it.
- 2
Model multi-country payroll and policy logic explicitly per region
It raised implementation complexity, but kept regional behavior close to how each country actually operates.
- 3
Keep permission-sensitive behavior explicit across admin and employee workflows
More development overhead in exchange for lower operational risk on sensitive HR data.
- 4
Apply query optimization and caching to dashboards and other high-traffic endpoints
Extra design effort in queries and cache, so the platform stays responsive at its usage scale.
- Expense, KPI, Permission Group, and Indonesia Payroll delivered inside one platform
- Supported 100K+ users across eight countries with query and caching improvements
- AI shipped as part of the product: conversational HR actions, CV extraction, JD-driven talent search, and analytics over extracted data
Features I Built
46 capabilities across 10 product areas
- Indonesia Payroll, plus country rules for Vietnam (PIT across multiple entities, tax brackets, employer contributions, social insurance), Sri Lanka (lump-sum tax), the Philippines (SSS), and Myanmar payslips
- Dynamic Payroll Report with month-over-month comparison, a variance report, custom payroll reports, and payroll summary breakdown exports
- General Ledger settings with payroll GL Excel export, plus employee cost centers and allocations
- Bank transfer file exports - Vietnam bank statement, Sri Lanka NDB, HNB, and consolidated EPF formats - with automatic company bank selection
- Deduction rules: flat-rate and bracket-based late deductions, extra break minutes, and holiday multipliers
- Employee loans with payroll deduction, payslip breakdown, tracker export, and loan analytics
- Overtime and project-based pay for multiple employees, with multi-level payment approval
- Expense module: policies with cap amounts, approver notifications, status filters, and soft delete
- Expense reimbursement paid through payroll and surfaced in payroll exports and total allowances
- Dynamic leave approver chains up to four levels
- Leave type rules: backdating, minimum advance notice, document-attachment thresholds, expiring leave types, and morning/evening half days
- Month-by-month leave balance export, and leave records re-synced after policy changes
- Remote attendance with duplicate-request locking, second and third approval layers, and punches restricted to the roster location
- Attendance scheduler import
- Duty roster analytics and dashboard endpoint optimization
- ZKTeco (LiveU) and HIK-Connect fingerprint integrations behind one shared attendance-source contract, with API keys and secrets managed per integration
- Attendance sync triggered after the scheduled time and conclusion time of the HIK fingerprint device, as requested by product
- Append-only write rules: a stored check-in from any source is never replaced, and only a later check-out moves the day's end, so re-reading the window is always safe
- Bulk writes per 1,000-row chunk in one transaction - one INSERT plus one CASE UPDATE - with the affected attendance caches cleared after commit
- Employee sync three times a day (07:00, 12:00, 19:00 company time): numeric device IDs, renames, and new people pushed to the devices, with deletes only on proof the employee was deleted
- Dispatcher switches only into tenants with a device integration instead of scanning every tenant on each run, on a dedicated queue so slow vendor APIs never hold other workers
- Manual Sync now from settings, and per-employee ZKT and HIK IDs on the employee Integration tab
- KPI module from group setup through assignment, tracking, and export
- Performance appraisal: reviewer hiding, side-by-side self review for sequential reviewers, and suggested actions on appraisal PDFs
- Performance dynamic rating
- ATS workflow from Screening to Offer, integrated with the HRMS
- AI CV parsing with a configurable provider, talent-level normalization, and MIND / ESCO skill taxonomy resolution
- Talent pool search with advanced filters, job-description-driven talent search, and talent data import
- Candidate Intelligence, Employee Intelligence, and the Human Capital Overview dashboard
- Interview scheduling across timezones, restoring rejected candidates, and mobile job-screening endpoints
- Permission Group (v2) with scheduled publishing, KPI and payroll permissions, and group-scoped access by custom fields
- Google SSO and OAuth clients for the Android and iOS apps
- OTP over Thai bulk SMS, Unimatrix (Philippines, Pakistan, Indonesia), and email
- KBZPay integration
- SQL-injection hardening and database transactions around destructive operations
- Employee resource library: file, image, and video uploads through presigned URLs, with permission checks and cached mobile queries
- Employee import/export templates covering custom fields, bank information, currency, and probation/contract dates
- Training courses built from ordered lessons and quizzes (single choice, multiple choice, true/false, free text), with publishing and per-employee progress that resumes from the last position
- Course access scoped to everyone, or by department, position, location, status, or individual employee
- Direct-to-S3 multipart video uploads through presigned part URLs, with upload progress reporting
- ffprobe/ffmpeg transcoding into an adaptive HLS ladder up to 1080p on a dedicated video queue, so long encodes never hold workers other jobs need
- HLS playlists served with short-lived presigned segment URLs, live processing status over broadcasting, and a scheduled rollback for stalled uploads or encodes
- Employee learning library access and push notifications for new learning content
- Backend for the conversational HR agent
- Scheduled background agent with provider fallback and a shared cooldown
- AI-driven payroll create-and-generate flow
Design Artifacts
Diagrams behind the work
Deep Dive
Detailed breakdown
Better HR needed to support multiple operational domains inside one HRMS platform without letting country-specific rules, permissions, and reporting workflows become fragmented.
- Core HR operations needed to scale across eight countries on one shared platform
- Features such as Expense, KPI, Permission Group, and Indonesia Payroll introduced very different business rules and access patterns
- Performance and data consistency mattered because these modules were used in daily business operations at large scale
Built and extended backend capabilities across the HRMS so finance, performance management, permissions, and payroll workflows could operate inside one production-ready system.
- Delivered Expense, KPI, Permission Group, and Indonesia Payroll backend flows inside the broader HRMS platform
- Improved leave approval behavior, leave setting rules, duty roster analytics, and performance dynamic rating workflows
- Expanded ATS candidate database support and strengthened Excel export/import capabilities for business operations
- Layered AI capabilities onto the same backend - a conversational agent, CV extraction, and JD-driven search - rather than building them as a separate product
Added an AI layer on top of the existing HRMS backend, deliberately built on the platform's own operations so the model worked with real HR data under the same rules as any other client.
- Conversational HRIS agent that discovers GraphQL operations at runtime and executes them, covering 48 read and 31 write operations across HR workflows
- AI CV extraction on both sides of hiring: bulk candidate intake in the ATS with automatic rating against the job, and single-employee extraction into the employee Talent tab
- Search Talent With Job Description reads a pasted or uploaded JD and fills the talent search filters automatically, replacing manual criteria entry
- Candidate and employee analytics built on the normalized fields extraction produces, so the AI work compounds into reporting rather than sitting isolated
- Scheduled background agent runs recurring HR tasks unattended using the same tool loop as the interactive agent
Made implementation decisions that favored modular backend behavior, stronger access control boundaries, and performance-aware data access for high-traffic operations.
- Applied query optimization and caching to reduce response-time pressure on dashboards and other high-traffic endpoints
- Kept permission-sensitive behavior explicit so operational access could stay safer across admin and employee workflows
- Implemented business-rule-heavy logic carefully so approval, rating, and payroll-related behavior stayed predictable in production
- Exposed AI capability through the platform's existing operations and permission boundaries instead of giving the model its own privileged data path
Accepted higher backend complexity in exchange for better maintainability, country-specific flexibility, and production reliability.
- Multi-country payroll and policy logic increased implementation complexity but kept regional behavior closer to real business needs
- More explicit permission handling added development overhead but reduced operational risk
- Performance tuning required extra effort in query and cache design, but it helped the system stay responsive at scale
- Letting an AI agent write to live HR records demanded far more guardrail work than a read-only assistant, but it made the agent genuinely useful instead of merely descriptive
The HRMS became stronger as a shared business platform, supporting multiple high-value workflows while remaining performant for large-scale usage.
- Supported 100K+ users across eight countries with query and caching improvements
- Improved business coverage across Expense, KPI, Permission Group, and Indonesia Payroll
- Strengthened the platform's ability to handle both shared HR logic and country-specific operational requirements
- Shipped AI as a working part of the product - conversational HR actions, automated CV intake, and JD-driven search - rather than a bolt-on demo
Contributed additional backend work across operational workflows, analytics, performance logic, and data-heavy business tooling within Better HR.
- Leave second approval flow and leave setting rules improvements
- Duty roster analytics and dashboard endpoint optimization
- Candidate and employee analytics surfacing workforce composition, seniority, and qualifications across the applicant pool, the workforce, and the company dashboard
- Performance dynamic rating system, ATS candidate database, and Excel export/import improvements