Custom Flow Inputs

Flow can return custom inputs in a step response which will be automically added as inputs.

This is useful for passing custom data between steps.

Example

{
    "type": "product_selection",
    "payload": { ... },
    "inputs": { "return_id": "gid://shopify/Return/11111111" }
}

The return_id will be included as a flow input for any subsequent return flow executions.