# Loop Actions

The command builder offers multiple loop actions. They allow you to start and stop actions from repeating for a set number of times. Below you may find some general information about each block. Click on its name for more information.

<table><thead><tr><th data-type="content-ref">Block</th><th>Information</th></tr></thead><tbody><tr><td><a href="loop-actions/run-a-loop">run-a-loop</a></td><td>The run a loop action allows you to trigger actions that will repeat for a set number of times.</td></tr><tr><td><a href="loop-actions/stop-a-loop">stop-a-loop</a></td><td>The stop a loop action allows you to break out of any active loops within the command or event, and trigger blocks that fall under the "After loop" section.</td></tr></tbody></table>


---

# 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://documentation.botghost.com/custom-commands-and-events/actions/loop-actions.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.
