# After Repeat

Lets you do actions **after** loop iterations completed.&#x20;

*After Repeat* building block must always be placed after *Start Repeat* building block. Below are some examples.

#### **Example 1**: Send yourself an email notification after your TaskBot finished its run

This is the workflow set-up where *Start Repeat* building block is set to loop through some actions. *After Repeat* is placed right after *Start Repeat* building block and ensures that TaskBot will send you an email once all loop iterations are completed.

<figure><img src="/files/Cqn2KsebKO6wal5b4Nsb" alt=""><figcaption></figcaption></figure>

#### **Example 2**: Chain multiple loops - first collect leads, then engage with them in the same run

*After Repeat* can produce 'workflow in workflow' effect since it lets you chain multiple independent loops within the same workflow.&#x20;

Imagine that you set up a loop to collect leads, as described here: [Save Lists](/using-zerowork/using-building-blocks/save-web-element/save-lists.md), and you set up another loop to iterate over collected leads and visit each profile, as described here: [Enrich Existing Data](/using-zerowork/using-building-blocks/save-web-element/enrich-existing-data.md). You can create two separate TaskBots for these two scenarios. Or, you can use *After Repeat* to unite both in the same workflow, as shown below.

<figure><img src="/files/38Bu1a2MrYykiPMfXRBa" alt=""><figcaption></figcaption></figure>

### Video Tutorial

{% embed url="<https://youtu.be/zUDBdcjxwoc?si=2y9DWsJbdF7Jcb27>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zerowork.io/using-zerowork/using-building-blocks/after-repeat.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
