Documentation

Running Templates in PromptPlan: Validation, Rendering, and Output

Technical documentation of PromptPlan template execution flow, validation, and output generation.

Updated 2026-03-08

#execution#validation#runs

Execution flow

When you run a template, PromptPlan:

  1. Validates required fields
  2. Replaces placeholders with provided values
  3. Builds final prompt text
  4. Executes the run
  5. Stores output and metadata in run history

Validation behavior

Before execution, PromptPlan checks:

  • required fields are present
  • select values are valid options
  • inputs follow field constraints

Run output

Each run returns:

  • generated output text
  • model used (if available)
  • timestamp
  • input values snapshot

Example

Template body:

text
Write a concise brief for {{audience}}.
Context:
{{source_text}}

Input values are merged at run time, creating one final prompt instance.

Related reading

PreviousPromptPlan Template Fields: Short Text, Long Text, and Select Inputs
NextPromptPlan Template Run History: Track Inputs, Outputs, and Quality