# (2) 新增機器人＆綁定

### 本篇教您的重點

* 如何新增機器人
* 如何綁定 Facebook 粉絲專頁或 LINE@ 帳號

### 1. 新增機器人步驟

1. 到 **`機器人列表`** 點選 **`＋機器人`** 並命名
2. 選擇使用 **Messenger** 或 **LINE** 平台
3. 點選 **`新增機器人`**

### 2. 綁定步驟

### **綁定 Facebook 粉絲專頁帳號**

請先確認具有該專頁的 [管理員 / 編輯 / 版主權限](https://www.facebook.com/help/www/323502271070625?helpref=faq_content)，才可進行綁定流程。

1. 點選左欄 **設定 ▸ 一般設定 ▸ 機器人綁定**&#x20;
2. 連結 **Messenger** 權限
3. 選擇綁定的粉專或帳號
4. 按下 **`綁定專頁`**

![](/files/-Lc-uSJyiEEu_5SPF1f-)

{% hint style="warning" %}
**解除綁定注意事項：**&#x82E5;您未來想要將機器人解綁，且當初有設定轉接真人客服功能，請於解除綁定後，前往粉絲專頁設定頁面＞進階訊息＞應用程式設定，將「交接通訊協定」重新改回未選取狀態。
{% endhint %}

### **綁定 LINE@ 帳號**

請先確認已擁有 LINE@ 帳號。若尚未申請，請先前往 [LINE Developers](https://developers.line.biz/en/) 新增帳號。

1.選擇 Messaging API

![](/files/-Lc-uasFwYktdgjE8uQe)

2\. 在 Provider List 選擇此機器人對外顯示的組織名稱。若無相關選項或初次使用，請直接點&#x9078;**`+ create new provider`** 新增組織名稱。再點擊 **`+ create new channel`** 新增您的專頁 。

![](/files/-Lc-waYhs_aJq41Cn8id)

3\. 進入 Channel settings 頁面，進行以下動作：

* 複製 Channel ID、Channel Secret、 Channel Access Token
* 將 Use Webhooks 變更為 Enabled
* 填入 Webhook URL
* 按下 **`Issue`** 及 **`Edit`** 按鈕，取得相關資訊。

![](/files/-Lc-wxV--hEtvpf3OC_j)

{% hint style="info" %}
Webhook URL 為 YOCTOL.AI 自動產生的 URL。可在 YOCTOL.AI 的「機器人設定」中取得。
{% endhint %}

4\. 將 Auto-reply messages 跟 Greeting messages 關成 Disabled，否則與機器人對話時會收到 LINE 設定的預設回應。

![](/files/-Lc-x5nECzzFTm6rkliI)

5\. 回到 YOCTOL.AI 的機器人綁定頁面，填入 Channel ID、Channel Secret、Channel Access Token

![](/files/-Lc-xJJpAUAQRTU1Bynq)

{% hint style="warning" %}
**解除綁定注意事項：**&#x89E3;除綁定前，請記得先到 LINE Channel 後台關閉 Webhook。解除綁定後您的機器人將停止回覆。
{% 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-tw.yoctol.ai/guide/create_binding.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.
