AI LINE Bot練功坊-L2 建立LINE官方帳號 === ## 1. 建立Line Developers帳號 * 首先進入:[Line Developers](https://developers.line.biz/zh-hant),建立開發者帳號  * 可以建立帳號、"使用LINE帳號登入"  * 建立帳號可以"使用LINE帳號註冊"或"使用電子郵件註冊"  * 使用LINE帳號註冊,可以選擇用自己的帳號密碼或是掃QR code登入。  * 按下"建立LINE官方帳號(商用帳號)"  ## 2. 建立 Provider * 建帳號建立完成後需要創建一個Provider,可以把Provider想像成開發者、公司或組織  ---  ## 3. 建立官方帳號 :::info :bulb:官方在2024/09/04發布了新版本的改動:無法再透過LINE Developers建立官方帳號,因此我們也同步更新講義的操作步驟。 > Reference: [As of September 4, 2024, it's no longer possible to create Messaging API channels directly from the LINE Developers Console](https://developers.line.biz/en/news/2024/09/04/no-longer-possible-to-create-messaging-api-channels-from-console/) :::  * 點擊連結[LINE Business ID](https://account.line.biz/signup?redirectUri=https://entry.line.biz/form/entry/unverified)並建立(或登入)  * 登入後可以直接看到建立帳號的頁面及步驟  * 填寫你要建立的官方帳號資訊,填寫完成後點擊確定進入下一步  * 檢查資料是否填寫正確,並點擊完成  * 建立官方帳號成功(紅框處為你剛建立的官方帳號ID)  ## 4. 啟用Messaging API(建立Messaging API Channel) * 到[LINE Official Account Manager](https://manager.line.biz/)後台可以看到剛剛建立好的官方帳號,點擊進入  * 同意LINE的規範  * 進入這支帳號的後台,點選右上角的設定  * 點選Messaging API頁面  * 啟用Messaging API  * 建立Provider名稱(選舊的Provider也可以,就是把新建立的這支官方帳號加入原本的Provider下)  * 可直接按同意進入下一步  * 點擊確定  * 建立完成  * 此時回到[LINE Developers](https://developers.line.biz/console/)就可以看到剛建立的Provider了  * 可在該Provider下方看到你剛建立的官方帳號  ## 5. 相關細項設定 * 切換到Basic setting頁籤 * 點選 "**LINE Official Account Manager**" ### **帳號設定**  ---  --- * 若是希望這個機器人能夠加入群組在功能切換預設  ### **回應設定** * 如果不想要加入好友傳訊息的功能可以把它關閉  * 後續寫程式時需要跟Line的伺服器進行溝通,因此需要啟用Webhook功能。  * 在寫程式時可以自行設定要回傳給使用者的訊息,所以可以把自動回應訊息功能關閉。  ## 6. 建立Channel Access Token * 回到LINE Developers後台,切換到Messaging API的頁籤。  * 滾動到最下面點擊Issue產生Channel Access Token  >Reference:https://developers.line.biz/en/docs/messaging-api/getting-started/ ## 建立 Channel(已過時) :::danger :warning: 自2024/09/04之後,無法在Line Developer建立Messaging API Channel,須至LINE官方帳號後台建立 > Reference:https://developers.line.biz/en/news/2024/09/04/no-longer-possible-to-create-messaging-api-channels-from-console/ ::: * 一個 Channel 要隸屬在一個 Provider 底下,可以想成一個 Channel 就是一個產品,一定是一個開發者( Provider )開發的 * 建立 Channel 並選擇 **Messaging API**,這個 Channel 可以想成是我們的 LINE Bot。  --- ## 輸入Channel相關資訊(已過時) * 輸入Channel相關資訊完後,按下"Create" * 需要按下"OK"確認填寫訊息無誤 * 需要"Agree"同意網站使用您的資料  ---  ---  ---  ---  --- ## 成功建立官方帳號(已過時) * 成功建立之後可以切換到Messaging API頁籤  * 上方可看到這個機器人的Line ID,可透過這個ID加這個機器人為好友。  Youtube 課程影片 --- <iframe width="560" height="315" src="https://www.youtube.com/embed/iCwlO17JzxE?si=Cm3eeTIlwQI9A3dI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> {%hackmd @ntuebigdata/about %} ## 相關教材連結 <div style="display: flex; justify-content:space-between;"> <div> <a class="btn btn-warning" href="https://hackmd.io/@ntuebigdata/LINE-basic-introduction" style="color:white;width:300px;text-overflow:ellipsis;overflow:hidden">◀◀◀ L01 LINE Bot 基本介紹 ◀◀◀</a> </div> <div> <a class="btn btn-info" href="https://hackmd.io/@ntuebigdata/setup-linebot-development-environment" style="color:white;width:300px;text-overflow:ellipsis;overflow:hidden">▶▶▶ L03 開發環境建置 ▶▶▶</a> </div> </div>
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up