Prompt Template
Load and render a versioned prompt template from tenant storage.
About this Node
Loads an immutable, versioned prompt asset from Project Storage and interpolates `{{key}}` / `{key}` placeholders using the node's scoped workflow state, writing the rendered string to `output_key` (default `rendered_prompt`). Ideal for reusing centrally governed prompts across multiple LLM or AI Agent nodes.
Ports & Branches
inPort 0Inbound execution flowoutPort 1Outbound execution flow with rendered promptHow this Node Reads Data
| Input | Access | Field | Example | Description |
|---|---|---|---|---|
| Template Placeholders | {{Template}} | — |
Draft a reply to {{customer_name}} about {{issue_summary}}. |
Every `{{variable}}` or `{variable}` placeholder found inside the versioned prompt template is automatically extracted as an input key and substituted from scoped state. |
State Keys Written (Outputs)
| Key Pattern | Type | Role | Description |
|---|---|---|---|
{output_key} |
string |
Primary | The fully rendered prompt string (defaults to `rendered_prompt`), ready to wire into an `llm` or `maf_agent` node's `input_key`. |
Tips & Best Practices
- Missing template keys render as empty strings rather than failing the run—double-check spelling with Designer variable autocomplete.
- Use `{{key}}` (double braces) when the prompt also contains literal JSON braces so only intended placeholders match.
Commonly Paired With
Settings Parameters (2)
Configuration schema synchronized with the workflow catalog
| Field | Type | Default | Allowed Options | Description |
|---|---|---|---|---|
prompt_uuid |
string |
— |
— | UUID of the prompt template in storage |
prompt_version |
string |
— |
— | Version of the prompt template to load (e.g. v1.0) |
Version-Pinned Support Reply Prompt
Load version `v3` of a shared support prompt asset and render it with incoming ticket fields before invoking LLM Inference.
Node Configuration
{
"Id": "llm_prompt_1",
"Type": "llm_prompt",
"Config": {
"prompt_uuid": "prompt-support-reply",
"prompt_version": "v3"
}
}Sample Input State
{
"customer_name": "Alex",
"issue_summary": "Unable to export CSV"
}Expected Output State
{
"rendered_prompt": "Hi Alex, here is how to resolve Unable to export CSV..."
}Tip: Connect Prompt Template directly to an LLM Inference node (`prompt_source: "state_key"`, `input_key: "rendered_prompt"`).
A/B Prompt Rollout via Version Pinning
Pin a specific immutable prompt version (`v2`) in production while iterating safely on `v3` in staging workflows.
Node Configuration
{
"Id": "llm_prompt_1",
"Type": "llm_prompt",
"Config": {
"prompt_uuid": "prompt-contract-review",
"prompt_version": "v2"
}
}Sample Input State
{
"clause_text": "Indemnification cap is 12 months of fees."
}Expected Output State
{
"rendered_prompt": "Review the following clause for compliance: Indemnification cap is 12 months of fees."
}