> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/automate-zh/action-shi-yong-zhi-nan/workflow/delay.md).

# Delay

Delay 是用于在执行下一个操作之前，暂停脚本一段时间的操作。在 GPM Automate 的配置中，时间以毫秒（ms）计算，其中 1 秒 = 1000 毫秒。

该操作支持随机停止机制（Random Delay），可以精确模拟真实用户的操作方式，最大限度地降低被系统/平台扫描自动化行为（Anti-bot）的频率。

#### 配置参数：

* Min (ms)：最短停止等待时间。
* Max (ms)：最长停止等待时间。

#### 实际示例：

如果您将 Min 配置为 `2000`，Max 配置为 `4000`。当脚本运行到此操作时，系统将自动计算并将流程暂停在 2000ms 到 4000ms 之间的一个随机时间段内（例如：这一次暂停 `2843 ms`，下一次可能暂停 `3120 ms`）。


---

# 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 dynamically by asking a question.

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

```
GET https://docs.gpmautomate.com/automate-zh/action-shi-yong-zhi-nan/workflow/delay.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
