Skip to main content

Variable References

Use double curly braces in text fields:

Valid Examples

Invalid Examples

Template Validation

The system checks:
  • Existence: Referenced variable exists
  • Syntax: Valid {{name}} form
  • Types: Value matches declared type where relevant
  • Availability: Variable is available at the current node (flow agent)

Naming Conventions

All variables must follow these rules:

Rules

  1. Format: snake_case only
  2. Start: Lowercase letter (a–z)
  3. Characters: Lowercase letters, digits, underscores
  4. Length: 1–50 characters
  5. Reserved: Do not reuse system variable names

Valid Examples

Invalid Examples

See System Variables for reserved names and Validation for how errors are shown.

Jinja2 Template Syntax

Prompts support full Jinja2 template syntax beyond simple {{variable_name}} substitution. You can use conditionals, filters, and any standard Jinja2 expression:
Templates are processed server-side — the LLM receives the rendered output, not the template. For the full syntax reference including all filters, tests, and operators, see the Jinja2 Template Designer Documentation.