build-system-prompt
Generate custom MDMA prompts from structured inputs like domain, components, and form fields to create interactive Markdown documents with forms and approval workflows.
Instructions
Generates a custom MDMA prompt from structured input (domain, components, fields, steps). Returns only the custom prompt part — use buildSystemPrompt({ customPrompt }) in code to combine it with the base MDMA spec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Domain context (e.g. "HR onboarding", "expense approval") | |
| components | No | Component types to use (e.g. ["form", "approval-gate", "webhook"]) | |
| fields | No | Form field definitions | |
| steps | No | Multi-step flow definitions — each step becomes a separate conversation turn | |
| businessRules | No | Business rules or constraints |