> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/en/autify-university/foundation/creating-a-scenario/sleep-step.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Sleep Step

It is possible to sleep for a certain period of time by adding a ***\[Sleep Step]***.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-a76d5b085149be5cac754b2e639e2d84db497102%2FScreen%20Shot%202022-12-26%20at%2014.15.39%20copy.png?alt=media)

However, Autify automatically waits for a certain period of time until an element appears and the operation or verification set in that step becomes possible, so it is almost never necessary to set sleep with the intention of adjusting the display timing of the element.

There are two main cases where it is better to sleep using the ***\[Sleep Step]***:

1. If page loading takes a long time
   * It takes a long time to load, and it times out while running tests
   * It does not time out, but the loading widget blocks the operation so it does not work properly
   * It is necessary to wait for backend processing that cannot be judged from the screen
2. When an unexplained failure occurs immediately after page transition
   * It fails at the ***\[JS Step]*** immediately after the page transition
   * It fails in the verification of URL and title immediately after page transition

Up to 600 seconds (10 minutes) can be set per step.


---

# 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://help.autify.com/nocode-web/en/autify-university/foundation/creating-a-scenario/sleep-step.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.
