Laya examples
Laya AI Recipes
Start from a concrete decision workflow, inspect the state and typed questions, then try it in the Playground or copy the implementation into Python or TypeScript.
Support Ticket Triage
Route a support ticket, score urgency, and detect refund intent in one typed-decision call.
Model Routing
Choose a fast, balanced, or frontier model before sending the request into a more expensive inference path.
LLM Guardrails
Detect jailbreak and escalation signals before a prompt reaches a downstream model or tool.
RAG Passage Filtering
Score retrieved passages and filter irrelevant context before a generator sees it.
Content Moderation
Experiment with structured moderation decisions while preserving a human-review fallback for uncertain cases.
Email and Phishing Detection
Classify suspicious email and detect credential or payment risk with typed probabilities.
Want to try Laya first?
Open the Playground, run a typed-decision example, then come back for an implementation recipe.