> 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/cao-zuo-zhi-nan/workflow/delay.md).

# 延迟

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

此操作支持随机延迟机制（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/cao-zuo-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.
