# 自訂屬性（加購功能）

## 用戶輸入建立自訂屬性

<figure><img src="https://2493459343-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LaFmilpuDQ-f7VKjHCH%2Fuploads%2FSFghZKWgLZ74haNEWioE%2F%E6%A9%9F%E5%99%A8%E4%BA%BA2.0.png?alt=media&#x26;token=038d80ac-e572-4e4e-b92f-ca2ab1a2affe" alt="" width="563"><figcaption><p>建立自訂屬性</p></figcaption></figure>

1. **Attribute Key（必填）：**\
   儲存在社群客戶資料平台的自訂屬性名稱。只可以使用英文、數字和底線，不可輸入空格，且英文有區分大小寫，例如：member\_points、memberPoints。
2. **類型（必選）：**\
   根據要儲存的資料性質而選擇，包含文字、數字、日期、日期與時間、布林值（是與否）。
3. **顯示名稱（選填）：**\
   此自訂屬性在 Omnichat 後台的顯示名稱，此為選填欄位，若沒有填寫則會以 Attribute Key 名稱顯示。
4. **說明（選填）：**\
   可自由輸入此自訂屬性的用途說明，若沒有填寫則以空白顯示。

## 自訂屬性總覽頁面

<figure><img src="https://2493459343-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LaFmilpuDQ-f7VKjHCH%2Fuploads%2FqahXvbmWqh8lERLHUgid%2F%E6%A9%9F%E5%99%A8%E4%BA%BA2.0%E6%8B%B7%E8%B2%9D.png?alt=media&#x26;token=7901f809-f00f-4218-8663-547571a10fd9" alt=""><figcaption></figcaption></figure>

1. **啟用中：**&#x6B63;在使用中的自訂屬性列表。
2. **封存：**&#x76EE;前已停用的自訂屬性列表。
3. **搜尋功能：**&#x53EF;輸入顯示名稱或 Attribute Key，快速尋找已建立的自訂屬性。
4. **建立自訂屬性：**&#x65B0;增自訂屬性。
5. **動作：**&#x5C0D;該自訂屬性執行不同動作。
   1. 啟用中列表可執行：**編輯、封存**。
   2. 封存列表可執行：**編輯、啟用、刪除**。

## 機器人中的自訂屬性設定

### 網站對話插件、Facebook、LINE 可使用的機器人自訂屬性

* 目前可使用自訂屬性的機器人卡片有以下5種：\
  **文字訊息、輪播訊息、圖片輪播訊息、快速回覆、用入輸入**
* 下圖以**用戶輸入**卡片為例，在卡片按鈕設定中找到 **「 附加動作 」** ，\
  點擊 **「 ＋新增動作 」** → **「 存為自訂屬性 」** ，選擇已建立的自訂屬性，\
  即可紀錄**用戶輸入的內容**到此自訂屬性內。

<figure><img src="https://2493459343-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LaFmilpuDQ-f7VKjHCH%2Fuploads%2FTbDmriHYIsjEdk2LgxoQ%2F%E6%88%AA%E5%9C%96%202025-03-19%20%E4%B8%8B%E5%8D%884.12.45.png?alt=media&#x26;token=a8f02eef-2453-4753-a15b-fa3a6e4298f3" alt=""><figcaption><p>舉例：用戶輸入卡片中的自訂屬性設定</p></figcaption></figure>

### WhatsApp 可使用的機器人自訂屬性

* 目前可使用自訂屬性的機器人卡片有以下3種：\
  **文字訊息、列表選項、用入輸入**
* 下圖以**選項列表**卡片為例，在卡片按鈕設定中找到 **「 附加動作 」** ，\
  點擊 **「 ＋新增動作 」** → **「 存為自訂屬性 」** ，選擇已建立的自訂屬性，\
  即可紀錄**用戶點選的按鈕**到此自訂屬性內。

<figure><img src="https://2493459343-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LaFmilpuDQ-f7VKjHCH%2Fuploads%2FCLzGo5KlT16nFFQ7tuyI%2F%E6%88%AA%E5%9C%96%202025-03-19%20%E4%B8%8B%E5%8D%884.54.48.png?alt=media&#x26;token=236dd8d3-6a18-4a76-a768-282633f8cd8a" alt=""><figcaption><p>舉例：選項列表卡片中的自訂屬性設定</p></figcaption></figure>

***

{% hint style="danger" %}
如客戶重新觸發卡片並填入資料，該資料會覆蓋上一次填寫的資訊儲存到自訂屬性內（以最新填寫的為主）。
{% endhint %}

## 其他自訂屬性補充

* 自訂屬性也可以在對話右側的顧客資料中查看。

<figure><img src="https://2493459343-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LaFmilpuDQ-f7VKjHCH%2Fuploads%2FOHvvHdClc2yY3pPQYwZ7%2F%E6%88%AA%E5%9C%96%202025-03-19%20%E4%B8%8B%E5%8D%884.31.03.png?alt=media&#x26;token=dfe8ebad-06e1-464e-978f-f6e65553c032" alt="" width="563"><figcaption><p>對話右側顧客資料查看自訂屬性</p></figcaption></figure>

* 自訂屬性同步過程（機器人卡片）

<figure><img src="https://2493459343-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LaFmilpuDQ-f7VKjHCH%2Fuploads%2F5HfWYcylWEzPJt0CFNGy%2F%E8%87%AA%E8%A8%82%E5%B1%AC%E6%80%A7%E5%90%8C%E6%AD%A5%E9%81%8E%E7%A8%8B.gif?alt=media&#x26;token=a186853e-3d99-4ab1-80ea-4b8137fd603d" alt=""><figcaption><p>自訂屬性同步過程（機器人卡片）</p></figcaption></figure>

* 自訂屬性同步過程（用戶輸入卡片）

<figure><img src="https://2493459343-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LaFmilpuDQ-f7VKjHCH%2Fuploads%2Fo2qTmFBEpAcPDF58RkIY%2F%E8%87%AA%E8%A8%82%E5%B1%AC%E6%80%A7user%20input.gif?alt=media&#x26;token=7fb28c0e-4bdc-4751-b1ef-7a2fb950b8d1" alt=""><figcaption><p>自訂屬性同步過程（用戶輸入卡片）</p></figcaption></figure>

***

* 可以使用自訂屬性當作條件來篩選推播受眾進行推播。

<figure><img src="https://2493459343-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LaFmilpuDQ-f7VKjHCH%2Fuploads%2Fs7ob5wmH2kWX6PStLhtb%2F%E6%88%AA%E5%9C%96%202025-03-19%20%E4%B8%8B%E5%8D%885.07.42.png?alt=media&#x26;token=962e32b6-4424-4118-b1bc-a051597987ce" alt=""><figcaption><p>使用自訂屬性條件推播</p></figcaption></figure>


---

# 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.omnichat.ai/features/she-qun-ke-hu-zi-liao-ping-tai/zi-ding-shu-xing-jia-gou-gong-neng.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.
