AI-powered HR & IT assistant built entirely on Snowflake Cortex. The native Cortex AI Agents API autonomously orchestrates Search and Analyst — leave balances, policy lookups, performance reviews, IT tickets, and multi-agent travel automation, all inside your governed data perimeter.
A single REST call to /api/v2/cortex/agent:run gives the LLM two tools and lets it decide what to use — no hand-rolled routing needed.
The LLM receives Cortex Search and Cortex Analyst as registered tools and autonomously decides which to invoke — or both — based on the employee's question. No intent classification code.
All Q&A questionsHybrid semantic + keyword retrieval over 12 HR policy documents. The agent calls this tool when it identifies a policy, procedure, or benefits question.
Policy questionsTranslates natural language to governed SQL via a YAML semantic model — leave balances, ticket counts, attrition rates, L&D budgets, and performance ratings.
Data questionsFor write operations (raise IT ticket, submit leave, log expense), the backend extracts parameters via Cortex COMPLETE and executes governed INSERTs into Snowflake — returning confirmed IDs.
Action requestsFrom policy lookups to process automation — governed at the data layer, with a full audit trail on every interaction.
Check leave balances, entitlements, carry-forward status, and pre-approved days — filtered by the requesting employee's ID. Submit leave requests directly from chat (writes to Snowflake).
Cortex Analyst + Row Policy + ActionSearches across 12 HR policies — parental leave, RSU vesting, expense limits, mental health EAP, referral bonuses, and more — with hybrid semantic + keyword retrieval and section-level citations.
Cortex Search · 12 policy docsRaise IT tickets from natural language descriptions — the LLM extracts category, subcategory, and priority, then INSERTs directly into IT_TICKETS. Check open tickets and resolution status.
Cortex Search + Action → IT_TICKETSQuery H1 and Annual review status, self-ratings, manager ratings, and goal completion. Check L&D budget utilisation — annual budget, used, committed (e.g., AWS re:Invent), and remaining.
Cortex Analyst → PERFORMANCE_REVIEWS · LEARNING_BUDGETQuarterly attrition rates, headcount trends, exit reason breakdowns, and comparison against org-wide averages — all automatically filtered to the manager's team via MANAGER_ID.
Cortex Analyst + RBACOne travel request triggers five parallel agents via asyncio.gather(). Each agent works independently and reports back as it finishes — calendar conflict check, budget validation, flight booking, hotel booking, and manager approval routing — all in ~6 seconds.
No data movement to external AI services. The Cortex AI Agents API, Cortex Search, and Cortex Analyst all run on Snowflake-managed infrastructure in your region.
Walk through these for a leadership demo. The app runs in demo mode (no backend needed) — or connect the backend for live Snowflake queries.
Built on Snowflake Horizon — the same access controls that protect your data automatically protect every AI query.
Requires a Snowflake account (trial works), Python 3.10+, and Node.js 18+. The frontend runs in demo mode without a backend.
Clone the repo, run nine SQL scripts, and you have a working Snowflake-native HR chatbot with Cortex AI Agents, multi-agent travel automation, and full governance in under 30 minutes.