The template engine in Compozy uses Jinja2-style syntax with JavaScript expressions, allowing you to reference and manipulate data throughout your workflows.
{{ ... }}
for single-line JavaScript$exec: |
for multiline JavaScript code{{ ... }}
syntax. These expressions should be concise and focus on a single operation:
$exec: |
syntax:
$
object:
Keep Expressions Simple
Use Optional Chaining
Handle Errors
Type Safety