Prompt Template
The Prompt Template type belongs to the Interface/Communication Layer — it defines how a thing presents itself.
Schema
Section titled “Schema”| Field | Type | Required | Description |
|---|---|---|---|
template | textarea | ✅ yes | Template text with {{variable}} placeholders |
variables | tags | no | Variable names used in the template |
outputFormat | select | no | Expected output format: text, json, markdown |
Metadata
Section titled “Metadata”| Property | Value |
|---|---|
| Slug | prompt-template |
| ID | builtin-prompt-template |
| Icon | 📋 |
| System | Yes |
| Layer | Interface / Communication |
Example
Section titled “Example”{ "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);from minions import TypeRegistry, create_minion
registry = TypeRegistry()type_ = registry.get_by_slug("prompt-template")
minion, validation = create_minion( {"title": "Blog Template", "fields": {"template": "Write about {{topic}}", "variables": ["topic"]}}, type_,)