# Stop Automation

**Introduction**

The "Stop Automation" step immediately halts the execution of the current automation. This step is useful for stopping automations based on certain conditions or at specific points in your workflow without throwing an exception.

**Configuration**

* **Message**: An optional message explaining why the automation was stopped. This message can provide context or details about the stop action and you will be able to see it in logs (Automation Jobs).


---

# Agent Instructions: 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:

```
GET https://docs.flexy.bot/modules/scripting/steps/stop-automation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
