> For the complete documentation index, see [llms.txt](https://instag.gitbook.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://instag.gitbook.io/doc/zheng-he-di-san-fang-ping-tai/line-oa/line-guan-fang-zhang-hao.md).

# Line 官方帳號

## Step 1. LINE OA 開啟 Messaging API

[LINE Official Account Manager](https://manager.line.biz/) 進入您的「官方帳號」，點選右側「設定」進入設定頁面。

1. 點擊「Message API」
2. 按下「啟用 Message API」

<figure><img src="/files/1R1eLtdrkGIK42dOHABZ" alt=""><figcaption><p>Line OA Message API 設定</p></figcaption></figure>

3. 輸入「服務提供者」名稱
4. 按下「同意」
5. 填寫「隱私權政策」、「服務條款」網址
6. 確定輸入資訊「啟用 Messaging API」

<figure><img src="/files/rlrEwbcLKHhSirz3Jjj0" alt="" width="563"><figcaption><p>Line OA Message API 輸入服務提供者</p></figcaption></figure>

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

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

Messaging API 啟用完成後看到如下面畫面：

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

## Step 2. LINE Developers 設定 Messaging API 取得 access token

1. 開啟「[Line Developers Console](https://developers.line.biz/console/)」
2. 選擇您的 Channel

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

3. 點選「Messaging API」頁籤
4. 於頁面底部找到「Channel access token (long-lived) 」

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

## Step 3. Instag AI 後台設定 Line Messaging API 整合

1. 開啟 「[Instag AI](https://pro.instag.ai)」
2. 左側選單點選「整合 > LINE 官方帳號」
3. 切換開啟「啟用」
4. 將 Step 2. 中取得的 Channel access token 貼入「權杖」欄位
5. 點擊「儲存」

<figure><img src="/files/7xzzlql8ygq1Q94IaPg7" alt=""><figcaption></figcaption></figure>
