# Repeat Actions

**Repeat Actions** runs the loop body once per item. Ports: **For each item** (body) and **After loop**.

  <ShotPlaceholder
    src="/assets/workflow-nodes/loop.png"
    name="wn-loop"
    alt="Repeat Actions — Array field"
    capture="Repeat Actions node. 1600×900. Array field. No PII."
  />

## Why this node

Each open order gets a line. Each match from [Filter Data](https://docs.voicelogica.ai/workflow-nodes/filter/) is written to a sheet. Mid-call, a long loop is a long pause — prefer End, or cap what you iterate.

## What you configure

- **Array** (required) — The collection. Insert a node token typed as an array (`{{orders}}`, `{{node_3.rows}}`).

Wire the body on **For each item**. Wire what happens when the list is done on **After loop**.

## First setup — one SMS per row (after hang-up)

1. [On Call End](https://docs.voicelogica.ai/workflows/on-call-end/) → API or table that returns a list.

2. Optional [Filter](https://docs.voicelogica.ai/workflow-nodes/filter/). Then **Repeat Actions**. **Array** = that list.

     <ShotPlaceholder
       src="/assets/workflow-nodes/loop-filled.png"
       name="loop-filled"
       alt="Repeat Actions filled"
       capture="Workflow builder → Repeat Actions selected. Array field mapped to the list. 1600×900. Redact numbers/emails/PINs."
     />

3. Body: [Send Text Message](https://docs.voicelogica.ai/workflow-nodes/sms/) or [Manage Google Sheet](https://docs.voicelogica.ai/workflow-nodes/manage-google-sheet/) using the current item fields.

4. **After loop** → done. **Save**. **Run test** with two items.

## What “broken” looks like

- **Needs setup** — empty Array.
- Body never runs — you wired only **After loop**, or Array is not a list.
- Caller waits — this loop is on During Call.

## Troubleshooting

**How do I get the current item?**

Insert from **Node Variables** on the loop body — the item fields from the array you pointed at. **Run test** shows each pass.

## Next Steps

[Filter Data](https://docs.voicelogica.ai/workflow-nodes/filter/).  
[On Call End](https://docs.voicelogica.ai/workflows/on-call-end/).  
[Data Table](https://docs.voicelogica.ai/workflow-nodes/data-table/).
