Dynamic Node icon

Dynamic Node

Dynamically execute any node JSON within your workflow

Dynamic Node

AI-generated

Overview

The Dynamic Node allows you to dynamically execute any node JSON within your n8n workflow. It is useful when you want to run a node configuration that is not statically defined in the workflow but provided at runtime as JSON. For example, you can paste an exported node JSON and have it executed dynamically, enabling flexible and reusable workflow components.

Use Case Examples

  1. Dynamically running a node configuration exported from another workflow without manually recreating it.
  2. Testing or debugging node JSON configurations by executing them directly within a workflow.
  3. Creating workflows that adapt their behavior based on JSON input defining different nodes.

Properties

Name Meaning
Node JSON The JSON object or parseable JSON string representing the exported node configuration to be dynamically executed.

Output

JSON

  • data - The output data from the dynamically executed node JSON. This is the result of running the provided node configuration within the workflow.

Dependencies

  • Requires the ability to execute sub-workflows dynamically within n8n.
  • Uses UUID generation for unique node IDs.
  • Relies on valid node JSON input to function correctly.

Troubleshooting

  • Error if input items count is not exactly one: The node expects exactly one input item to function properly.
  • Error if the provided Node JSON is not a valid JSON object or parseable string.
  • Error if the Node JSON does not contain a 'name' field, which is mandatory for execution.
  • Warnings if the sub-workflow execution result is null, undefined, or not an array, resulting in empty output data.

Links

Discussion