# 文字訊息

文字訊息卡片可用於傳遞訊息、按鈕引導客人進入下一步、跳轉網址，或幫客人貼上標籤。

這張卡片是由[文字](#wen-zi)以及[按鈕](#an-niu)所組成的。

文字欄位支援文字、連結、Emoji，也可以添加按鈕，引導客人進入下一步、跳轉至指定網址，或在點擊按鈕時自動貼上標籤。

<div align="left"><figure><img src="/files/RK83fCf6aQT19tN1LRhr" alt="" width="299"><figcaption><p>文字卡片</p></figcaption></figure></div>

### 文字

各平台的文字字數有以下限制：

### 按鈕

若在文字訊息下新增按鈕，訊息會變成有按鈕的文字按鈕訊息卡片。

{% hint style="info" %} <mark style="color:red;">**按鈕文字：**</mark>按鈕文字數至多為 20 字元。（僅 WhatsApp 的點擊觸發動作設定 「開啟URL」 時，一個中文字會算三個字，其它情況下一個中文字都算一個字）

**各平台的**<mark style="color:red;">**按鈕數量**</mark>**有以下限制：**
{% endhint %}

點擊按紐可觸發以下動作：

<div align="left"><figure><img src="/files/VDrun0dkU1FKw0Bhk3ch" alt="" width="375"><figcaption></figcaption></figure></div>

1. **點擊觸發動作**

   1. **回覆模組：**&#x7576;客人按下按鈕時，會前往對應的對話模組。
   2. **開啟URL：**

      1. 當客戶按下按鈕時，會打開瀏覽器前往該URL。
      2. 若要讓客人點選URL的同時，完成[**機器人綁定**](https://docs.omnichat.ai/features/marketing/chatbot-builder/ji-qi-ren-bang-ding-zhan-wai-bang-ding)，URL務必不能使用**短網址、縮址和轉址** 。
      3. 點右下角的icon可替換參數。❗**請留意：網站對話插件平台不支援此功能**。

      <div align="left"><figure><img src="/files/MAQBcnqdmmrvlZ9Ke3XD" alt="" width="375"><figcaption><p>右下角支援替換參數，惟網站對話插件平台不支援此功能</p></figcaption></figure></div>

   <div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p><strong>向LINE 好友分享機器人訊息：</strong></p><p>您現在可以使用 <strong>Chatbot 2.0</strong> 設定動作，讓顧客能將聊天機器人的訊息分享給他們的 LINE 好友。此功能<strong>僅支援 LINE 平台</strong>，且<strong>僅適用於 Chatbot 2.0</strong></p><p><img src="/files/tUh3dZ5VjUO4AwvC350C" alt="" data-size="original"></p><ol><li><p><strong>支援卡片與按鈕類型</strong><br>以下卡片按鈕可以支援設定此點擊觸發動作「分享給 LINE 好友」<br></p><ul><li><p>文字訊息 (包含真人客服卡片)</p><ul><li>一般按鈕</li></ul></li><li><p>輪播訊息</p><ul><li>點擊圖片動作</li><li>一般按鈕</li></ul></li><li><p>圖片輪播訊息</p><ul><li>點擊圖片動作</li><li>一般按鈕</li></ul></li></ul></li><li><p><strong>限制</strong></p><ol><li><p>以下是可以被分享出去的卡片類型：</p><ul><li>文字訊息</li><li>圖像訊息</li><li>輪播訊息</li><li>圖片輪播訊息</li><li>圖文訊息（圖文訊息內容不可含影片訊息）</li><li>影片</li></ul></li><li><p>被分享出去的卡片中，卡片按鈕限制如下：</p><ul><li><p>僅允許使用 「URL 類型」 的按鈕動作，例如：</p><ul><li>開啟網址</li><li>分享給 LINE 好友</li></ul></li><li>若使用其他類型的動作，將會出現錯誤。</li><li>若該區塊包含 LINE 圖文選單，則<strong>不能</strong>使用透明背景。</li></ul></li></ol></li></ol></div>
2. **附加動作（選填項目）**
   1. **貼上標籤：**&#x7576;客人按下按鈕時，會自動為該名客人貼上標籤。
   2. **存為自訂屬性（加購功能）：**
      1. 當客人按下按鈕時，會自動為該名客人貼上自訂屬性，作為會員資料平台的顧客資料。
      2. 使用此功能前，需先至自訂屬性頁面新增屬性資料，教學請見[這裡](https://docs.omnichat.ai/features/she-qun-ke-hu-zi-liao-ping-tai/zi-ding-shu-xing-jia-gou-gong-neng)。

{% hint style="info" %}
**貼上標籤：**

* 網站對話插件平台不支援URL貼標。
* 機器人URL按鈕貼標籤，在以下情況也能貼標籤到聯絡人：

  * 按鈕 URL 是短網址
  * 按鈕 URL 打開後會立即轉頁
  * 按鈕 URL 打開的網站沒有安裝 Omnichat 對話插件

  ❗**請留意：以上連結會無法完成「機器人綁定（站外綁定）」。**
  {% endhint %}


---

# 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/marketing/new-chatbot/wen-zi-xun-xi.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.
