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

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

```
GET https://docs.gpmautomate.com/automate-zh/action-shi-yong-zhi-nan/workflow/delay.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.
