参数输入

提供灵活的参数输入功能,支持多种数据类型和动态表达式

参数输入

AI-generated

Summary

Generate structured JSON output from user-defined parameters, supporting multiple data types and dynamic JavaScript expressions.

Inputs

  • parameters (required) — A collection of parameters where each parameter includes a name (used as the JSON key), a data type (string, number, boolean, date, array, or object), an optional date format (for date types), a value (which can be a fixed value or a JavaScript expression), an optional default value, whether it is required, and a description.

Output shape

a list of JSON objects each containing key-value pairs as specified by the configured parameters for each input item

The output preserves the input item index with pairedItem metadata. Parameters with empty values use their default values if specified; required parameters without values cause execution errors unless 'continueOnFail' is enabled. Date parameters are formatted according to the selected format (YYYY-MM-DD, ISO 8601, or Unix timestamp). JavaScript expressions are evaluated dynamically per input item.

Examples

Example 1: User configures three parameters: a string named 'username' with fixed value 'alice', a number named 'age' with a JavaScript expression to read from prior node data, and a date named 'signupDate' formatted as ISO 8601.

Defines parameters 'username' (string), 'age' (number), and 'signupDate' (date with ISO format); age value is an expression evaluated at runtime.

Discussion