{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "nandhakishorm-laya--route-support-tickets-in-milliseconds",
 "repo": "NandhaKishorM/laya",
 "repo_url": "https://github.com/NandhaKishorM/laya",
 "repo_slug": "nandhakishorm-laya",
 "title": "Route support tickets by department, urgency and churn risk",
 "page_title": "How to route support tickets by department, urgency and churn risk with Laya",
 "summary": "Ask Laya typed questions about each ticket and get a department, an urgency score and a churn probability.",
 "who": "A support lead or developer who wants every incoming ticket triaged instantly without paying for LLM calls.",
 "problem": "Chat models are slow and costly for routing, and their free text answers have to be parsed and can be wrong in odd ways.",
 "outcome": "Structured answers per ticket, such as billing, blocking urgency and a churn probability, in milliseconds.",
 "steps": [
  "Install with `python -m pip install laya`",
  "Create a Router; it downloads a checkpoint on first use",
  "Define questions as in the Quickstart: a choice for department, a score for urgency and a noul for churn risk",
  "Call `router.predict(state, questions)` on each ticket text",
  "Read the department choice and churn_risk probability and route the ticket"
 ],
 "agent_prompt": "Using NandhaKishorM/laya, write a script that reads tickets from <source>, asks a department choice (billing, technical, other), an urgency score and a churn_risk noul for each, and writes the answers to a CSV. Flag any ticket where churn_risk is above 0.7.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 or newer",
  "pip or uv",
  "A GPU is optional; checkpoints download on first use",
  "Optional extras: laya[serve], laya[mcp], laya[langchain] and others"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nandhakishorm-laya/route-support-tickets-in-milliseconds/",
 "md": "https://dedupedai.com/use-cases/nandhakishorm-laya/route-support-tickets-in-milliseconds/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/nandhakishorm-laya--route-support-tickets-in-milliseconds.json",
 "api_version": "v1"
}
