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
透過 Cloud Functions, Firebasem Gemini Pro 打造具有記憶的 Open Data LINE Bot
Search
LINE Developers Taiwan
PRO
May 08, 2024
Technology
0
20
透過 Cloud Functions, Firebasem Gemini Pro 打造具有記憶的 Open Data LINE Bot
- Speaker: Nijia Lin
- Event: NCCU GDSC 工作坊
LINE Developers Taiwan
PRO
May 08, 2024
Tweet
Share
More Decks by LINE Developers Taiwan
See All by LINE Developers Taiwan
Open Source Workshop on GitHub
line_developers_tw
PRO
0
21
拓展QA日常工作的邊界
line_developers_tw
PRO
0
560
QA Engineer Life @ LINE
line_developers_tw
PRO
0
26
就讓AI幫你帶LINE好運
line_developers_tw
PRO
1
34
沒想過的前端錯誤處理可能比你有做的還多
line_developers_tw
PRO
0
52k
LINE 台灣實習計畫 2024 - TECH FRESH 介紹
line_developers_tw
PRO
0
540
LINE 台灣實習計畫 - 相關福利與面試流程
line_developers_tw
PRO
0
560
Navigating My Internship: A 5W1H Perspective
line_developers_tw
PRO
0
27
1001 號 到 333 號
line_developers_tw
PRO
0
17
Other Decks in Technology
See All in Technology
OpenID Foundation updates
fujie
0
130
多言語化対応における TypeScript の型定義を通して開発のしやすさについて考えた / TSKaigi TypeScript Multilingualization
nabeliwo
2
390
Laboratories in Science and Technology: Deep Neural Networks
keio_smilab
PRO
3
160
知識と実践を紡ぐGenAI / Connecting Knowledge and experience with GenAI
aki_moon
2
180
Money-saving tips for the frugal serverless developer
theburningmonk
1
370
テストコードを書きながらCompose Multiplatformを乗りこなす
subroh0508
0
140
RubyKaigi 2024 - Make Your Own Regex Engine!
makenowjust
1
160
kcp: Kubernetes APIs Are All You Need #techfeed_live / TechFeed Experts Night 28th
ytaka23
1
190
OPENLOGI Company Profile for engineer
hr01
1
2.2k
LINEヤフーのウェブアクセシビリティ
lycorptech_jp
PRO
2
180
NewSQL Landscape
oracle4engineer
PRO
5
3.2k
5分で分かる(かもしれない) Vector engine for OpenSearch Serverless
tsukuboshi
1
410
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
36
2.1k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
What the flash - Photography Introduction
edds
64
11k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
221
21k
Done Done
chrislema
178
15k
KATA
mclloyd
16
12k
Web Components: a chance to create the future
zenorocha
306
41k
Pencils Down: Stop Designing & Start Developing
hursman
117
11k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
7k
In The Pink: A Labor of Love
frogandcode
138
21k
Gamification - CAS2011
davidbonilla
77
4.6k
Six Lessons from altMBA
skipperchong
22
3k
Transcript
透過 Cloud Functions, Firebasem Gemini Pro 打造具有記憶的 Open Data LINE
Bot
NiJia Lin 🥷 LINE Technology Evangelist ⭐ Developer Relations 👋
External Evangelism 📌 Internal Evangelism
Messaging API 介紹
如何運作 內容
什麼是 Channel? 內容
什麼是 Provider? • 獨立開發者、公司或組織 • Channel 建立之後是不能更動 channel 的 Provider
• 請勿使⽤測試帳號到線上環境
什麼是 Provider?
什麼是 Provider?
Messaging API Reply event Push event LINE Platform LINE Bot
的兩種回應⽅式
Text & Sticker message
• ⾏程管理 • 個⼈化⼩幫⼿ • 美化⽂字 Emoji message
• ⾏程管理 • 個⼈化⼩幫⼿ • 美化⽂字 Emoji message
Image, Video, Audio, Location message
⽣成式 AI 服務
Workshop: 善⽤ Vision 的 LINE bot
Bot 還記得剛剛說過什麼嗎? https://www.evanlin.com/linebot-cloudfunc-firebase-gemini-workshop/
None
• 前往 LINE TODAY 找分類 • 邀請進入群組 • 修改 prompt
讓不同領域的⼈了解 • 重新部署 Cloud Functions 增加「!摘要」功能 https://github.com/louis70109/linebot-summarize-cloud-functions-gemini
• 修改 prompt 判斷地板 • 重新部署 Cloud Functions • https://lin.ee/UfdHydQ/yltz
天氣應⽤範例
• 修改 prompt 判斷台灣上空是否有雲 • 重新部署 Cloud Functions • https://lin.ee/1UoxY7Gj/yltz
天氣應⽤範例 2 – 衛星雲圖
更多 Open API 地震 API: https://opendata.cwa.gov.tw/dataset/ear thquake?page=1 天氣 JSON: https://opendata.cwa.gov.tw/dataset/for
ecast/F-A0010-001 紅外線: https://gist.github.com/louis70109/696d 064f3d40a676d6326e921c20843e ⽇常⽣活中有更多好⽤的 open data