Core Syntax
Jinja has two delimiters:{{ ... }}for expressions — evaluated and rendered into the field.{% ... %}for control flow — conditionals and loops that shape the output.
Variable References
Scout provides three namespaces in every template:
Nested fields use chained dot notation:
Common Use Cases
Build a prompt with workflow state
Assemble an Agent prompt from the original question and retrieved context:Build an API payload dynamically
Inject workflow values into a JSON body for an Action block:Conditional messaging
Change the message based on workflow state:Date and Time
Use__exp_global for ready-made date strings, or reach for datetime directly when you need custom formatting:
datetime, timezone, and ZoneInfo are available inside any template.
Safe Templating Rules
Next Steps
Logic and State
Understand how data flows between blocks through shared state.
Creating Workflows
Build cleaner workflow architectures with a consistent pattern.
Blocks
See which block produces which output to reference in templates.
Running Workflows
Validate rendered template output in the Console before going live.