Liya Engine

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

ConceptWhat it is
Custom domainA named context (e.g. legal-ops) grouping related intents
Custom intentAn AI operation within that domain, driven by a prompt template
Source typeA 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:

1. POST /dashboard/custom-domains        → create "legal-ops"
2. POST /dashboard/custom-domains/legal-ops/intents  → add "contract_review"
3. Upload contracts to knowledge base with source_type = "legal-ops:contract"
4. POST /v1/legal-ops/contract_review    → call it from your application

API paths

ActionEndpoint
List custom domainsGET /dashboard/custom-domains
Create a domainPOST /dashboard/custom-domains
Update a domainPATCH /dashboard/custom-domains/:domainKey
Delete a domainDELETE /dashboard/custom-domains/:domainKey
List intentsGET /dashboard/custom-domains/:domainKey/intents
Create an intentPOST /dashboard/custom-domains/:domainKey/intents
Update an intentPATCH /dashboard/custom-domains/:domainKey/intents/:intentKey
Delete an intentDELETE /dashboard/custom-domains/:domainKey/intents/:intentKey
List source typesGET /dashboard/custom-domains/:domainKey/source-types
Create a source typePOST /dashboard/custom-domains/:domainKey/source-types

Next steps

On this page