Try   HackMD

AI LINE Bot練功坊-L2 建立LINE官方帳號

1. 建立Line Developers帳號

  • 首先進入:Line Developers,建立開發者帳號

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 可以建立帳號、"使用LINE帳號登入"

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 建立帳號可以"使用LINE帳號註冊"或"使用電子郵件註冊"

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 使用LINE帳號註冊,可以選擇用自己的帳號密碼或是掃QR code登入。

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 按下"建立LINE官方帳號(商用帳號)"

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

2. 建立 Provider

  • 建帳號建立完成後需要創建一個Provider,可以把Provider想像成開發者、公司或組織
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

3. 建立官方帳號

: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

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

  • 點擊連結LINE Business ID並建立(或登入)

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 登入後可以直接看到建立帳號的頁面及步驟

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 填寫你要建立的官方帳號資訊,填寫完成後點擊確定進入下一步

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 檢查資料是否填寫正確,並點擊完成

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 建立官方帳號成功(紅框處為你剛建立的官方帳號ID)

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

4. 啟用Messaging API(建立Messaging API Channel)

  • LINE Official Account Manager後台可以看到剛剛建立好的官方帳號,點擊進入

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 同意LINE的規範

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 進入這支帳號的後台,點選右上角的設定

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 點選Messaging API頁面

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 啟用Messaging API

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 建立Provider名稱(選舊的Provider也可以,就是把新建立的這支官方帳號加入原本的Provider下)

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 可直接按同意進入下一步

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 點擊確定

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 建立完成

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 此時回到LINE Developers就可以看到剛建立的Provider了

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 可在該Provider下方看到你剛建立的官方帳號

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

5. 相關細項設定

  • 切換到Basic setting頁籤
  • 點選 "LINE Official Account Manager"

帳號設定

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →


Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →


  • 若是希望這個機器人能夠加入群組在功能切換預設
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

回應設定

  • 如果不想要加入好友傳訊息的功能可以把它關閉

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 後續寫程式時需要跟Line的伺服器進行溝通,因此需要啟用Webhook功能。

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 在寫程式時可以自行設定要回傳給使用者的訊息,所以可以把自動回應訊息功能關閉。

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

6. 建立Channel Access Token

  • 回到LINE Developers後台,切換到Messaging API的頁籤。

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  • 滾動到最下面點擊Issue產生Channel Access Token

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

Reference:https://developers.line.biz/en/docs/messaging-api/getting-started/

建立 Channel(已過時)

: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。

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →


輸入Channel相關資訊(已過時)

  • 輸入Channel相關資訊完後,按下"Create"
  • 需要按下"OK"確認填寫訊息無誤
  • 需要"Agree"同意網站使用您的資料

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →


Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →


Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →


Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →


image


成功建立官方帳號(已過時)

  • 成功建立之後可以切換到Messaging API頁籤

    image

  • 上方可看到這個機器人的Line ID,可透過這個ID加這個機器人為好友。

    image

Youtube 課程影片

關於我們

image 國立臺北教育大學 教育大數據微學程

先修微課程

🤖 AI LineBot 練功坊系列課程
從入門到精通,學習如何開發並應用 LINE Bot,讓你輕鬆掌握最前沿的聊天機器人技術。

👨‍💻 Python 初學小教室
針對零基礎學員設計,循序漸進地教授 Python 基本語法及實作技巧,幫助你快速上手。

📊 統計學小教室
系統講解統計學理論及其應用,適合想要提升數據分析能力的學習者。

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →
Facebook
Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →
Instagram
Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →
Threads
Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →
YouTube
Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →
Line官方帳號

相關教材連結

◀◀◀ L01 LINE Bot 基本介紹 ◀◀◀
▶▶▶ L03 開發環境建置 ▶▶▶