owned this note changed 4 years ago
Linked with GitHub

在群組裡面放支LINE聊天機器人是個好點子嗎? - 奇步老爹(陳佳新)

tags: COSCUP2021 Beginner zh-tw COSCUP2021 Open Source Chatbot TR209

歡迎來到 https://hackmd.io/@coscup/2021 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。

請從這裡開始

聊天情境

一般聊天:雙人聊天場景,一方發問,一方回答
一群人聊天:一次 20 多人,多發發問、多方回答

2016 年 LINE Annual seminar 統計:

  • 94% 親友傳訊通話
  • 71% 工作討論聯繫

訊息元素

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
):群組裡不能用

  • 加入好友的歡迎訊息
  • 文字、貼圖、照片、影片、語音(長輩不方便打字者)
  • 位置資訊
  • 機器人才能用的:Template(如 carousel、flex message)
  • 機器人常見:丟連結後打開網頁
  • 官方帳號 1-on-1:圖文選單(下方主選單)(
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    • 加入時的歡迎訊息會被洗掉 > 設計關鍵字喚醒機器人
    • 群組內的變通方式:quick reply, carousel, 圖文訊息
  • 聊天機器人 quick reply 在最下面可滑動、最多 13 個
  • 圖文訊息 a.k.a 滿版大圖
  • 日期選擇器

bot 可以收到的個資:

  • displayName
  • userId: UOOOOOOOOOO, ROOOOOOO for rooms, GOOOOOOO for groups
  • pictureUrl
  • statusMessage

一對一 v.s. 群組

群組的優勢

  • 一則訊息一堆人一起收到
    • 不用一個一個人發,省時
    • 省推播費
  • 可以彙整群組裡所有的人的對話,再一次回應、取得共識

群組的缺點

  • 容易洗版
  • 容易被誤觸喚醒,關鍵字要設計一下
  • 無法使用圖文選單(用之前提到的方式替代)

機器人進入群組後特有的 API

  • 聊天室 chatroom:標題是「人, 人, 人」那種多人對話視窗。
  • 群組 group:先開設一個群組、設定「名字」之後拉人進去的。

API

  • Get group summary
  • Get number of users in group
  • Get group member user ID
    • premium account only
    • ID 未來可用於行銷
  • Get user profile
  • Kick event
  • mention 物件
    • 看到群組內訊息 tag 其他人的資訊
    • 但機器人自己目前不能 tag 群組內的其他人
    • 可能可以做一些應用,例如統計誰被 @ 最多次

群組應用

可以去 LINE 新星計畫

Recap

PPT截圖

PPT截圖

Select a repo