I am a new user of n8n and have set up n8n locally on my laptop for testing and evaluation. I am learning and trying to explore capabilities of this tool.
I am trying to use variables in the n8n (self hosted version). I am getting a message
" Available on the Enterprise plan
Variables can be used to store and access data across workflows. Reference them in n8n using the prefix $vars (e.g. $vars.myVariable). Variables are immutable and cannot be modified within your workflows."
Can I not use variables on the version installed on my laptop?
Hi, the clue here is “across” workflows. Inside a workflow you do whatever. Also nothing stops you from using external data stores to share data between flows
I am trying to define my environment specific variables e.g. connection for my DEV, STG and PROD databases. So based on the context my agent interacts with specific databases and avoid changing the workflow everytime
Yes, there is a feature request for this regarding creddentials. For other options, you could have an object and do a lookup local or search in a dB for config. The other point is where the selection criteria would come from. Webhook info? Environment variables?