> For the complete documentation index, see [llms.txt](https://docs.botbanhang.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.botbanhang.vn/xay-dung-chatbot-voi-bot-ban-hang/4.5.-gui-tin-nhan-hang-loat/thuoc-tinh.md).

# Phân loại khách hàng theo thuộc tính

![](/files/-M5HFu10idjnDx6b1wVa)

Giả sử bạn có 100k khách hàng trong inbox gửi hàng loạt thì chỉ có 30k khách tương tác lại. Vậy làm sao để  gửi tin lần tiếp theo bạn chỉ có thể gửi đến 70k "khách chưa inbox".

Bước 1: Vào phần nâng cao chọn "Thuộc tính tuỳ biến".

![](/files/-M5HJv1TZOHIf0cKFxsu)

Bước 2: Tạo 1 thuộc tính: Phạm vi là "khách hàng" và kiểu dữ liệu là "Chuỗi ký tự"

![](/files/-M5HGcs-h2e9hW7MXhti)

Bước 3: Vào "Chat bot" đến "kịch bản" để tạo kịch bản. Trong kịch bản sử dụng hành động "Lưu dữ liệu".

![](/files/-M5HHQreBtS53mUHAw0W)

Chọn trường dữ liệu và **điền** dữ liệu cần lưu.

**Chú Ý:** Dữ liệu cần lưu phải để trong dấu ngoặc nhấy hoặc ngoặc đơn.

Bước 4: Vào Chat bot đến "Chiến dịch".

Trong chiến dịch dùng nút ấn kích hoạt kịch bản mới tạo. Và khi gửi hàng loạt đến khách hàng, nếu khách tương tác vào nút ấn, hệ thống sẽ lưu khách hàng vào trong dữ liệu.

Bước 5: Gửi tin nhắn lần 2.

![](/files/-M5HJMP4RiGqOz6hzy4y)

Trong chiến dịch bạn chọn đến phần "Lọc khách hàng theo thuộc tính". Chọn thuộc tính và lấy điều kiện **không bằng** giá trị (**khachlan1**)  của kịch bản trên. Hệ thống sẽ gửi đến tất cả những khách hàng mà đã chưa tương tác với kịch bản.


---

# 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.botbanhang.vn/xay-dung-chatbot-voi-bot-ban-hang/4.5.-gui-tin-nhan-hang-loat/thuoc-tinh.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.
