Logo
AgentDune HR Agent

AgentDune HR Agent

An enterprise HR AI agent demo within the AgentDune Chat platform, featuring 5 specialized HR tools with role-based access control, a live admin dashboard, and real-time data integration. Employees can check leave balances, compare benefits, and file HR cases through natural language, while managers approve requests and monitor team coverage.

Next.js 15 Vercel AI SDK tRPC PostgreSQL Drizzle ORM

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-data for 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