# Interval

The Interval action step is used to execute all successive action steps at a given interval. For example, you can use it to execute a set of actions every 5 seconds.

## Action configuration

Here's how you can configure an Interval action:

1. Create a new action, add an **Interval** as the *first step*, and set the *Interval in millisecond*s, for example: 5000.
2. Add a *second step* to this action and select a Load Table/HTTP Request action step.
3. Now, run the action.

You will notice that the second step in the action is executed every 5 seconds (or your custom interval) and the action itself continues running.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2FfPxQMkGhUH06jh65fIZn%2FCleanShot%202025-05-15%20at%2012.50.05%402x-min.png?alt=media&#x26;token=3f7bba20-ddec-42ba-a476-2237bf2053f4" alt=""><figcaption></figcaption></figure>

There are also two settings you can configure for this action:

* **Cancel interval when condition is met**

You can use it to specify the condition for the Interval action to stop. For example, you can use a *Toggle* component's value - `{{ui.toggle.value}}` to stop the action step when the toggle is set to `true`:

```javascript
return {{ui.toggle.value}};
```

* **Avoid proceeding to the next interval if the current one remains unfinished**

By enabling this setting you can make sure that the Interval action will wait for the previous interval to finish before proceeding to the next one.\
It's useful when you want the requests to be executed in a specific order, say finish the previous request first before executing the next one.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2FPnby0D2dwobIzKV7ILIl%2FCleanShot%202025-05-15%20at%2013.17.37%402x-min.png?alt=media&#x26;token=e6dd5595-127d-4eae-94d6-ff078206ec3a" alt=""><figcaption></figcaption></figure>


---

# 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.uibakery.io/reference/working-with-actions/interval-action.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.
