Features
- 5 specialized HR tools: Leave Balance, Benefits Info, HR Case Filing, Team Availability (manager-only), and People Search (HR-only)
- Role-based access control with employee, manager, and HR staff permission levels
- Live admin dashboard at
/admin/hr-datafor managing all HR data the agent can access - Real-time data integration — admin edits are instantly reflected in agent responses
- Smart credit system with per-tool cost tracking (2-3 credits per tool use)
- Structured UI components for each tool result with loading states and error handling
Challenge
Demonstrating how conversational AI can integrate with enterprise HR systems while enforcing proper access controls, maintaining audit trails, and providing a compelling live demo experience for potential clients.
Solution
Built 5 AI tools using Vercel AI SDK’s tool() function with Zod schema validation, each rendering structured results through dedicated React components. Implemented three-tier RBAC (employee/manager/HR) enforced at the tool level, and created a comprehensive admin panel with real-time data editing that instantly propagates to agent responses.
Highlights
- 5 HR tools with natural language interaction and structured result rendering
- Three-tier RBAC enforced at the tool level
- Admin panel changes reflect in agent responses with zero delay
- SLA tracking, audit logging, and soft deletion for enterprise compliance