Uploaded July 2018 | Updated September 2026, 3 weeks ago
A subflow is a collection of nodes packaged as a single node.
Once created they appear in the node palette and can be selected just like normal nodes.
One very big advantage and possibly also a disadvantage is that if you edit a subflow that edit will affect the subflow in other flows.
An example of how that could be useful is if for example you created a simple function that filtered an incoming message by it's topic and you used that function is several flows.
If you subsequently edited the function in one flow you would also need to edit the function in the other flows.
However if you had packaged the function as a subflow then the change would automatically be deployed in all flows.
In this video tutorial we look at what a subflow is and how to create and use them in your flows.
website
stevesnoderedguide.com
Related videos
How to Copy Nodes and Flows in Node-Red
youtu.be/vLhVxWRtWc8
---------
The Node-Red Message Object for Beginners
youtu.be/y05vQUIMIxs
------------
Create a Node Red Basic Flow - MQTT Subscribe Example
youtu.be/eZUSQ1y6kSM
---------------------------------
If you find these videos useful then you might want to consider buying me a coffee
paypal.me/StepenCope
A subflow is a collection of nodes packaged as a single node.
Once created they appear in the node palette and can be selected just like normal nodes.
One very big advantage and possibly also a disadvantage is that if you edit a subflow that edit will affect the subflow in other flows.
An example of how that could be useful is if for example you created a simple function that filtered an incoming message by it's topic and you used that function is several flows.
If you subsequently edited the function in one flow you would also need to edit the function in the other flows.
However if you had packaged the function as a subflow then the change would automatically be deployed in all flows.
In this video tutorial we look at what a subflow is and how to create and use them in your flows.
website
stevesnoderedguide.com
Related videos
How to Copy Nodes and Flows in Node-Red
youtu.be/vLhVxWRtWc8
---------
The Node-Red Message Object for Beginners
youtu.be/y05vQUIMIxs
------------
Create a Node Red Basic Flow - MQTT Subscribe Example
youtu.be/eZUSQ1y6kSM
---------------------------------
If you find these videos useful then you might want to consider buying me a coffee
paypal.me/StepenCope










