National Central University
Uedu Main Site
Explore Uedu
Student Console
Register as Member/Login
Research Informed Consent Center
Survey Center
Educational Big Data Challenge
Claim or create a course
Try an AI Scenario Task
Support & Messages
Uptime Data

UeduGPTs

--

Jupyters

3

Local AI

--

Uedu Code

--

中央大學 AQI 80 24°C PM2.5 21
AI Reply Desktop Notifications

Show a desktop notification when the AI TA finishes replying

Chat Message Notifications

Notify me when classmates post messages in the forum

Sound notification

Play an alert sound whenever there is a new notification

LINE Bot

13 堂互動課:機器人和 LINE 平台怎麼溝通、Webhook 與簽章驗證、各種事件與訊息、回覆與推送的差別、快速回覆、圖文選單與 Flex Message,再用 SQLite 記住對話狀態、接上外部服務與語言模型、把語音訊息轉成文字,完成一個專題後實際上線。程式是真的 Flask 與官方 line-bot-sdk,在你的瀏覽器裡執行;LINE 平台是模擬的,在模擬手機上傳訊息就能看到每一步,不需要先申請帳號。最後一課才接上真的 LINE。建議先學過 Python 軌前 15 課與後端開發軌第 1~5 課。
13 堂課 approx. 6.2 hour(s)

學習路徑

  1. 01
    聊天機器人怎麼運作
    使用者、LINE 平台、你的伺服器之間傳了什麼
    Interaction實作 20 minute(s)
  2. 02
    第一個回聲機器人
    Flask+line-bot-sdk:收到訊息、回一句話
    Interaction實作 25 minute(s)
  3. 03
    Webhook 與簽章驗證
    為什麼要驗簽、HMAC 怎麼算、要快點回 200、重送事件
    Interaction實作 30 minute(s)
  4. 04
    事件與使用者
    message、follow、unfollow、postback,取得使用者資料
    Interaction實作 25 minute(s)
  5. 05
    傳送各種訊息
    文字、貼圖、圖片、位置,一次最多五則
    Interaction實作 25 minute(s)
  6. 06
    回覆與推送
    reply token 的限制、push、multicast 與額度
    Interaction實作 30 minute(s)
  7. 07
    快速回覆、範本與圖文選單
    讓使用者不用打字:quick reply、buttons、postback、rich menu
    Interaction實作 30 minute(s)
  8. 08
    Flex Message
    用 JSON 排版一張卡片:bubble、box、text、button
    Interaction實作 30 minute(s)
  9. 09
    記住對話:狀態與 SQLite
    每個使用者一份狀態,把多步驟流程存進資料庫
    Interaction實作 30 minute(s)
  10. 10
    接上外部服務與語言模型
    呼叫 API 查資料、用模型回答,處理等待、失敗與成本
    Interaction實作 30 minute(s)
  11. 11
    語音訊息轉文字
    下載音檔、用本地 Whisper 轉錄,以及資料去向與辨識錯誤
    Interaction實作 30 minute(s)
  12. 12
    專題:讀書會小幫手
    選單、Flex、狀態、資料庫、推送組成一個完整的機器人
    Interaction實作 45 minute(s)
  13. 13
    接上真的 LINE
    建立官方帳號與 Channel、ngrok、部署與上線前檢查
    導覽 25 minute(s)