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
Environment Variables
Manage API keys, tokens, and other secrets at the personal or workspace level. Referenced with double-brace syntax and resolved when a workflow runs.
Workflow Variables
Global key-value store scoped to a single workflow. Create, read, and update variables from any block to share state across your workflow.
Quick Comparison
| Environment Variables | Workflow Variables | |
|---|---|---|
| Scope | Personal or workspace-wide | Single workflow |
| Lifetime | Persistent across all runs | Persists between runs unless reset |
| Typical use | API keys, tokens, config | Passing data between blocks, state |
| Access syntax | {{VARIABLE_NAME}} | <variable_name> via dropdown |
| Who can edit | Settings page (permissions apply) | Variables panel in the editor |