Access and use input parameters in automations
The /inputs
command enables you to access and utilize input parameters passed to your automation. You can retrieve POST body data, query parameters, form submissions, and API payloads that trigger your automation, allowing you to create dynamic workflows that respond to external data and user inputs.
Required:
parameter-name
- The name of the input parameter to retrieveOptional:
default-value
- Value to use if parameter is not foundvalidation
- Validation rules to apply to the inputtransform
- Transformation to apply (e.g., uppercase, parse-json)The command returns:
Retrieves the userId parameter from the automation inputs.
Retrieves orderData with validation, parsing JSON string into an object with a default empty object if not provided.
Retrieves an email parameter, validates it’s a proper email format, and converts to lowercase.
Input Sources: