Overview
This node acts as a customizable trigger that allows you to define your own methods and input fields for a workflow when it is used as a custom node within n8n. Essentially, it lets you create a flexible interface by specifying actions (methods) and the corresponding input parameters dynamically. This is particularly useful when you want to reuse workflows as nodes with configurable behavior without hardcoding the inputs or operations.
Common scenarios:
- Creating reusable workflow components that can perform different actions based on user selection.
- Defining dynamic input forms for workflows that adapt depending on the chosen method.
- Simplifying complex workflows by encapsulating them into configurable nodes.
Practical example:
You might define two methods, "Get" and "Update", each requiring different input fields. When this node is triggered, users select the action they want, fill in the relevant inputs, and the workflow executes accordingly.
Properties
| Name | Meaning |
|---|---|
| Note | Informational text guiding the user to define methods and input fields, then copy the generated config. |
| Methods (as a JSON Object) | Defines the available method dropdowns as a JSON object. For example, an "action" dropdown with options "Get" and "Update". |
| Input Fields | A collection of input fields that will be available for the user to fill. Each field has: - Default Value - Field Name (display name) - Show When... (JSON condition controlling visibility based on method) - Technical Name (internal identifier) - Type (String, Number, Boolean) |
| Node Configuration (Copy This) | Read-only JSON output combining the defined methods and input fields. Users copy this JSON to configure the "Execute Workflow as Node" node. |
Output
The node outputs the input data it receives unchanged. The json output field contains the same data as the input, effectively passing through the data without modification.
There is no binary data output from this node.
Dependencies
- No external services or API keys are required.
- No special environment variables or credentials are needed.
- This node relies solely on the configuration provided by the user within its properties.
Troubleshooting
Issue: The node does not behave as expected when selecting methods or filling input fields.
Cause: The JSON definitions for methods or input fields may be malformed or incomplete.
Resolution: Verify that the JSON syntax is correct and that the "Show When..." conditions correctly reference existing method values.Issue: The copied "Node Configuration" JSON does not work when pasted into the "Execute Workflow as Node" node.
Cause: The configuration might be outdated or missing required fields.
Resolution: Ensure you copy the entire JSON from the "Node Configuration (Copy This)" property after defining methods and input fields.Issue: Input fields do not appear or show incorrectly.
Cause: The "Show When..." JSON conditions might not match the selected method's technical name.
Resolution: Check that the keys and values in "Show When..." correspond exactly to the method names defined in the "Methods" JSON.