Master Liquid Templating Fundamentals
Liquid templating provides powerful yet simple syntax for dynamic workflow automation. These three core concepts enable sophisticated data handling and conditional logic in your workflows. What you’ll learn:- Access workflow data with object notation
- Create conditional content with tags
- Transform data using filters
- Combine all three for complex logic
1
Objects: Access Workflow Data
Objects retrieve and display data from previous workflow steps using double curly brace syntax.
How to Access Workflow Data
Use dot notation to navigate through workflow data structures. When a previous workflow step (likenode_1
) produces structured data, access nested properties with dots.How to Access Array Elements in Workflows
Access specific array items using square bracket notation with zero-based indexing. Essential for processing API responses and list data.If you try to access a variable that doesn’t exist, Liquid will simply output nothing. It will not cause your workflow to fail.
2
Tags: Control Workflow Logic
Tags provide conditional logic and control flow without generating output. Use tags to create smart, responsive workflow content that adapts to your data.
Conditional Content Example
Create personalized workflow responses using conditional tags:We cover all the powerful logic tags like
if
, for
, and case
in detail on the Logic and Control Flow Tags page.3
Filters: Transform Workflow Data
Filters modify object output using pipe notation. Transform data formats, apply calculations, and format content within workflow steps.
Basic Filter Example
Transform workflow data with simple filters like text formatting:How to Chain Multiple Filters
Combine multiple filters for complex data transformations, processing from left to right:Filters can take arguments, like
15
in the truncate
example above. Explore all the possibilities on the Working with Filters page.