# 綁定 Line

準備將聊天機器人綁定Line帳號囉！

如果您本來就有LINE官方帳號，請看 [https://app.gitbook.com/o/BewEbXJDNMghmGAwcInV/s/ZHbJqepBvWr0vRrToIqo/she-qun-bang-ding/yi-you-lai-guan-fang-zhang-hao-ru-he-bang-ding-mantago](/zh/she-qun-bang-ding/yi-you-lai-guan-fang-zhang-hao-ru-he-bang-ding-mantago.md)

還沒有建立過LINE官方帳號請繼續閱讀～

首先進入聊天機器人的首頁，點擊左側手機右上角的「設定」按鍵：

<figure><img src="/files/Rkr2A44NRtPXY0E60qjM" alt=""><figcaption></figcaption></figure>

到右下方Line官方帳號的區塊，點擊「連接Line渠道」按鍵：

<figure><img src="/files/doENzuBHUZCLazMuYjiC" alt=""><figcaption></figcaption></figure>

接下來選擇綁定方式，如果對聊天機器人較不熟悉，或是沒有綁定Facebook粉絲專頁，建議使用右邊的Developer綁定：

<figure><img src="/files/jhODHzLe4EUxOgkA5VT4" alt=""><figcaption></figcaption></figure>

### 跟著四步驟，完成line綁定 <a href="#id-7224" id="id-7224"></a>

### Step1 設定Line developer console  <a href="#id-21cf" id="id-21cf"></a>

<figure><img src="/files/E9hgLmBGU1VrSnwGbsHb" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
小提醒 \
1.若有 LINE@ 帳號，可直接登入 \
2.沒有的話，記得準備一個 LINE@ 帳號
{% endhint %}

### 進入Line Developers <a href="#id-10d9" id="id-10d9"></a>

1. 成功登入後，選擇左方列表的Provider
2. 選擇要綁定的聊天機器人Channel，或是新增一個新的Channel

<figure><img src="/files/5pHKPpttu7AdjWwtF7ql" alt=""><figcaption></figcaption></figure>

在跳出視窗中，選擇第二個Messaging API

<figure><img src="/files/M4lS17q2GW0INZUSD4DO" alt=""><figcaption></figcaption></figure>

填寫Channel的基本資訊，記得必填欄位都要填寫完唷！

<figure><img src="/files/4fVK1f9H4mkJ3QfqH7bb" alt=""><figcaption></figcaption></figure>

### Messaging API <a href="#id-88e6" id="id-88e6"></a>

1. 新增好Channel後，進入Messaging API中
2. 複製Bot Basic ID

<figure><img src="/files/DNIzpCSCrMZwXyJlLj23" alt=""><figcaption></figcaption></figure>

### 複製貼上Bot Basic ID

1. 回到MantaGo的頁面，將Bot Basic ID貼到輸入匡中
2. 貼上後，點擊右下方的「下一步」

<figure><img src="/files/nwMTczYEvgME9roYv0xV" alt=""><figcaption></figcaption></figure>

***

### Step 2 Webhook URL

###

1. 回到Line Developers的畫面，並將頁面往下捲動至Webhook Setting
2. 按下Edit
3. 將複製好的Webhook URL貼到方框中
4. 按下Update按鈕
5. 將Use webhook設定為「開啟」

<figure><img src="/files/V0vVBcMigINjlFLxhizc" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/TPYjsdY3RQ8V2JEJTmve" alt=""><figcaption></figcaption></figure>

***

### &#x20;Step3 Channel access token

加油！剩下最後兩個步驟了！

1. 將頁面往下捲動至Channel access token
2. 按下Issue/Reissue的按鈕
3. 將Channel access token複製，並回到MantaGO頁面

<figure><img src="/files/OQcSGAEeN34s3dJelRFa" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/VS9C8DEymyxAti9v3oj6" alt=""><figcaption></figcaption></figure>

***

### Step4 回覆設定<br>

點擊連結，進入[Manager](https://manager.line.biz/)頁面

<figure><img src="/files/z27hyZSRirPxRpTs55Pq" alt=""><figcaption></figcaption></figure>

選擇要綁定的帳號

<figure><img src="/files/NhUGoOTyCJJXwMfXkiE2" alt=""><figcaption></figcaption></figure>

點擊右上方的設定按鈕

<figure><img src="/files/3T47qH0QmvvIw7YkY1jP" alt=""><figcaption></figcaption></figure>

### 回覆設定 <a href="#d1e9" id="d1e9"></a>

1. 點擊左方的回應設定
2. 將選單中的加入好友的歡迎訊息，設定為停用
3. 將選單中的自動回應訊息，設定為停用
4. 將選單中的Webhook，設定為啟用

<figure><img src="/files/OX1iyiyCq9nEhXS5yiTh" alt=""><figcaption></figcaption></figure>

#### 最後：

1. 點選左上角的主頁
2. 按「自動回覆訊息」
3. 到視窗右邊的「狀態」，將狀態設為關閉

<figure><img src="/files/R5bVJjs1U7F69LpUOS8d" alt=""><figcaption></figcaption></figure>

恭喜你，看到下方畫面就代表Line綁定成功啦！

<figure><img src="/files/hbRGfc6W271gc1qaTGW0" alt=""><figcaption></figcaption></figure>

#### 參考教學影片

#### LINE官方帳號綁定設定教學：

{% embed url="<https://youtu.be/snU-8wWOYmA>" %}

### 馬上註冊MantaGO吧！

[<br>](https://mantago.cc/login)

\ <br>

>

\ <br>

<br>


---

# 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://blog.mantago.cc/zh/she-qun-bang-ding/bang-ding-line.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.
