> For the complete documentation index, see [llms.txt](https://docs.uibakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uibakery.io/reference/working-with-actions/interval-action.md).

# 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&amp;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&amp;token=e6dd5595-127d-4eae-94d6-ff078206ec3a" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uibakery.io/reference/working-with-actions/interval-action.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
