> 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/huong-dan-cac-action/workflow/stop.md).

# Stop

Stop là hành động dùng để dừng ngay lập tức kịch bản đang chạy tại vị trí đó.

> 📌 Lưu ý về phạm vi: Hành động này chỉ có tác dụng kết thúc luồng (thread) đang chạy của chính profile hiện tại, không ảnh hưởng đến các luồng hoặc các profile khác đang chạy song song trong cùng một đợt vận hành.

Hành động này thường được kết hợp bên trong khối lệnh điều kiện If để xử lý các lỗi nghiêm trọng, lỗi không thể tiếp tục kịch bản, hoặc khi luồng đã hoàn thành xong nhiệm vụ chính.

#### Ví dụ thực tế: Dừng luồng khi tài khoản bị Checkpoint

Giả sử bạn làm kịch bản nuôi tài khoản. Khi mở trình duyệt lên, nếu phát hiện tài khoản đã bị khóa (Checkpoint) thì việc thực hiện các hành động tiếp theo như lướt bài viết, thả tim, nhắn tin... là hoàn toàn vô nghĩa và tốn tài nguyên máy.

* Cách cấu hình:
  * Dùng khối lệnh If kiểm tra sự xuất hiện của thông báo lỗi: `Nếu xuất hiện chữ "Tài khoản bị khóa"`.
  * Nằm bên trong khối If này, bạn gọi hành động Stop.
* Kết quả: Khi hệ thống quét thấy tài khoản bị khóa, nó sẽ gặp lệnh Stop và đóng luồng của profile đó lại ngay lập tức. Các profile ở các luồng khác vẫn tiếp tục chạy bình thường mà không bị ảnh hưởng.


---

# 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/huong-dan-cac-action/workflow/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.
