transform node runs a Handlebars / Liquid-style template against the context. Outputs land in nodes.<id>.output or, with output_to: state.<name>, in workflow state.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Template-driven data shaping with Handlebars / Liquid
transform node runs a Handlebars / Liquid-style template against the context. Outputs land in nodes.<id>.output or, with output_to: state.<name>, in workflow state.
type: transform
config:
template: |
{
"patient_summary": "{{input.patient.name}} — PHQ-9 score: {{state.phq9_score}}",
"high_risk": {{ gt state.phq9_score 14 }}
}
output_to: state.summary