# Label API (Gẵn nhãn)

## 1. Chọn biểu tượng "Thiết lập" từ Chatbox <a href="#id-1-chon-bieu-tuong-thiet-lap-tu-chatbox" id="id-1-chon-bieu-tuong-thiet-lap-tu-chatbox"></a>

![](https://gblobscdn.gitbook.com/assets%2F-MDfRuoSIcFsb2DjQjYD%2F-MDfpXuZ119IzakMfqGD%2F-MDfqyX7yVIAm8aFzJYF%2Fimage.png?alt=media\&token=ced2de83-4f34-4099-ad0f-1e5da859c342)

Chọn biểu tượng "Thiết lập"

​

## 2. Thực hiện các bước dưới để lấy API. <a href="#id-2-thuc-hien-cac-buoc-duoi-de-lay-api" id="id-2-thuc-hien-cac-buoc-duoi-de-lay-api"></a>

1. Chọn "**Page"**
2. Chọn tab "**API**" - Nếu chưa có Mã token, ấn nút **\[Tạo mới]**
3. Chọn nhân viên bạn muốn chỉ định hoặc chọn Nhãn bạn muốn gắn.
4. Copy link API.

Lưu ý: Trong API có tham số **{{client\_id}}** tức là PSID. Đây là trường dữ liệu động được sử dụng trong Chatbot. Nếu bạn gửi từ API từ server thì cần thay đúng PSID vào **{{client\_id}}.**

![](https://gblobscdn.gitbook.com/assets%2F-MDfRuoSIcFsb2DjQjYD%2F-MDfpXuZ119IzakMfqGD%2F-MDfqYxkN0nkPt-icFbM%2Fimage.png?alt=media\&token=7dc96aff-9a94-4060-8303-2994f1d72179)


---

# 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://dev.botbanhang.vn/chatbox/label-staff-api/label-api-gan-nhan.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.
