Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
打造 LINE Bot 並且加入一個有個性的大腦
Search
LINE Developers Taiwan
PRO
November 07, 2023
Technology
1
700
打造 LINE Bot 並且加入一個有個性的大腦
20231107- 台大電機產學合作 by Evan Lin
LINE Developers Taiwan
PRO
November 07, 2023
Tweet
Share
More Decks by LINE Developers Taiwan
See All by LINE Developers Taiwan
LINE 實習分享 & 國際黑客松參賽分享
line_developers_tw
PRO
0
19
在 GCP 運用 Parse 全家餐管理那堆 AI 應用的資料
line_developers_tw
PRO
0
22
40歲的我會給20歲的自己,關於軟體開發的7個建議
line_developers_tw
PRO
0
7.6k
從零到一:轉碼仔的實習攻略
line_developers_tw
PRO
0
34
如何在團隊發揮數據影響力: 以電商資料科學家為例
line_developers_tw
PRO
1
45
做Data超讚的 誰懂?
line_developers_tw
PRO
0
33
iOS Live Activity: Opportunities & Challenges
line_developers_tw
PRO
1
120
掌握 Feature Toggle 與 OpenFeature 規範
line_developers_tw
PRO
0
240
用 AI 和 LINE Bot 簡化生活:讓圖片告訴你何時該忙!-- LINE 工作坊
line_developers_tw
PRO
0
770
Other Decks in Technology
See All in Technology
目の前の仕事と向き合うことで成長できる - 仕事とスキルを広げる / Every little bit counts
soudai
24
7.2k
株式会社EventHub・エンジニア採用資料
eventhub
0
4.3k
プロセス改善による品質向上事例
tomasagi
2
2.6k
30分でわかる『アジャイルデータモデリング』
hanon52_
9
2.7k
開発組織のための セキュアコーディング研修の始め方
flatt_security
3
2.4k
Building Products in the LLM Era
ymatsuwitter
10
5.5k
2025-02-21 ゆるSRE勉強会 Enhancing SRE Using AI
yoshiiryo1
1
360
エンジニアが加速させるプロダクトディスカバリー 〜最速で価値ある機能を見つける方法〜 / product discovery accelerated by engineers
rince
4
360
開発スピードは上がっている…品質はどうする? スピードと品質を両立させるためのプロダクト開発の進め方とは #DevSumi #DevSumiB / Agile And Quality
nihonbuson
2
3k
インフラをつくるとはどういうことなのか、 あるいはPlatform Engineeringについて
nwiizo
5
2.6k
Larkご案内資料
customercloud
PRO
0
650
2024.02.19 W&B AIエージェントLT会 / AIエージェントが業務を代行するための計画と実行 / Algomatic 宮脇
smiyawaki0820
13
3.5k
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
693
190k
Scaling GitHub
holman
459
140k
Code Reviewing Like a Champion
maltzj
521
39k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
330
A better future with KSS
kneath
238
17k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
46
2.3k
It's Worth the Effort
3n
184
28k
For a Future-Friendly Web
brad_frost
176
9.5k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Transcript
LINE 平台 與開發⽣態系介紹
Evan Lin Lead of LINE Taiwan Developer Relations External Evangelism
TECH FRESH People Manager Internal LLM/App Evangelist
01 LINE平台 與⽣態系簡介
None
198 DYNAMIC USER BASE 19 GLOBAL MAU million SUPPORTS languages
BY THE NUMBERS 178 *Supported languages: Arabic, Brazilian Portuguese, English, French, German, Indonesian, Italian, Japanese, Korean, Malay, Portuguese, Russian, Spanish (Castilian), Spanish (Latin America), Simplified Chinese, Thai, Traditional Chinese, Turkish, Vietnamese TOP-4 MAU million (Japan, Taiwan, Thailand, Indonesia) *As of March 2023 image: Freepik.com
6
發送各種訊息格式 Message Event Imagemap message Flex message Text message Template
message Location message Sticker message Image message Video/Audio Message Quote message
Text & Sticker message
Image, Video, Audio, Location messag
Imagemap message
Flex Message
Flex Message Simulator https://developers.line.biz/flex-simulator/
Icon Switch 修改⼤頭貼圖⽰與名字
什麼是 Quick Reply? • Camera action • Camera roll action
• Location action • Postback action • Message action • URI action • Datetime picker action
• 圖片格式: JPEG or PNG • 寬度 (pixels): 800 to
2500 • ⾼度 (pixels): 250 or more • 比率 (width/height): 1.45 or more • 檔案最⼤尺⼨: 1 MB 什麼是 Rich Menu?
回覆訊息 - Quote Message • 回覆特定訊息 • 得知⽤⼾回覆的訊息 • ⽬前僅⽀援
text 與 sticker
LINE Login 透過整合 LINE Login 能夠讓您的應⽤程式更快地連結 LINE ⽤⼾ https://developers.line.biz/zh-hant/docs/line-login/overview/
什麼是 LIFF
穿衣服要挑⼤⼩ - LIFF 尺碼
LIFF 在哪兒 – 預約系統
發給 OA 互動的⽤⼾ - Send Message • 各式 Message 格式
• 最多⼀次發送 5 則訊息 • 從 OA 點過去的 LIFF 才能使⽤ https://developers.line.biz/en/reference/liff/#send-messages
分享很重要 – Share Target Picker • 外部瀏覽器 ➡ liff.login() •
liff.isApiAvailable() • 透過個⼈帳號發送
OMO 最需要的! - liff.scanCodeV2() • Powered by WebRTC • LINE
v11.7.0+ • LIFF v2.15.0+ • External Browser/Android/iOS
• LIFF starter app - https://github.com/line/line-liff-v2-starter - NextJS - NuxtJS
- Vanilla • LIFF Playground - https://github.com/line/liff-playground - https://liff-playground.netlify.app/ - 外部/⼿機 瀏覽器皆可使⽤ 從哪開始呢? - Starter
02 LINE Bot Messaging API
Flex Message Simulator https://developers.line.biz/flex-simulator/
什麼是 Provider? • 獨立開發者、公司或組織 • Channel 建立之後是不能更動 channel 的 Provider
• 請勿使⽤測試帳號到線上環境
LINE Bot 的兩種回應⽅式 Messaging API Reply event Push event LINE
Platform
如何跟 Messaging API 溝通
Messaging API 讓您可以快速建立聊天機器⼈ ⽀援多種程式語⾔ • Java • Python • PHP
• Node.js • Go • Ruby • Perl
LINE API Experts
建立你⾃⼰的官⽅帳號 實作1
https://manager.line.biz/
https://developers.line.biz/console/
None
結合⽣成式 AI 應⽤介紹
03 LLM 與 LINEBot 相關介紹
⽣成式 AI 服務
⼀⾴說明 Completion Model ⼤型語⾔模型的⽬標 - 完整你的句⼦ 先從 OpenAI API 介紹
打造的 LINE Bot with LLM (Prompt Based)
How to do Prompt Engineering (OpenAI)
群組訊息摘要王 太多群組訊息 不敢問⼈家發⽣什麼事 …. 給我懶⼈包 https://engineering.linecorp.co m/zh-hant/blog/linebot- chatgpt
More on Prompt Engineering (OpenAI)
More on Prompt Engineering (OpenAI)
More on Prompt Engineering (OpenAI)
arXiv論⽂⼩幫⼿ 關鍵字找論⽂ 摘要翻譯 儲存最愛 書籤摘要 https://github.com/kkdai/linebot-arxiv
打造 RAG LINE Bot with LangChain (Retrieval-Augmented Generation)
老闆的需求:要⽤⾃⼰家的資料
實際上會接近如下 老闆的需求:要⽤⾃⼰家的資料
同時也能推⼀些其他服務內容,綜效⼀下 老闆的需求:偶爾推⼀些其他服務
Transformers Storage Retrievals
更快速的⽂件客服機器⼈ EmbedChain LINE Bot https://www.evanlin.com/langchain-embedchain/
簡易的客服機器⼈ 根據提供⽂件回覆 不會回覆⽂件以外的問題
打造 Function Calling Agent LINE Bot with LangChain
Function Calling 概念解釋 (Before) Tools “天氣” 地點? “台北市”
Function Calling 概念解釋 (To Be) Tools 明天台北熱不熱? Tool: Weather Location:
Taipei 明天台北出門要帶傘嗎?
Function Calling 概念解釋 (To Be) Tools 明天台北熱不熱? Tool: Weather Location:
Taipei 明天台北出門要帶傘嗎?
None
⾃主性代理⼈ LINE Bot 更多綜合性的問與答 開發 LINE Bot 轉換思考
LLM 打造⾃主的代理⼈ https://lilianweng.github.io/posts/2023-06-23-agent/
幫你的 LINE Bot (官⽅帳號) 加入個具有⼈性的⼤腦 實作2
https://github.com/kkdai/l inebot-template-openai OpenAI https://github.com/kkdai/l inebot-embedchain RAG https://github.com/kkdai/l inebot-langchain Function Calling
None
None
透過 ⽣成式 AI 打造 LINE Bot ⼩訣竅
Tip 1: 教懂你的 LLM 尋找
Key Takeaways ⽣成式 AI 會是 Game Changer 。 專注在⼩範圍,提供真⼈化的體驗。 未來醞釀中,LINE
OA 會是最好的載體。
LINE TECH FRESH https://careers.linecorp.com/jobs/83
None
None