Try   HackMD

make.com 中測試用 LINE 推播訊息發送通知

由於 LINE Nofity 服務於 2025/3/31 終止,為了讓大家能夠繼續以台灣地區幾乎人人都有安裝的 LINE 作為通知機制,我們提供以下教學帶大家建立 LINE 聊天機器人,並以發送推播訊息替代原本的 LINE Notify 服務:

本文將說明如何在 make.com 中利用上述教學文章建立的 LINE 聊天機器人發送推播訊息。

註冊 Make 帳號

要使用 Make 服務,第一步當然就是註冊帳號,如果你還沒有 make.com 帳號,請依以下這篇教學文章完成:

建立腳本

make.com 服務中,提供以圖形化的方式建立自動化的流程,每一個流程在 make.com 中稱為腳本 (scenario),所以一開始就要先建立新的腳本:

  1. 請按右上方的 Create a new scenario

    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. 如果出現教學畫面,請按右上角的 × 關閉:

    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 →

建立自動化流程

  1. 建立 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 →

    首先在搜尋欄位輸入 "web" 後選取 Custom 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 →

    按一下 Create a webhook 建立可以透過網址觸發的**掛接點(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 →

    填入自訂的掛接點名稱後按 OK 建立:

    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 →

    Webhooks 欄位會看到剛剛建立的掛接點,接著按一下 Copy address to clipborad 將掛接點的網址複製到剪貼簿:

    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 →

    在瀏覽器開啟新的頁面後貼上剛剛複製的網址,按下 Enter,看到 "Accepted" 即表示成功:

    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 →

    回到 make.com 編輯頁面會看到顯示 "Successfuly determined" 訊息,再按 "OK" 完成。

  2. 加入可以傳送推播訊息的模組:

    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" 後選取 LINE App:

    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 →

    選取 Send a Push Message 模組:

    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 →

    按一下 Ccreate a connection 建立可以讓 make.com 和 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 →

    請在 Connection name 輸入自訂的連線名稱,並在 Channel Access Token 輸入建立 LINE 聊天機器人時的存取令牌,最後按 Save 完成:

    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 →

    Connection 欄位會看到剛剛的連線名稱,請在 To 欄位輸入通知訊息傳送對象的 LINE user/group id,然後按一下 Add item 設定訊息內容:

    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 →

    Type 欄位選取 Text 加入文字內容,並在 Text 欄位填入要發送的通知訊息內容,最後按 OK 完成。

  3. 執行腳本及測試發送通知訊息:

    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 →

    選取此項目讓即時接收掛接點被觸發的資訊,按 OK 繼續:

    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 →

    按一下模組開啟設定交談窗,再按一下 Copy address to clipboard 複製掛接點的網址:

    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 →

    在瀏覽器開啟新頁後貼上剛剛複製的掛接點網址,然後按 Entter,看到出現 Accepted 訊息:

    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 接收到通知訊息,內容就是剛剛設定的訊息內容。