Dynamic Node icon

Dynamic Node

Dynamically execute any node JSON within your workflow

Overview

This node allows you to dynamically execute any n8n node JSON within your workflow. By pasting an exported node's JSON configuration, it runs that node or a set of nodes as a sub-workflow during execution. This is useful when you want to embed or reuse complex logic defined in other nodes without manually recreating it.

Common scenarios include:

  • Dynamically running different processing steps based on input data.
  • Embedding reusable node configurations inside a larger workflow.
  • Testing or debugging node configurations by executing them inline.

For example, you could export a node that fetches data from an API and paste its JSON here to run it dynamically with current input data.

Properties

Name Meaning
Node JSON Paste the exported JSON of one or multiple n8n nodes you want to execute dynamically. It must be a valid JSON object or parseable JSON string representing node(s) configuration.

Output

The output is the result of executing the pasted node JSON as a sub-workflow. The json field contains an array of items produced by the executed nodes. Each item corresponds to the output data of the dynamically executed nodes.

If the executed nodes produce binary data, it will be included in the standard n8n binary data format within the output items.

Dependencies

  • Requires no external services directly but depends on the internal n8n workflow execution engine to run the dynamic node JSON as a sub-workflow.
  • No additional credentials are required beyond those needed by the nodes included in the pasted JSON.

Troubleshooting

  • Error: "Dynamic Node must be called with exactly 1 item."
    This node expects exactly one input item. Make sure the previous node outputs only one item.

  • Error: "Node JSON must be a valid JSON object or a parseable JSON string"
    The pasted JSON is invalid or not properly formatted. Verify the JSON syntax and ensure it represents a valid node or nodes configuration.

  • Error: "Each node must include a name field"
    Every node in the pasted JSON must have a name property. Check the exported JSON to ensure all nodes have names.

  • If the output is empty or unexpected, verify that the pasted node JSON is complete and correctly connected internally.

Links and References

Discussion