> For the complete documentation index, see [llms.txt](https://docs.aviator.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aviator.co/runbooks/how-to-guides/step-by-step-execution.md).

# Step-by-step execution

Runbooks in Aviator execute through a carefully orchestrated step-by-step process that ensures reliable automation while providing visibility into each stage of your workflow. Understanding how this execution model works helps you design more effective Runbooks and troubleshoot issues when they arise.

### Sequential step processing

Every Runbook creates [one or more steps](/runbooks/concepts/runbook-format.md), with larger tasks that may go into hundreds of steps and substeps. These steps are designed to be executed in-order as a subsequent step in the Runbook may have dependency on a previous step completed.

By default, runbook steps execute sequentially, with each step waiting for the previous one to complete before beginning. This sequential approach provides predictable behavior and makes it easier to understand the workflow logic, especially when steps have dependencies on outputs from earlier stages.

### Executing a single step

To execute a single step, simply click on "Execute Next" button on the steps view.

<figure><img src="https://273246003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAPqUQVbLbsfI5YESl32%2Fuploads%2FAIG1zYzI0yFFhjMiqObi%2FScreenshot%202025-10-28%20at%204.41.17%E2%80%AFPM.png?alt=media&amp;token=5a11eae3-b22e-446e-b57a-62eed33fcdfe" alt=""><figcaption></figcaption></figure>

You can alternatively also click on "Run" button next to a Step or a Substep. Keep in mind when clicking "Run" button that:

* when running the next substep, only that substep is executed,
* when running the parent step, it will enqueue and execute all substeps within that step one by one.

<figure><img src="https://273246003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAPqUQVbLbsfI5YESl32%2Fuploads%2Fgp1CtpxtfMCCQpOQzwfa%2FScreenshot%202025-10-28%20at%204.41.26%E2%80%AFPM.png?alt=media&amp;token=9332f230-5fce-42f6-b108-213c82fca1b9" alt=""><figcaption></figcaption></figure>

### Step queuing

While a step is running, you can still enqueue more steps. This can be done by clicking on the "+" sign next to the steps. These steps will not immediately run and will be executed when the previous steps have been completed.

When enqueuing or running a step further down the order, Runbooks will automatically enqueue all steps in the middle that are not executed yet.

<figure><img src="https://273246003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAPqUQVbLbsfI5YESl32%2Fuploads%2F6pkaTqjyNnWpxm34jTp6%2FScreenshot%202025-10-28%20at%205.14.37%E2%80%AFPM.png?alt=media&amp;token=6f6b5913-f6c1-4b39-84c7-2dcda0f11fbb" alt=""><figcaption></figcaption></figure>

### Stopping execution

Execution of any step can be perfomed by either clicking "Stop" on the Claude code message bar, or by clicking "Stop execution" button at the top right on the Steps view.

<figure><img src="https://273246003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAPqUQVbLbsfI5YESl32%2Fuploads%2FmXfSVZ7Fm48Bx1LG8wee%2FScreenshot%202025-10-28%20at%205.18.02%E2%80%AFPM.png?alt=media&amp;token=5bfe9ab8-5da6-49a1-83bd-27cc801aadd4" alt=""><figcaption></figcaption></figure>

In both cases, the execution is stopped and the step is marked as failed. Any subsequent steps that were queued will be automatically dequeued.

<figure><img src="https://273246003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAPqUQVbLbsfI5YESl32%2Fuploads%2FXxvffDR29Rqmu6m5uUs7%2FScreenshot%202025-10-28%20at%205.17.57%E2%80%AFPM.png?alt=media&amp;token=8b1753c1-c8e1-431a-ab55-df72560400cc" alt=""><figcaption></figcaption></figure>

***


---

# 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.aviator.co/runbooks/how-to-guides/step-by-step-execution.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.
