n8n-nodes-n8nparameter-input
v2.0.1
Published
A custom n8n node for parameter input with bilingual support
Maintainers
Readme
n8n-nodes-parameter-input
A custom n8n node for inputting parameters with bilingual support. This node allows you to define custom parameters in English and Chinese with various data types and default values, and outputs them as a JSON object for use throughout your workflow.
Features
- Bilingual Support: Define parameter names in both English and Chinese
- Multiple Data Types: Supports String, Number, Boolean, Date, JSON, and Dropdown types
- Default Values: Set default values for each parameter
- Dynamic Parameters: Add multiple parameters (up to 20)
- JSON Output: All parameters are output as a JSON object for easy use in subsequent nodes
Installation
n8n Cloud
- Go to the n8n Cloud dashboard
- Click on "Settings" > "Community Nodes"
- Add the "n8n-nodes-parameter-input" node
- Click "Install"
n8n Self-Hosted
npm install n8n-nodes-parameter-inputThen restart n8n.
Usage
- Drag and drop the "Parameter Input" node into your workflow
- Set the number of parameters you want to define
- For each parameter:
- Enter the English name (used as the JSON key)
- Enter the Chinese name (for display only)
- Select the parameter type
- Enter a default value
- Connect the node to other nodes in your workflow
- The parameter values will be available as
$json.parameterNamein subsequent nodes
Parameter Types
| Type | Description | |------|-------------| | String | A text string | | Number | A numeric value | | Boolean | True/false value | | Date | A date and time value | | JSON | A JSON object or array | | Dropdown | A dropdown selection (requires additional configuration) |
Example Output
If you define two parameters:
- English name: "apiKey", Chinese name: "API密钥", Type: String, Value: "1234567890"
- English name: "userId", Chinese name: "用户ID", Type: Number, Value: 1234
The output will be:
{
"apiKey": "1234567890",
"userId": 1234
}Configuration
Parameter Count
The number of parameters to define (1-20).
Parameter Fields
Each parameter has the following fields:
Parameter Name (English)
The English name of the parameter. This will be used as the key in the output JSON object. It's recommended to use camelCase or snake_case for compatibility.
Parameter Name (Chinese)
The Chinese name of the parameter. This is for display purposes only and will not be included in the output JSON.
Parameter Type
The data type of the parameter. See "Parameter Types" section for details.
Parameter Value
The default value of the parameter. The format depends on the parameter type.
Version History
- 2.0.0: Initial release
