# Gọi giới tính

{% embed url="<https://www.youtube.com/watch?v=KkVz4GjE9OQ&feature=youtu.be>" %}

## Chức năng

Gọi giới tính (Anh/Chị) mà User đăng ký với Facebook khi tạo tài khoản trong Kịch bản.

* Ví dụ:

![](/files/-MN2o4kGOf_Y-jE2ZZO_)

## Cài đặt

### 1. Cài đặt tại thiết lập

Tại giao diện Chatbot truy cập **Thiết lập** => **Thiết lập chung** để tiến hành cài đặt giới tính.

![Truy cập Thiết lập => Thiết lập chung](/files/-MN2ebChyApHGzMGKqVo)

Chọn qua Tab **Tương Tác** thêm giá trị Cá nhân hoá giới tính.

![Truy cập Tab Tương tác](/files/-MN2eu03_JhVD2topv5b)

![](/files/-MN2nsbGMB7qGe5lAuh7)

Điền các **Giá trị thực tế** và **Tuỳ biến** theo hướng dẫn.

![Điền các giá trị theo hướng dẫn](/files/-MN2oThmOCgEJdl-KYTA)

**Lưu** để hoàn thành thiết lập.

### 2. Cài đặt trong kịch bản

Tại [Kịch bản](https://docs.botbanhang.vn/xay-dung-chatbot-voi-bot-ban-hang/kich-ban) gọi giới tính bằng cách gọi Thuộc tính "gender" theo 1 trong 2 cách:

* Ấn **Shift + 4** sau đó gọi **gender.**
* Gọi trực tiếp bằng cú pháp *{{gender}}.*

![](/files/-MN2ibF6SQJ_EGj_cPSK)

![](/files/-MN2j0VZM7J09IzI9wtJ)

Lưu kịch bản và ấn **Đến** để xem kết quả.

![Ấn đến để xem kết quả](/files/-MN2jNQO5cjRECbmE17T)

![Kết quả nhận được](/files/-MN2jYABZ3BGNcVrchg8)

### 3. Gọi giới tính viết hoa chữ cái đầu tiên (Tuỳ chỉnh)

Tại kịch bản gọi giới tính bằng cú pháp *{{gender | capitalize}}* để gọi giới tính với chữ cái đầu tiên được viết hoa (Thường dùng để gọi khách hàng khi giới tính ở đầu câu).

![Gọi giới tính {{gender | capitalize}} để viết hoa chữ cái đầu](/files/-MN2l9eEVfVAEffUBpuC)

**Lưu** và ấn **Đến** để xem kết quả.

![Kết quả nhận được](/files/-MN2ljm6M9J-19gkadRd)


---

# 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.botbanhang.vn/xay-dung-chatbot-voi-bot-ban-hang/goi-gioi-tinh.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.
