# LINE

{% embed url="<https://youtu.be/kL6-F4Oihhs>" %}
LINE整合
{% endembed %}

與下面連結相同。

{% embed url="<https://docs.communeify.com/tw/products/dmflow/tutorials/docs/line.html>" %}

### 開始 <a href="#kai-shi" id="kai-shi"></a>

先申請LINE帳號，[LINE Business ID](https://developers.line.biz/console/)

![DmFlow整合LINE](https://docs.communeify.com/images/tw/line-002.png)

#### 使用LINE帳號登入

可以使用一般使用者LINE做登入。

#### 使用商用帳號登入

以公司為主業務用的電子郵件作申請。填入帳號名稱、電子郵件帳號、公司名稱以及業種(公司業務內容)即可申請完成。

### 設定

若尚未啟用Messaging API，請在設定->Messaging API點選"啟用Messaging API"，並輸入服務提供者(自己命名業務名稱，事後可更改)，並填入隱私權政策及條款(兩者非必填)，確認無誤後，點選"確定"。

![DmFlow整合LINE](https://docs.communeify.com/images/tw/line-003.png)

* 1.Channel ID
* 2.Channel Secret
* 3.填入Webhook網址。
* 4.進入LINE Developers進行接下來動作。

#### LINE Developers

點選後會進入[LINE Developers](https://developers.line.biz/en/)，並依序下圖點選。

![DmFlow整合LINE](https://docs.communeify.com/images/tw/line-004.png)

![DmFlow整合LINE](https://docs.communeify.com/images/tw/line-005.png)

![DmFlow整合LINE](https://docs.communeify.com/images/tw/line-006.png)

![DmFlow整合LINE](https://docs.communeify.com/images/tw/line-007.png)

可以得到Channel ID、Channel secret以及Channel access token。並填寫Webhook URL即可完成。


---

# 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.dmflow.chat/channel/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.
