Skip to main content
AI/ML

Prompt Template

llm_prompt

Load and render a versioned prompt template from tenant storage.

Inputs1
Outputs1
Settings2
Field Access{{Template}}
Examples2

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

Inputs (1)
inPort 0Inbound execution flow
Outputs (1)
outPort 1Outbound execution flow with rendered prompt

How 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