National Chung Cheng 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 103 26°C PM2.5 33
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)