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 hold shared state within a run: define their initial values in the Variables panel, reference them from blocks, and update them with a Variables block.

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 runsRuntime changes last only for the current run; new runs load saved initial values
Typical useAPI keys, tokens, configPassing data between blocks, state
Access syntax{{VARIABLE_NAME}}<variable.name> via dropdown
Where to editEnvironment page (permissions apply)Workflow Variables panel/widget; Variables block for runtime changes