Variables

Working with workflow and environment variables.

TradingGoose supports two complementary variable systems. Environment variables store configuration values and secrets (API keys, tokens, database URLs) that stay outside your workflow definitions and are resolved at execution time. Workflow variables act as a global data store inside a single workflow, letting any block read and write shared state during a run.

Together they cover both external configuration and internal data flow. Environment variables keep secrets safe and portable across workflows, while workflow variables let blocks pass data to each other without direct connections.

Variable Types

Quick Comparison

Environment VariablesWorkflow Variables
ScopePersonal or workspace-wideSingle workflow
LifetimePersistent across all runsPersists between runs unless reset
Typical useAPI keys, tokens, configPassing data between blocks, state
Access syntax{{VARIABLE_NAME}}<variable_name> via dropdown
Who can editSettings page (permissions apply)Variables panel in the editor