Looping in workflows
Looping allows you to repeatedly run a set of actions for each item in a list. viaSocket provides two loop mechanisms.

1. Webhook Loop
A Webhook Loop happens when an incoming webhook sends multiple records in a single payload. viaSocket automatically repeats the next step for each item the webhook contains.
When to use it
A webhook sends an array of items (e.g., orders, messages, leads)
You want to process each item independently
Examples
Shopify → webhook sends multiple line items → each item is processed separately
CRM → webhook sends a batch of leads → each lead flows through the same sequence
2. Loop in the Trigger
This loop executes when a trigger source (like a Google Sheet or Table) contains multiple rows. viaSocket loops through each row and sends data into the workflow one by one.
You can configure this using Run Flow Individually on the Trigger block — it processes each record separately instead of all at once.
When to use it
The trigger is a data store (Sheet, Table, or API pagination)
You want the workflow to run once per record
Ideal for batch data or cron-based actions
Examples
Google Sheet → "For every row, generate a task"
Table → "Every 30 minutes, process pending records"
Cron Trigger → "Every 3rd day, send email to all unpaid customers"
Important: Looping works only in Triggers. Action steps cannot create loops