Locking Workflow Variables
Decide which workflow variables you pin at publish time and which ones buyers fill in themselves.
Written By Philippe
Last updated 3 days ago
Locking Workflow Variables
If your workflow uses variables, the publish form shows each one and gives you a choice per variable: fill it now or leave it empty.
Importing a workflow to run it yourself does not support buyer-fillable variables. You fill every variable the workflow uses, and Activate turns on once none are left empty — importing a workflow that uses variables is fine, you just fill them all yourself. Use the publish flow instead when a variable has to be filled by each buyer for their own copy.
When to Lock a Value
- Things you control: an endpoint, a model name, a template, a default limit.
- Values that must be identical for every buyer for the workflow to behave as advertised.
Locked values are hidden from buyers — but don't put secrets in workflow variables. API keys and tokens belong in credentials, which are stored encrypted and have their own flow.
When to Leave It to the Buyer
- Buyer-specific targets: their channel name, their spreadsheet, their email address.
- Preferences: tone, language, thresholds they should tune.
Example. A "Daily report to Slack" workflow:
What Buyers See
Buyers only see the empty variables, as a small setup form when they activate your workflow. Give those variables clear names in your workflow — the name is the label they'll see.
Related
Was this helpful?
More in for-builders
Understanding the Builder DashboardHow to Showcase Your WorkflowIs my n8n workflow compatible? Is this legal?Pricing & EarningsStill need help? Ask the team