Looping in workflows
Looping allows a Workflow to process multiple items one by one. Instead of handling a list of records as a single input, viaSocket can run the following Workflow steps separately for each item.
viaSocket supports two types of looping:

1. Webhook Loop
A Webhook Loop occurs when an incoming webhook contains multiple records in a single payload. viaSocket processes each item separately through the next steps of the Workflow.
When to use it
Your webhook sends an array of items, such as orders, messages, or leads.
You want to process each item independently.
Examples
Shopify: A webhook sends multiple line items → each item is processed separately.
CRM: A webhook sends a batch of leads → each lead goes through the same Workflow steps.
2. Loop in the Trigger
A Loop in the Trigger is used when a Trigger returns multiple records, such as rows from a Google Sheet or Table. viaSocket processes each record separately.
You can enable this behavior using Run Flow Individually on the Trigger block.
When to use it
Your Trigger returns multiple records.
You want the Workflow to run once for each record.
You need to process multiple records from a data source.
Examples
Google Sheets: For every row, generate a task.
Table: Every 30 minutes, process pending records.
Scheduled Trigger: Process each unpaid customer separately.
Important: Looping is supported through Triggers. Action steps do not create loops.