Advanced

Environment Variables

Environment variables let you store configuration values that are accessible across all workflows in a tenant — without hardcoding them in individual nodes.

Setting Environment Variables

  1. Settings → Environment Variables → + Add
  2. Enter a key (e.g., STRIPE_WEBHOOK_SECRET) and value
  3. Save — the value is encrypted at rest

Using in Expressions

{{ $env.STRIPE_WEBHOOK_SECRET }}
{{ $env.API_BASE_URL }}
{{ $env.TENANT_REGION }}

Common Use Cases

VariableUse Case
API_BASE_URLBase URL for internal services (different per environment)
WEBHOOK_SECRETShared signing secret for HMAC verification
DEFAULT_TIMEZONETimezone for date/time operations
SLACK_ALERTS_CHANNELDefault Slack channel for error notifications

Environment Promotion

If you have separate riogentix tenants for staging and production, export variables from one and import to the other:

  1. Settings → Environment Variables → Export — downloads an encrypted JSON file
  2. In the target tenant: Settings → Environment Variables → Import
⚠️ Security note: Never store secret values in workflow node parameters or expressions directly. Always use credentials or environment variables.

Variable Precedence

  1. Node-level override (highest priority)
  2. Workflow-level variable (set in workflow settings)
  3. Tenant environment variable
  4. System default (lowest priority)