> For the complete documentation index, see [llms.txt](https://chatlyst.gitbook.io/chatlyst-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chatlyst.gitbook.io/chatlyst-user-guide/zh/inbound-channels-zh/wang-zhan-nei-qian/xin-zeng-xiao-gong-ju.md).

# 新增小工具

在「網站內嵌 」管道中，選取 **新增小工具**。

<div data-with-frame="true"><figure><img src="/files/AblJK0sNs3Wgvx9nTVx8" alt="" width="375"><figcaption></figcaption></figure></div>

在小工具設定頁面中，於左側面板輸入小工具詳細資訊並配置設定。在進行變更時，可在右側查看即時預覽，然後完成設定。

小工具配置包含三個區塊：[**外觀**](#wai-guan-appearance)、[**行為**](#xing-wei-behavior) 和 [**進階**](#jin-jie-advanced)。

<div data-with-frame="true"><figure><img src="/files/DDbWvo1ZCy4X5Xh3jW6r" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
使用導覽分頁在 [外觀](#wai-guan-appearance)、[行為](#xing-wei-behavior) 和 [進階](#jin-jie-advanced) 之間切換，並快速審查或更新特定區塊。

![](/files/EO1eyRJbELVVx5LS2BKz)
{% endhint %}

{% stepper %}
{% step %}

### 外觀

控制小工具的視覺設計，包括名稱、顏色和在頁面上的放置位置。

<div data-with-frame="true"><figure><img src="/files/WNt4sEB9UxB5wketty97" alt=""><figcaption></figcaption></figure></div>

1. **基本資訊**
   * **公司顯示名稱** — 顯示在小工具標頭中、面向大眾的名稱。
   * **小工具名稱** — 用於管理多個小工具的內部名稱。
   * **歡迎訊息** — 小工具開啟時顯示的問候語。

<div data-with-frame="true"><figure><img src="/files/s4FfmICge1dpldJEDuTG" alt="" width="563"><figcaption></figcaption></figure></div>

2. **小工具顏色**

<div data-with-frame="true"><figure><img src="/files/jgA4kiiharmuNYca199i" alt="" width="563"><figcaption></figcaption></figure></div>

* **主色調** — 設定整個小工具使用的主顏色，並定義整體的品牌外觀。此顏色套用於標頭和小工具啟動器，且不會在切換主題時改變。可以在選色器中選擇顏色，或輸入 HEX 顏色代碼。

<div><figure><img src="/files/gMvmmEn5e1Hzb9IDUdK5" alt=""><figcaption><p>標頭</p></figcaption></figure> <figure><img src="/files/y6WCYs5buBbHbzMBIgH4" alt=""><figcaption><p>小工具啟動器</p></figcaption></figure></div>

* **輔助色調** — 設定用於輔助 UI 元素的次顏色，並與主顏色形成對比。此顏色僅套用於頁尾。

<div data-with-frame="true"><figure><img src="/files/71vWOjaNYw1SLI0IaVAT" alt="" width="375"><figcaption><p>頁尾</p></figcaption></figure></div>

2. **小工具主題**

   * 若要設定小工具體驗的主題，請選擇最符合預期訪客視覺感受的主題選項。
     * **淺色** — 將淺色樣式套用於小工具主體和輸入欄位。
     * **深色** — 將深色樣式套用於小工具主體、輸入欄位和頁尾。
     * **自動** — 根據系統設定自動設定小工具主題。

   <div><figure><img src="/files/Xx9pGddUQr302K5kmAU0" alt=""><figcaption><p>淺色</p></figcaption></figure> <figure><img src="/files/nWFdenaj0CZ9nMOqE7Ed" alt=""><figcaption><p>深色</p></figcaption></figure></div>
3. **位置**
   * 若要設定小工具在網站上的顯示位置，請選擇要向訪客展示的位置（**右下角**、**左下角**、**置中**，或 **內嵌**）。此設定決定了小工具在螢幕上出現的位置，或者是否在頁面中嵌入小工具的地方以行內形式顯示。

<div><figure><img src="/files/IIi8rrCTnTbDnoZZaAXF" alt=""><figcaption><p>置中</p></figcaption></figure> <figure><img src="/files/3Ldo9qaWYf8dtJzXL9vl" alt=""><figcaption><p>右下角</p></figcaption></figure></div>

<div align="center"><figure><img src="/files/rF63E0QKKnchJxoiyXzT" alt="" width="375"><figcaption><p>左下角</p></figcaption></figure></div>
{% endstep %}

{% step %}

### 行為

**控制小工具如何與訪客互動。**

* **轉接人工服務** — 控制當機器人需要將對話轉交回真人客服時的情況。如果關閉此設定，當機器人嘗試將聊天路由至真人客服時，對話將自動關閉，而不會保持工作階段開啟以供接管。預設設定為開啟。

<div data-with-frame="true"><figure><img src="/files/2TOh1Rm3JjanuzBe9SMA" alt="" width="341"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### 進階

**調整技術與工作階段設定。**

* **機器人訊息數量上限** — 設定單個聊天工作階段中允許的助理訊息最大數量。當達到此限制時，聊天將切換至真人用戶，且狀態將更新為 **等待首次回應**。

{% hint style="info" %}
預設為每個工作階段 30 則訊息，最小值為 10。
{% endhint %}

* **對話閒置時間（分鐘）** — 設定在最新一則訊息後，工作階段保持隨時啟用的時間。只要訊息持續，工作階段就會保持啟用。如果在設定的時間內（自最後一則訊息起算）沒有新訊息傳入，工作階段即會過期並關閉。如果真人在工作階段期間接管，該工作階段將保持啟用。

{% hint style="info" %}
預設值為 1,440 分鐘（24 小時）。這是建議的設定。
{% endhint %}

<div data-with-frame="true"><figure><img src="/files/VLnAR9L98DcW4OgIvZgB" alt="" width="338"><figcaption></figcaption></figure></div>

<details>

<summary>工作階段逾時</summary>

* 當工作階段逾時，小工具會提示訪客開始新的對話，以便在上一個工作階段過期後繼續聊天。
* 逾時的工作階段會在「對話」中自動關閉，且不再顯示為作用中的對話。

<p align="center"><img src="/files/LLLJYyfrJTno3p8h1UEp" alt=""></p>

</details>
{% endstep %}

{% step %}

### 完成配置

完成配置後，選取 **創建**。

<div data-with-frame="true"><figure><img src="/files/Zowms3DKSn3H7eEecZdS" alt="" width="338"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### 小工具啟用

建立小工具後，系統會自動開啟下一頁，以便審查小工具的詳細資訊與啟用步驟。

<div data-with-frame="true"><figure><img src="/files/w0maxbK3u9KjJRixIiet" alt=""><figcaption></figcaption></figure></div>

1. 在「小工具配置」分頁（位於頁面中央）中，確認小工具狀態顯示為 **草稿**（未啟用）。
2. 在頁面底部的「嵌入代碼」分頁中，檢視未啟用提示訊息。
3. 若要啟用小工具，請切換右上角的開關將其開啟。

<div data-with-frame="true"><figure><img src="/files/hRB5SQxigGVIRMhxUa56" alt=""><figcaption></figcaption></figure></div>

4. 確認小工具狀態從 **草稿** 變更為 **已啟用**，且不再出現未啟用提示訊息。

<div data-with-frame="true"><figure><img src="/files/XEWu1kQCXRu8DgrWJrbU" alt=""><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://chatlyst.gitbook.io/chatlyst-user-guide/zh/inbound-channels-zh/wang-zhan-nei-qian/xin-zeng-xiao-gong-ju.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.
