Skip to main content
Parameters control data flow in Optexity automations. They enable you to run the same automation with different inputs and capture outputs for use in subsequent steps.

Parameter Types

Defining Parameters

All parameters must be declared in the automation’s parameters object:
Values must always be lists: ["value"] not "value".

Accessing Parameters

Use {variable_name[index]} syntax to reference values:

Where Substitution Works

Input Parameters

Values provided before execution. Declare placeholder values in the automation; actual values are passed in the inference request. In automation:
In inference request:

Generated Parameters

Values extracted during execution. Initialize as empty lists; they’re populated by extraction actions.
Populate using output_variable_names in extraction actions:
After extraction, use {order_ids[index]} in subsequent actions or iterate with for_loop_node.
Only str and List[str] types can be stored as variables. Other types can be extracted but won’t be available for substitution.

Secure Parameters

Sensitive values retrieved from secure storage at runtime. Never hardcode passwords in automations.

1Password Integration

TOTP Codes

Generate 2FA codes from a TOTP secret:
Or retrieve TOTP secret from 1Password:
See 1Password Integration and TOTP Integration for setup instructions.

Loop Index Variable

In for_loop_node, use {variable[index]} for the current iteration value:
If product_ids = ["PROD-1", "PROD-2", "PROD-3"]:
  • Iteration 1: {product_ids[index]}"PROD-1"
  • Iteration 2: {product_ids[index]}"PROD-2"
  • Iteration 3: {product_ids[index]}"PROD-3"
A for_loop_node can also iterate a locator instead of a parameter, in which case {locator[index]} is the current match rather than a value. See For Loop Node.

Complete Example

This automation logs in, extracts order IDs, and processes each order:

Best Practices