> For the complete documentation index, see [llms.txt](https://docs.dckapintegrator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dckapintegrator.com/tutorials/workflow-builder-tutorial/2.-hello-workflow/2.6-lets-control-the-flow-pause-and-stop.md).

# 2.6 🎮 Let's Control the Flow — Pause & Stop

⏸️ **Let's Control Execution — Pause & Stop**

Sometimes you need your workflow to wait for a moment before continuing, or stop entirely based on a condition. That is exactly what the Sleep and Stop tools help you do.

**Step 1:** Add a Console step with any message — for example: Workflow Started.

**Step 2:** Add a Sleep tool. By default, the workflow pauses for 5 seconds when the Sleep tool is used. You can configure the number of seconds based on your requirement.

**Step 3:** Add another Console step with any message — for example: Workflow Resumed.

When you run this workflow, the console logs Step 1, pauses for the configured duration, and then logs Step 3.

\
🛑 **Stopping a Workflow Mid-Execution**

The Stop tool lets you hard stop the workflow at any step during execution.

This is useful when a condition is not satisfied and continuing the workflow does not make sense. Simply add the Stop tool at the point in the workflow where you want execution to end.

#### &#x20;🎉 You have successfully controlled the flow in a workflow!

<br>


---

# 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.dckapintegrator.com/tutorials/workflow-builder-tutorial/2.-hello-workflow/2.6-lets-control-the-flow-pause-and-stop.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.
