Custom Domain Packs
Define your own AI domain intelligence — custom domain names, intents with prompt templates, and knowledge source categories.
Custom domain packs let you build your own vertical intelligence on top of Liya Engine — without needing Liya to implement it. You define the domain, its intents, the prompt templates that power them, and the knowledge source categories for RAG retrieval. The engine executes them exactly like built-in packs.
Available on: Growth and Enterprise plans (feature_config.enable_custom_domains: true).
Overview
| Concept | What it is |
|---|---|
| Custom domain | A named context (e.g. legal-ops) grouping related intents |
| Custom intent | An AI operation within that domain, driven by a prompt template |
| Source type | A document category for the knowledge base (e.g. legal-ops:contract) |
End-to-end example
A legal operations team creates a legal-ops domain with a contract-review intent:
API paths
| Action | Endpoint |
|---|---|
| List custom domains | GET /dashboard/custom-domains |
| Create a domain | POST /dashboard/custom-domains |
| Update a domain | PATCH /dashboard/custom-domains/:domainKey |
| Delete a domain | DELETE /dashboard/custom-domains/:domainKey |
| List intents | GET /dashboard/custom-domains/:domainKey/intents |
| Create an intent | POST /dashboard/custom-domains/:domainKey/intents |
| Update an intent | PATCH /dashboard/custom-domains/:domainKey/intents/:intentKey |
| Delete an intent | DELETE /dashboard/custom-domains/:domainKey/intents/:intentKey |
| List source types | GET /dashboard/custom-domains/:domainKey/source-types |
| Create a source type | POST /dashboard/custom-domains/:domainKey/source-types |