Skip to main content

Documentation Index

Fetch the complete documentation index at: https://colossal.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

A map step loops over an array and executes a set of steps for each element.

Configuration

FieldTypeDescription
sourcestringTemplate expression pointing to the array (e.g., {{payload.line_items}})
stepsarraySteps to execute for each item
maxItemsintegerMaximum items to process. Default: 100, max: 1000.
Within the loop body, access the current item with {{iteration.item}}:
{{iteration.item.product_name}}
{{iteration.item.quantity}}
{{iteration.item.unit_price}}

Example

Process each line item in an order:
{
  "id": "process-items",
  "type": "map",
  "source": "{{payload.line_items}}",
  "maxItems": 50,
  "steps": [
    {
      "id": "check-stock",
      "type": "action",
      "action": "colossal/check_inventory",
      "parameters": {
        "product_id": "{{iteration.item.product_id}}"
      }
    }
  ],
  "next": "after-processing"
}

Next steps