Skip to content

Prompt Template

The Prompt Template type belongs to the Interface/Communication Layer — it defines how a thing presents itself.

FieldTypeRequiredDescription
templatetextarea✅ yesTemplate text with {{variable}} placeholders
variablestagsnoVariable names used in the template
outputFormatselectnoExpected output format: text, json, markdown
PropertyValue
Slugprompt-template
IDbuiltin-prompt-template
Icon📋
SystemYes
LayerInterface / Communication
{
"title": "Blog Post Template",
"minionTypeId": "builtin-prompt-template",
"fields": {
"template": "Write a blog post about {{topic}}. Target audience: {{audience}}. Length: {{wordCount}} words.",
"variables": ["topic", "audience", "wordCount"],
"outputFormat": "markdown"
}
}
import { TypeRegistry, createMinion } from 'minions-sdk';
const registry = new TypeRegistry();
const type = registry.getBySlug('prompt-template')!;
const { minion, validation } = createMinion({
title: 'Blog Template',
fields: { template: 'Write about {{topic}}', variables: ['topic'] },
}, type);