Understanding Variables in Workflows
What Are Variables?
Variables are how you pass data between nodes in a Trigify workflow. Every trigger and action node produces outputs, and variables let you reference that data in later steps.
Think of it this way: when a New Post trigger fires, it captures the post text, author URL, like count, and more. Variables let you plug any of that data into the next node, whether that is an enrichment step, an AI agent, or a CRM integration.
Key concept: Variables are the glue that connects your workflow nodes together. Without them, each node would operate in isolation.
The Variable Syntax
All variables in Trigify follow this format:
{{ !ref($.trigger.outputs.variableName) }}Here is how it breaks down:
Three Types of Variable References
1. Trigger Data
Data from whatever kicked off the workflow.
{{ !ref($.trigger.outputs.text) }}{{ !ref($.trigger.outputs.authorUrl) }}{{ !ref($.trigger.outputs.likes) }}2. Step Data
Data produced by any action node. Each node has a unique ID you can reference.
{{ !ref($.steps.personEnrichment1.result.firstName) }}{{ !ref($.steps.sentimentAgent1.result) }}3. Loop Item Data
When inside a Loop node, you get special variables for the current item.
{{ !ref($.steps.loop1.result.item) }}{{ !ref($.steps.loop1.result.index) }}{{ !ref($.steps.loop1.result.isFirst) }}{{ !ref($.steps.loop1.result.isLast) }}Variable Cheat Sheet
Pro Tips
Pro tip: Use the variable picker! You do not have to type these by hand. Click the variable icon in any input field and Trigify shows you all available variables from previous steps.
Watch out: Person Enrichment uses jobTitle, not title. This trips people up.