Add custom node to n8n to store variable values

In the n8n community edition you cannot use variables, but a user created a custom node (plugin) to allow you to store variable values, albeit only in your workflow. This is the n8n-nodes-globals NPM package, also known as “Global Constants”. In this post we will look at how to add this custom node to n8n.

Adding the custom node

In n8n, in the bottom left corner, click your profile icon and then Settings.

n8n profile icon settings


Then click on “Community nodes” and then click on Install.

Community nodes install


In another tab go to the n8n-nodes-globals NPM URL and copy the name of the NPM package.

n8n-node-globals NPM package


Now click the Install button and paste the name of the package.

Paste the name of the npm package and click install


It will take a while to install and then show up in your list of Community nodes.

List of community nodes


To add it to your Workflow, search for “Global Constants”.

Add Global Constants to your n8n workflow
Categories: General Coding

necrolingus

Tech enthusiast and home labber