# \_2.7 Set Attribute

![Vị trí thẻ set attribute (tìm kiếm hoặc chọn trong cột Facebook)](/files/-MdGoCB9pI2dbizklw-P)

**Chức Năng**: Lưu 1 giá trị vào 1 Attribute cho khách hàng. Hành động này sẽ được hệ thống thực hiện ngầm mà không hiện ra cho khách hàng.

![VD thẻ set attribute](/files/-MdGrK_L9kNiyabrpHJv)

### 1. Điều kiện lọc:&#x20;

Xem lại \_2.6 Go to Block (Mục 1: Điều kiện (Bộ lọc))

{% content-ref url="/pages/-Ln33L4jrA\_cUA\_h765C" %}
[\_2.8 Go to Block](/2.-gioi-thieu-cac-element-card/_2.8-go-to-block.md)
{% endcontent-ref %}

### 2. User Attribute

* Là tên attribute của khách hàng.
* Có thể tạo 1 attribute mới cho khách hàng hoặc set lại 1 attribute cũ của khách hàng đã có với một giá trị mới.
* Thêm các attribute bằng cách click Add Item.

### 3. Value

* Là giá trị được set cho attribute.
* Có thể lưu giá trị là text hoặc số.
* Có thể thực hiện các phép tính +; -; \*; / ( Cộng; Trừ ; Nhân; Chia ) trong phần Value để tính toán giá trị cho khách hàng.
* Ghép các attribute text lại với nhau bằng cách điền 2 attribute liền nhau.

**Lưu Ý**:&#x20;

* Chỉ thực hiện các phép tính +; -;  \*; / khi attribute đó có giá trị là số.&#x20;

![VD phép tính lưu vào Attribute](/files/-LtJsC2P4CywWNsuv__0)

* Có thể sử dụng hàm trong phầm Value.

![VD sử dụng hàm \[=SEPRATOR(number)\] để in số tiền có dấu phẩy](/files/-LtJtGpyVFyeTnVGYtZd)


---

# 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://tailieu.smax.bot/2.-gioi-thieu-cac-element-card/_2.7-set-attribute.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.
