Prompt Studio
A versioned prompt library. A version never changes after it is saved, and publishing promotes one exact version.
A prompt written inline in an intent is hard to review, share or roll back. Prompt Studio keeps prompts in a library instead, with a history you can trust: a prompt's text only ever changes by adding a new version, never by editing one in place.
How it works
- A prompt has a key (
refund-policy), a name, its text, and its variables: the{{question}}placeholders, each with a type and whether it is required. - Creating a prompt also creates its version 1. Every later change is a new version, each with a content hash.
- Publishing promotes one exact version to the project's production pointer.
- An intent or domain can be bound to one exact library version instead of carrying its own text, with a
prompt_binding. It stays on that version until you point it at another, so publishing a new version cannot silently change a product that was not ready.
Editing a bound intent's text detaches it
If you change prompt_template on a bound intent without also sending prompt_binding, the binding is removed and the intent carries its own text again. Change the binding instead.
In the dashboard
Open Build → Prompt Studio to create prompts, add versions, and publish. The dashboard also has Prompt Copilot, which drafts or improves a prompt with a model. That authoring help is dashboard-only: the API and SDKs cover listing, creating, versioning and publishing.
With the API
GET /v1/prompts # ?search= and ?status= filter the list
POST /v1/prompts # create the prompt and its version 1
GET /v1/prompts/{promptId}
GET /v1/prompts/{promptId}/versions
POST /v1/prompts/{promptId}/versions # add a version
POST /v1/prompts/{promptId}/publish # { "version_id": "..." }const prompt = await client.prompts.create({
prompt_key: 'refund-policy',
name: 'Refund Policy',
content: 'Answer {{question}} using only the approved refund policy below.',
variables: [{ name: 'question', type: 'string', required: true }],
});
const v2 = await client.prompts.versions.create(prompt.id, {
content: 'Answer {{question}} using only the approved refund policy below. Always cite the clause.',
});
await client.prompts.publish(prompt.id, { version_id: v2.id });Over MCP, create_prompt, create_prompt_version and publish_prompt are available to an app an owner or admin signed in with Change your configuration. New versions are saved as drafts, and nothing changes for your product until publish_prompt is called.
Related
Integrations
Connect the apps your team already uses, and let workflows and agents use them without you writing the HTTP calls.
Models + Router
Run on LiyaEngine's baseline models or bring your own keys for OpenAI, Anthropic, Gemini, Azure OpenAI, AWS Bedrock, OpenRouter, or any OpenAI-compatible endpoint — with automatic fallback on provider failure.